08.10.2015, 08:10
PHP код:
new TimerJailed[MAX_PLAYERS];
TimerJailed[playerid] = SetTimerEx("godmodjailed", 5000, true, "i", playerid);//sу usar esse timer quando ele for preso e quando ele for pJailed = 0 ou seja livre serб automaticamente tirado o godmod e dado kill no timer
forward godmodjailed(playerid);
public godmodjailed(playerid)
{
if(PlayerInfo[playerid][pJailed] >= 1)
{
SetPlayerHealth(playerid, 99999);
}
else
{
KillTimer(TimerJailed[playerid]);
SetPlayerHealth(playerid, 100);
}
return 1;
}