[FilterScript] Random Server Announcements
#1

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
Reply


Messages In This Thread
Random Server Announcements - by Medardo4Life - 01.11.2011, 02:03
Re: Random Server Announcements - by Cole_William - 03.11.2011, 02:23
Re: Random Server Announcements - by RV3RS3 - 03.11.2011, 07:08
Re: Random Server Announcements - by Biesmen - 03.11.2011, 11:34
Re : Random Server Announcements - by Naruto_Emilio - 03.11.2011, 11:57

Forum Jump:


Users browsing this thread: 2 Guest(s)