script line that 'talks' for a player?
#9

Quote:
Originally Posted by iggy1
Посмотреть сообщение
I used PVars here because it will be a lot easier than writing public functions to use cross script.

pawn Код:
//when they enter the derby
SetPVarInt( playerid, "in_derby", 1 );

//when they leave
DeletePVar( playerid, "in_derby" );

//in your /ar command at the top
if( GetPVarInt( playerid, "in_derby" ) ) return 1;//or return a message or what ever
Better to do this than unload the FS. Use this in any commands you want disabled in the derby.
okay i do understand it, and i will add the SetPVarInt and DeletePVar to my gamemode script,
but could you please add it to my filterscript?
i dont know where to put it exactly :$

i hope you could do this for me
Reply


Messages In This Thread
script line that 'talks' for a player? - by Ariehh - 29.05.2012, 08:10
Re: script line that 'talks' for a player? - by Ranama - 29.05.2012, 08:18
Re: script line that 'talks' for a player? - by Ariehh - 29.05.2012, 08:39
Re: script line that 'talks' for a player? - by milanosie - 29.05.2012, 09:41
Re: script line that 'talks' for a player? - by Ariehh - 29.05.2012, 09:53
Re: script line that 'talks' for a player? - by Vince - 29.05.2012, 10:00
Re: script line that 'talks' for a player? - by Ariehh - 29.05.2012, 10:19
Re: script line that 'talks' for a player? - by iggy1 - 29.05.2012, 10:23
Re: script line that 'talks' for a player? - by Ariehh - 29.05.2012, 10:40
Re: script line that 'talks' for a player? - by iggy1 - 29.05.2012, 10:55

Forum Jump:


Users browsing this thread: 6 Guest(s)