GameText
#2

It's better to use a TextDraw

Like this:

PHP код:
//In the script:
const time 10//This would be 10sec
TextDrawShowForPlayer(playerid,txtid); //The countdown starts
@countdown(playerid,time);
//at the end of the script:
@countdown(playerid,x);@countdown(playerid,x) {
    if(--
== 0
    {
        
TextDrawHideForPlayer(playerid,txtid); //Here the countdown ends!
        
return 1;
    }
    new 
str[8];
    
valstr(str,x);
    
TextDrawSetString(txtidstr);
    
TextDrawShowForPlayer(playeridtxtid);
    return 
SetTimerEx(!"@countdown",999,0,!"ii",playerid,x);

Reply


Messages In This Thread
GameText - by DerickClark - 31.07.2015, 15:52
AW: GameText - by Kaliber - 31.07.2015, 15:57
Re: GameText - by DerickClark - 31.07.2015, 16:03
AW: GameText - by Kaliber - 31.07.2015, 16:26
Re: GameText - by DerickClark - 31.07.2015, 16:30
Re: GameText - by DerickClark - 31.07.2015, 22:54
Re: GameText - by SpikeSpigel - 01.08.2015, 00:19
Re: GameText - by DerickClark - 01.08.2015, 00:36
AW: GameText - by Kaliber - 01.08.2015, 00:41

Forum Jump:


Users browsing this thread: 1 Guest(s)