Count Down Timer Help!
#5

Quote:
Originally Posted by xTURBOx
Посмотреть сообщение
PHP код:
new CountDownTime;
new 
CountDownTimer;
new 
Text:TextDraw1;
stock CreateTimerText()
{
    
Textdraw1 TextDrawCreate(537.000000327.000000"05:10");
    
TextDrawBackgroundColor(Textdraw1255);
    
TextDrawFont(Textdraw13);
    
TextDrawLetterSize(Textdraw10.3300001.200000);
    
TextDrawColor(Textdraw1, -554567169);
    
TextDrawSetOutline(Textdraw11);
    
TextDrawSetProportional(Textdraw11);
    
TextDrawSetSelectable(Textdraw10);
    
CountDownTime 60 10;
    
CountDownTimer SetTimer("counttimer",1000,true);
}
forward counttimer();
public 
counttimer()
{
    if(
CountDownTime <= 0)
    {
        
CountDownTime = -1;
        
//TextDrawSetString(TextDraw1, "Mission Failed");
        
KillTimer(CountDownTimer);
    }
    else
    {
        
CountDownTime--;
        new 
msg[15];
        
format(msgsizeof(msg), "%i:%i"CountDownTime/60CountDownTime%60);
        
TextDrawSetString(TextDraw1msg);
    }
    return 
1;

need it showing textdraw + timer count down here
PHP код:
    if(EnterAllShips[playerid] == 9)
    {
        
trying CreateDynamicRaceCP(0, -2392.9497,2312.1875,-0.1095, -2392.9497,2312.1875,-0.10955.0, -1, -1playerid2000.0);
        
GameTextForPlayer(playerid"~r~Goto Red Checkpoints To Finish This Shitt!"50003);
    }
    return 
1;

thanks +rep for u
Reply


Messages In This Thread
Count Down Timer Help! - by astanalol - 21.03.2017, 01:40
Re: Count Down Timer Help! - by Mic_H - 21.03.2017, 05:37
Re: Count Down Timer Help! - by astanalol - 21.03.2017, 07:00
Re: Count Down Timer Help! - by xTURBOx - 21.03.2017, 08:07
Re: Count Down Timer Help! - by astanalol - 21.03.2017, 08:13
Re: Count Down Timer Help! - by astanalol - 21.03.2017, 11:48
Re: Count Down Timer Help! - by xTURBOx - 21.03.2017, 12:04
Re: Count Down Timer Help! - by astanalol - 21.03.2017, 18:47
Re: Count Down Timer Help! - by LazzyBoy - 21.03.2017, 18:54
Re: Count Down Timer Help! - by astanalol - 21.03.2017, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)