06.06.2011, 12:29
Errrrrrrrrrr........... Like this ?
pawn Код:
new
seconds = 60
;
forward CountDown(playerid);
public CountDown(playerid)
{
seconds--;
new string[178];
format(string,sizeof(string),"Stay in the turf %d for take over it!",seconds);
TextDrawSetString(CountDownTD,string);
if(seconds == 0)
{
TextDrawHideForPlayer(playerid, CountDownTD);
KillTimer( countTimer[ playerid ] );
seconds = 60;
}
return 1;
}
new
countTimer[ MAX_PLAYERS ]
;
countTimer[ playerid ] = SetTimerEx("CountDown", 1000, true, "i", playerid);