tele to chiliad after death for 10 seconds ?
#4

SA-MP timers are inefficient, use this instead:

pawn Код:
SetPlayerPos(playerid, chilliadcoords);
CreatePVarInt(playerid, "DeathTimer", gettime()+10);
And put this in OnPlayerUpdate:
pawn Код:
if(GetPVarInt(playerid, "DeathTimer"))
{
    if(GetPVarInt(playerid, "DeathTimer") < gettime())
    {
        SetPlayerPos(playerid, normal, spawn, coords);
        DeletePVar(playerid, "DeathTimer");
    }
}
Good luck
Reply


Messages In This Thread
tele to chiliad after death for 10 seconds ? - by Rocky Balboa - 07.10.2010, 22:09
Re: tele to chiliad after death for 10 seconds ? - by Dime - 07.10.2010, 22:13
Re: tele to chiliad after death for 10 seconds ? - by [L3th4l] - 07.10.2010, 22:14
Re: tele to chiliad after death for 10 seconds ? - by Lenny the Cup - 07.10.2010, 22:35
Re: tele to chiliad after death for 10 seconds ? - by Rocky Balboa - 08.10.2010, 21:19
Re: tele to chiliad after death for 10 seconds ? - by Rocky Balboa - 08.10.2010, 21:34
Re: tele to chiliad after death for 10 seconds ? - by Rocky Balboa - 09.10.2010, 16:59
Re: tele to chiliad after death for 10 seconds ? - by WillyP - 09.10.2010, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)