07.10.2010, 22:35
SA-MP timers are inefficient, use this instead:
And put this in OnPlayerUpdate:
Good luck
pawn Код:
SetPlayerPos(playerid, chilliadcoords);
CreatePVarInt(playerid, "DeathTimer", gettime()+10);
pawn Код:
if(GetPVarInt(playerid, "DeathTimer"))
{
if(GetPVarInt(playerid, "DeathTimer") < gettime())
{
SetPlayerPos(playerid, normal, spawn, coords);
DeletePVar(playerid, "DeathTimer");
}
}
