02.09.2013, 11:15
Ahh thanks man. Where should I put my if(InEvent[playerid] == 1)? Here's what I changed your provided code to.
pawn Код:
public Countdown(playerid)
{
switch(iCountdownStep)
{
case 0:
{
GameTextForPlayer(playerid, "3", 2000, 4);
}
case 1:
{
GameTextForPlayer(playerid, "2", 2000, 4);
}
case 2:
{
GameTextForPlayer(playerid, "1", 2000, 4);
}
default:
{
GameTextForPlayer(playerid, "~g~GO!", 3000, 4);
TogglePlayerControllable(playerid, 1);
KillTimer(tCountdownTimer);
}
}
iCountdownStep++;
}