[CENTER]About
This filterscript allows you to send a message/announcement to everyone every x minute/second.
The messages are modifiable in the script. Just edit line 25-26-27's message to whatever you want. If you want to increase the messages, make sure to edit the "3" in the Announcement variable to the number of announcement messages you have input.
Also, make sure to edit the cases in GlobalAnnouncement callback. I have given you a choice of multiple colors to choose.
Announcements are displayed every 10 minutes by default.
Example of an edit
Here's an example. I want to add 5 messages instead of 3(default). So I should replace the Announcements variable by this:
PAWN Code:
Then I should change the GlobalAnnouncement callback to this:Code:new Announcements[5][128] = { // Announcements[number of announcement messages][string lengh] "Announcement: This filterscript is made by Seif", "Announcement: Feel free to use it but give credit if due", "Announcement: And edit these messages or people will think your server is weird. :-)", "Announcement: Type /commands to view the list of the server commands", "Announcement: Type /rules to read the server rules. Make sure to understand 'em!" };
PAWN Code:
DownloadCode:public GlobalAnnouncement() { switch (Msg) { case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;} case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;} case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;} case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg = 0;} // last message } return 1; }
Pastebin



Reply With Quote![[Release] [SA:MP] [FS] Announcement Messages](http://ragezone.com/hyper728.png)

