Game Text timer?
#1

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

Make a function, with the gametext in it, then use a timer to make it go off.
Reply
#3

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

exactly like that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)