/kill command
#6

Quote:
Originally Posted by Smokeyy
Посмотреть сообщение
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 Код:
if(PlayerInfo[playerid][pJailed] == 1
{
SendClientMessage(playerid, COLOR_GREY, "You can't use this command while you are jailed!");
return 1;
}
Yes, you want to use this else they'll just relog to avoid their jail time.
Reply


Messages In This Thread
/kill command - by Sliceofdeath - 06.08.2013, 12:12
Re: /kill command - by arjanforgames - 06.08.2013, 12:29
Re: /kill command - by Sliceofdeath - 06.08.2013, 12:56
Re: /kill command - by iNorton - 06.08.2013, 12:57
Re: /kill command - by Smokeyy - 06.08.2013, 13:12
Re: /kill command - by arjanforgames - 06.08.2013, 15:07

Forum Jump:


Users browsing this thread: 2 Guest(s)