27.12.2010, 23:34
pawn Код:
new HasEntered[MAX_PLAYERS]; // Top Of GameMode
pawn Код:
//OnPlayerEnterCheckpoint Function
HasEntered[playerid] = 1;
pawn Код:
public counterzone(playerid)
{
for(new i; i < MAX_PLAYERS; i ++)
{
if(HasEntered[i] == 1 && countdownzone > 0) {
CDONZone = SetTimer("counterzone",990,false); //as soon as the player leaves the cp it kills the timer
new textformat[85];
format(textformat,sizeof textformat,"~g~%d",countdownzone);
TextDrawSetString(MiniCountdown,textformat);
TextDrawShowForPlayer(i,MiniCountdown);
countdownzone --;
}
}
return 1; }
pawn Код:
HasEntered[playerid] = 0; // When Countdown Ends..