Eh,I want a countdown Gametext/textdraw[+REP]
#1

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.
Reply
#2

It is GameTextForPlayer
Try using these

https://sampwiki.blast.hk/wiki/SetTimer
https://sampforum.blast.hk/showthread.php?tid=171959
Reply
#3

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?
Reply
#4

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)'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)