[FilterScript] Odyssey Messages.
#4

"Its not quite how you would expect a random message system to be."
Its worse.

A better way of doing it would be:
pawn Код:
new RandomMSG[][] =
{
    "[Info] Message!",
    "[Info] Also a message",
    "[Info] LastMessage!"
};
public OnFilterScriptInit() return SetTimer("SendMSG",10000,false);
public SendMSG()
{
    SendClientMessageToAll(0xFFFFFFFF, RandomMSG[random(sizeof(RandomMSG))]);
    return 1;
}
You can a add more messages, and no other changes will be needed.
Reply


Messages In This Thread
-delete- - by Odyssey - 03.09.2011, 17:00
Re: Odyssey Messages. - by seanny - 03.09.2011, 17:08
Re: Odyssey Messages. - by Odyssey - 03.09.2011, 17:10
Re: Odyssey Messages. - by wups - 03.09.2011, 19:39
Re: Odyssey Messages. - by FireCat - 03.09.2011, 19:41
Respuesta: Odyssey Messages. - by Manuel7284 - 03.09.2011, 19:51
Re: Odyssey Messages. - by Odyssey - 04.09.2011, 01:17

Forum Jump:


Users browsing this thread: 1 Guest(s)