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

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.

EDIT: You will also want to send the /ar command like vince said if they already have auto-repair active.

Quote:
Originally Posted by Vince
Посмотреть сообщение
Just add:
pawn Код:
OnPlayerCommandText(playerid, "/ar");
whenever you want to call a command directly. Should work fine.
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: 8 Guest(s)