29.05.2012, 10:23
I used PVars here because it will be a lot easier than writing public functions to use cross script.
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.
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
EDIT: You will also want to send the /ar command like vince said if they already have auto-repair active.