01.11.2011, 02:03
Simple and Straight to the point.
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
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");
}
}
And change switch(random(8)) The number to the amount of cases you have.
http://pastebin.com/HA86Qjxg
If you find it useful