06.08.2013, 12:12
When player is in jail his command /kill wouldn't work..
How to do this ?
How to do this ?
if(PlayerInfo[playerid][pJailed] == 1
{
SendClientMessage(playerid, COLOR_GREY, "You can't use this command while you are jailed!");
return 1;
}
You should have a variable some like:
PlayerInfo[playerid][pJailed] if you have godfather... or whatever variable for other gamemodes, something to define if the player is jailed or not 1 means its jailed 0 means he is not. so you add to /kill pawn Код:
|