SA-MP Forums Archive
Server Announcements. - 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: Server Announcements. (/showthread.php?tid=87913)



Server Announcements. - andrewgilf - 23.07.2009

Now let me make this very clear. I dont want a annoucment that comes up in the middle of your screen (/announcement message here).
In the chat I would like somthing that post's certain rules and infomation.
Is their anything like this?

Any help much appreciated.

Andrew.


Re: Server Announcements. - Joe Staff - 23.07.2009

Random Message script, I'm sure you can find them in the filter scripts section.

Otherwise it's pretty easy. Use a callback that's called under OnGameModeInit and has a set timer that will repeat itself, or set the initial timer to infinitely repeat. Then set an indexing variable with the messages you want and a variable with an integer set with the "random" function to determine which message is sent.