03.07.2012, 21:07
The timer is called once, but when another player is arrested it doesnt get called.
Calling timer
pawn Код:
CMD:arrest(playerid, params[])
{
//code here
jailed[targetid] = 1;
SetTimer("UnJail",30000,false);
//more code here
return 1;
}
pawn Код:
public UnJail()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(jailed[i] == 1)
{
SetPlayerPos(i, 1555.097900, -1675.848754, 16.195312);
SetPlayerInterior(i, 0);
jailed[i] = 0;
}
return 1;
}
return 1;
}