Eh,I want a countdown Gametext/textdraw[+REP] - 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: Eh,I want a countdown Gametext/textdraw[+REP] (
/showthread.php?tid=606483)
Eh,I want a countdown Gametext/textdraw[+REP] -
[SU]Spartan - 05.05.2016
I would like to make a countdown gametext/textdraw idk how it works,Countdown from 15 to 0 in the middle of screen,I will rep.With a checkpoint,if player moves from checkpoint,countdown canceled.
Re: Eh,I want a countdown Gametext/textdraw[+REP] -
Micko123 - 05.05.2016
It is GameTextForPlayer
Try using these
https://sampwiki.blast.hk/wiki/SetTimer
https://sampforum.blast.hk/showthread.php?tid=171959
Re: Eh,I want a countdown Gametext/textdraw[+REP] -
xTURBOx - 05.05.2016
you mean like, for playerwise or for all players
i mean if one player uses /countdown does it displays for him or for all the players in the server?
Re: Eh,I want a countdown Gametext/textdraw[+REP] -
Nin9r - 05.05.2016
With gametext:
Код HTML:
public counter()
{
count--;
switch(count)
{
case 0:
{
GameTextForAll("r~Go go go!", 1110, 5);
KillTimer(counter);
}
case 1: GameTextForAll("~ r~2~w~ seconds.", 1110, 5);
case 2: GameTextForAll(" ~r~3~w~ seconds.", 1110, 5);
}
Command:
Код HTML:
new count;
CMD:count(playerid, params[])
{
count = 3;
counter = SetTimer("counter", 1000, true);
return 1;
}
It will display the count for all players.
Also, if you want to kill the timer on any checkpoint, you have to add this on that cp : KillTimer(counter);
Check it on 'OnPlayerEnterCheckpoint(playerid)'