Timer countdown with textdraws
#2

PHP код:
stock CountDown(playeridtime)
{
    
CountDownTime[playerid] = time;
    
CTimer[playerid] = SetTimerEx("CountDownTimer"1000true"i"playerid);
    return 
0;
}
forward CountDownTimer(playerid);
public 
CountDownTimer(playerid)
{
    new 
timer[28];
    
format(timersizeof(timer), "%i Seconds"CountDownTime[playerid]);
    
GameTextForPlayer(playeridtimer10003);
    
    if(!(--
CountDownTime[playerid]))
    {
        
GameTextForPlayer(playerid"~g~GOOOOO!!!!"10003);
        
KillTimer(CTimer[playerid]);
        
CTimer[playerid] = -1;
    }
    return 
1;

Reply


Messages In This Thread
Timer countdown with textdraws - by Zloto - 06.05.2015, 09:57
Re: Timer countdown with textdraws - by Konstantinos - 06.05.2015, 10:03
Re: Timer countdown with textdraws - by 036 - 06.05.2015, 10:05
Re: Timer countdown with textdraws - by Zloto - 06.05.2015, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)