countdown texdraw only for 1 player?
#2

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..
Something Like That...
Reply


Messages In This Thread
countdown texdraw only for 1 player? - by BlackWolf120 - 27.12.2010, 22:41
Re: countdown texdraw only for 1 player? - by titanak - 27.12.2010, 23:34

Forum Jump:


Users browsing this thread: 2 Guest(s)