Countdown from 5 minutes
#1

Hi there, me again... xd.

I am looking for a textdraw timer which counts down from 6 minuts when the server starts....
Can someone make this for me? I really have no idea how to make it. Maybe a filterscript? Thanks!
Reply
#2

If you want to request something post it in the Script request topic

An example with GameTextForAll
pawn Код:
Countdown(5); //Example call
pawn Код:
forward Countdown(time);
public Countdown(time)
{
    if(time > -1) {
        if(time == 0) {
            GameTextForAll("~r~Gogo!", 4, 2500);
            return ; //We stop the code repeating
        }
        new string[8];
        format(string, sizeof string, "~r~%d", time);
        GameTextForAll(string, 4, 990); //formated string with number in red
        SetTimerEx("Countdown", 1000, false, "i", time); //calls the function in one second again
    }
}
Just add some textdraws and minutes, seconds split
Reply
#3

I dont really get it, please, can you make it fully? With some textdraws? I will do the x,y...

THNX, and ok!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)