![]() |
Another triggeraction
Yea, a question about trigger again ... :(
That is the weapon, its used to add/remove the flag(Ctf-flag) to the player PHP Code:
This is the class, and here the trigger doesnt work, someone can tell me why and/or give me an example to make it working? I am totally :confused: PHP Code:
|
You're mixing GS1 and GS2, which is a very bad thing.
Here's your weapon. Basically just doing the same thing, but with some GS2 corrections/styling. PHP Code:
PHP Code:
PHP Code:
|
first at all, thanks for helping
Weapon is called -System/Ctfblue // yea too lazy to change The DBNpc is called BlueFlag PHP Code:
and should I post full DB script amd weap? |
Quote:
Also add an 'echo' in the serverside part to see if it is even receiving the trigger. |
Quote:
|
The Drop Flag doesnt work, means theres no echo. Like before I said, the Drop Flag trigger of the Weap comes first and disabled the DNPC one. Also if I said Drop Flag without having the Weapon it echos.
rest works fine Weaponname: -BlueFlag DBNPCname: BlueFlag Weapon: PHP Code:
DBNPC: PHP Code:
I would need to find a way to trigger the DBNPC dropFlag with a command in the weapon, so I wouldnt have to check the client.bluowner stuff. Just because only the guy with the weap would be able to trigger that. Now simply: I need a way to use a triggeraction(//bla); in a weapon wich would trigger an action in an DBNPC |
triggerserver("npc", "NameOfNPC", "dropFlag") should do what you want.
|
Still doesnt trigger, Imma go post my script again, I modifyed a bit before.
I might should try easier stuff :confused::confused::confused: NPC(Name: BlueFlag) PHP Code:
Weapon(Name: -BlueFlag) PHP Code:
|
PHP Code:
PHP Code:
|
WOOT THANKS
PS: ok, youre the teacher |
Quote:
PHP Code:
PHP Code:
|
is there a way to get a trigger to client?
for example, this wouldn't replace the animations, because its clientside: PHP Code:
|
Quote:
Instead of doing it when they logout, do it for when they log in...? |
Quote:
|
Quote:
The trigger (for the blue flag) will work fine when they logout. And just remove the weapon when they log in. PHP Code:
|
| All times are GMT +2. The time now is 01:21 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.