Quote:
Originally Posted by WagnerPM
pawn Код:
CMD:arrest(playerid, params[]) { //code here
jailed[targetid] = 1; SetTimerEx("UnJail", 30000, true, "i", targetid); //more code here return 1; }
|
Also you gotta change your forward and your function to:
pawn Код:
public UnJail(targetid)
{
if(jailed[targetid] == 1)
{
SetPlayerPos(targetid, 1555.097900, -1675.848754, 16.195312);
SetPlayerInterior(targetid, 0);
jailed[targetid] = 0;
}
return 1;
}
This will make it so every player has their own jail timer instead of everyone being unjailed at once.