[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
#2

Question what do we paste it as? o_o Or can you make the file and make a download?
Reply
#3

nice yet really simple
Reply
#4

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
Reply
#5

Copied from a gamemode already released..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)