21.11.2018, 09:33
pawn Код:
public WarnJail(playerid)
{
PlayerStats[playerid][jail] = 1;
SetPlayerPos(playerid, x,y,z);
return 1;
}
if(Warns[playerid] == 2)
{
format(string, sizeof(string), "%s (%d) was automatically jailed, reason: had 3 warnings", receiver, giveplayerid);
SendClientMessageToAll(0x00FFFFFF, string);
// make something like this maybe?
SetTimerEx("WarnJail", 1000, false, "i", giveplayerid);
}