Game Text timer? - 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: Game Text timer? (
/showthread.php?tid=188276)
Game Text timer? -
grand.Theft.Otto - 07.11.2010
I have this lotto script, and it goes off about every 10 game minutes, what I want is a timer that will display on-screen to the whole server using GameTextForAll saying a reminder to buy your lotto tickets, how can I do it?
Thanks.
Re: Game Text timer? -
-Rebel Son- - 07.11.2010
Make a function, with the gametext in it, then use a timer to make it go off.
Re: Game Text timer? -
Kwarde - 07.11.2010
pawn Код:
//Above your script:
forward SendLottoMessage();
//In ongamemodeinit of onfilterscriptinit:
SetTimer("SendLottoMessage", 600000, true);
//somewhere...
public SendLottoMessage()
{
GameTextForAll("~y~Buy an ~r~/lotto~y~!", 5000, 3);
}
Something like this?
Re: Game Text timer? -
-Rebel Son- - 07.11.2010
exactly like that