Countdown from 5 minutes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Countdown from 5 minutes (
/showthread.php?tid=193541)
Countdown from 5 minutes -
Baboon - 26.11.2010
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!
Re: Countdown from 5 minutes -
Nero_3D - 26.11.2010
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
Re: Countdown from 5 minutes -
Baboon - 26.11.2010
I dont really get it, please, can you make it fully? With some textdraws? I will do the x,y...
THNX, and ok!