03.09.2011, 19:39
"Its not quite how you would expect a random message system to be."
Its worse.
A better way of doing it would be:
You can a add more messages, and no other changes will be needed.
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;
}