[FilterScript] Random 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Random Server Announcements (
/showthread.php?tid=294268)
Random Server Announcements -
Medardo4Life - 01.11.2011
Simple and Straight to the point.
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
SetTimer("SendRandomMsgToAll", 250 * 1000, 1);
return 1;
}
forward SendRandomMsgToAll();
public SendRandomMsgToAll()
{
switch(random(8))
{
case 0: SendClientMessageToAll(0xFF66FFAA, "TEXT HERE");
case 1: SendClientMessageToAll(0xFF66FFAA, "MORE TEXT");
case 2: SendClientMessageToAll(0xFF66FFAA, "MORE RANDOM TEXT");
case 3: SendClientMessageToAll(0xFF66FFAA, "ANNOUNCEMENT");
case 4: SendClientMessageToAll(0xFF66FFAA, "MORE RANDOM GARBAGE");
case 5: SendClientMessageToAll(0xFF66FFAA, " U MAD? ");
case 6: SendClientMessageToAll(0xFF66FFAA, "SOME MORE SERVER SPAM");
case 7: SendClientMessageToAll(0xFF66FFAA, "RANDOM MESSAGE");
}
}
If you want to add more Text messages add another line with a different case number.
And change switch(random(
8)) The number to the amount of cases you have.
http://pastebin.com/HA86Qjxg
If you find it useful
Re: Random Server Announcements -
Cole_William - 03.11.2011
Question what do we paste it as? o_o Or can you make the file and make a download?
Re: Random Server Announcements -
RV3RS3 - 03.11.2011
nice yet really simple
Re: Random Server Announcements -
Biesmen - 03.11.2011
The same as thousand other random messages, but this one is just bad.. (Sorry)
https://sampwiki.blast.hk/wiki/Random_Messages <- This one is the second best Automated/Random messages
Re : Random Server Announcements -
Naruto_Emilio - 03.11.2011
Copied from a gamemode already released..