02.11.2011, 12:00
Tente usar assim
C:
pawn Код:
forward ClockDown(playerid);
public ClockDown(playerid)
{
new Float:Pos[3], string[128];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
for(new i = 0; i <= MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
if(!IsPlayerInRangeOfPoint(i,5.0,Pos[0],Pos[1],Pos[2]))
if(Count[i] == 0)
{
GameTextForPlayer(i,"Go Go Go", 1000, 3);
Count[i] =5
return 0;
}
format(string,sizeof(string),"%d",Count[i]);
GameTextForPlayer(i,string, 1000, 3);
PlayerPlaySound(i, 1056, 0,0,0);
SetTimerEx("ClockDown",1000,false,"fff",Pos[0],Pos[1],Pos[2]);
return Count[i] --;
}
}
return true;
}