How to make count down and put player in car
#2

pawn Код:
new
        Count[MAX_PLAYERS],
        Timer[MAX_PLAYERS]:

forward race2(playerid);
public race2(playerid)
{
     SetPlayerPos(playerid,1286.4811,-1712.4708,12.8618);
     TogglePlayerControllable(playerid,0);
     Count[playerid] = 5;
     Timer[playerid] = SetTimerEx("start", 1000, true,"d",playerid);
}

forward start(playerid);
public start(playerid)
{
if(Count[playerid]!=0) Count[playerid]--;
else
{
    TogglePlayerControllable(playerid,1);
    KillTimer(Timer[playerid]);
}
return 1;
}
https://sampwiki.blast.hk/wiki/SetTimerEx

EDITED again, my bad.
Reply


Messages In This Thread
How to make count down and put player in car - by MA_proking - 08.09.2011, 10:09
Re: How to make count down and put player in car - by =WoR=Varth - 08.09.2011, 10:31
Re: How to make count down and put player in car - by MA_proking - 08.09.2011, 11:38
Re: How to make count down and put player in car - by =WoR=Varth - 08.09.2011, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)