24.07.2011, 17:38
pawn Код:
//On top of your script:
new bool:Jailed[MAX_PLAYERS];
//In your /jail command:
Jailed[theplayerid] = true;
//In /unjail command & OnPlayerDisconnect:
Jailed[theplayerid] = false;
//In OnPlayerDisconnect:
Jailed[playerid] = false;
//On top of all your commands:
if(Jailed[playerid]) return SendClientMessage(playerid, 0xFF0000FF, "You cannot use commands when you are in jail.");