textdraw countdown - 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: textdraw countdown (
/showthread.php?tid=473392)
textdraw countdown -
Voxel - 02.11.2013
Hello,
I am trying to make a countdown in a textdraw but i havent succeded in doing so, ive tried ****** for help but i found nothing that helped me. so can someone help me make this? it counts down from 1 min.
this is my code so far: (this code works in game so all i need is to display the 1 min countdown for each round in a textdraw "TL"
pawn Код:
//TD
new PlayerText:TL[MAX_PLAYERS];
//ROUND CHANGE
new RoundChange;
//ROUND/TIMER
forward StartedNewRound();
forward NewRoundTimer(playerid);
forward CountDown(playerid);
pawn Код:
//this is all under ongamemodeinit
SetTimer("NewRoundTimer",90000,true); //i want this timer displaying in the textdraw TL
//NEW ROUND
public NewRoundTimer(playerid)
{
GameTextForAll("~w~Starting new ~g~round!",4000,3);
SetTimer("StartedNewRound",4000,false);
TogglePlayerControllable(playerid,0);
return 1;
}
public StartedNewRound()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
SpawnPlayer ( i ) ;
switch ( RoundChange ) {
case 0:
{
GameTextForAll("~r~Survive!",3000,3);
}
}
}
return 1;
}
Re: textdraw countdown -
Voxel - 02.11.2013
Anyone?
Re: textdraw countdown -
rappy93 - 02.11.2013
Here,this should help you mate
https://sampforum.blast.hk/showthread.php?tid=169023
Re: textdraw countdown -
Voxel - 03.11.2013
Quote:
Originally Posted by rappy93
|
That doesnt work :\
please someone help me
Re: textdraw countdown -
rappy93 - 03.11.2013
If you use the exact same code that guy posted it will work ! If it doesn't it mean you're doing something wrong.
Re: textdraw countdown -
Voxel - 03.11.2013
Thats why i need someone to show me how to do what i want.