Countdown help! - 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)
+--- Thread: Countdown help! (
/showthread.php?tid=373138)
[Script Request] Countdown help! -
ThePrograme - 29.08.2012
Can somebody help me to make a countdown which countsdown minutes and seconds and looks like this 1:60 in the server!
Re: Countdown help! -
ThePrograme - 29.08.2012
Can anyone help me with this countdown
Re: Countdown help! -
Lordzy - 29.08.2012
Wrong Section!
Must be on Script Request topic.
Re: Countdown help! -
ThePrograme - 29.08.2012
no problem and sorry for the wrong section thanks anyway
Re: Countdown help! -
ikkentim - 29.08.2012
Can you stop bumping?
pawn Код:
SetTimerEx("Countdown", 1000, false, "dd", playerid, 90);
forward Countdown(playerid, time);
public Countdown(playerid, time)
{
time--;
new str[16];
if(time%60)
format(str, 16, "%d:%d0", time/60, time%60);
else
format(str,16,"%d:%d",time/60,time%60);
GameTextForPlayer(playerid, str, 1100, 1);
if(time!=0)
SetTimerEx("Countdown", 1000, false, "dd", playerid, time);
else
{
//Timer is done. Do whatever you need to do.
}
}
Edit: Yes, this is a script request. I am not helping you. I am fulfilling your request. This is bad I think, here you go anyway. Next time try it yourself before you ask for help.
Re: Countdown help! -
ThePrograme - 29.08.2012
Thanks sorry but i realy need it and didn't know how to do it.
Re: Countdown help! -
ThePrograme - 29.08.2012
I did try and it didn't end well