14.10.2011, 22:21
pawn Код:
public contagemX1()
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
if(inx1[i] == 1)
{
if(tempox1 == 0)
{
KillTimer(timerx1);
tempox1 = 60;
TogglePlayerControllable(i, 1);
}
format(string,sizeof(string),"~r~%d",tempox1);
GameTextForPlayer(i, string, 1000, 3);
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
}
}
}
return tempox1--;
}