08.09.2011, 10:31
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;
}
EDITED again, my bad.