textdraw countdown
#1

Hello,

I am trying to make a countdown in a textdraw but i havent succeded in doing so, ive tried ****** for help but i found nothing that helped me. so can someone help me make this? it counts down from 1 min.
this is my code so far: (this code works in game so all i need is to display the 1 min countdown for each round in a textdraw "TL"
pawn Код:
//TD
new PlayerText:TL[MAX_PLAYERS];
//ROUND CHANGE
new RoundChange;
//ROUND/TIMER
forward StartedNewRound();
forward NewRoundTimer(playerid);
forward CountDown(playerid);
pawn Код:
//this is all under ongamemodeinit
SetTimer("NewRoundTimer",90000,true); //i want this timer displaying in the textdraw TL

//NEW ROUND
public NewRoundTimer(playerid)
{
    GameTextForAll("~w~Starting new ~g~round!",4000,3);
    SetTimer("StartedNewRound",4000,false);
    TogglePlayerControllable(playerid,0);
    return 1;
}

public StartedNewRound()                        
{
    for(new i = 0; i < MAX_PLAYERS; i++) {        
        SpawnPlayer ( i ) ;
        switch ( RoundChange ) {                  
            case 0:
            {
                 GameTextForAll("~r~Survive!",3000,3);
            }                            
        }
    }
    return 1;
}
Reply
#2

Anyone?
Reply
#3

Here,this should help you mate

https://sampforum.blast.hk/showthread.php?tid=169023
Reply
#4

Quote:
Originally Posted by rappy93
Посмотреть сообщение
That doesnt work :\
please someone help me
Reply
#5

If you use the exact same code that guy posted it will work ! If it doesn't it mean you're doing something wrong.
Reply
#6

Thats why i need someone to show me how to do what i want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)