[Help] Random Messages
#2

pawn Код:
SetTimer("Messages", time here, 1);
forward Messages();
public Messages()
{
    new rand = random(5);
    if(rand == 0) return rand +1;
    switch(rand)
    {
        case 1: SendClientMessageToAll(C_GREEN, MESSAGE1);
        case 2: SendClientMessageToAll(C_GREEN, MESSAGE2);
        case 3: SendClientMessageToAll(C_GREEN, string);
        case 4: SendClientMessageToAll(C_GREEN, MESSAGE4);
        case 5: SendClientMessageToAll(C_GREEN, MESSAGE5);
    }
        return 1;
}
This would do it
Reply


Messages In This Thread
[Help] Random Messages - by Trawltrawl - 16.08.2011, 19:57
Re: [Help] Random Messages - by Wesley221 - 16.08.2011, 20:03
Re: [Help] Random Messages - by Trawltrawl - 16.08.2011, 20:30
Re: [Help] Random Messages - by Snipa - 16.08.2011, 20:39
Re: [Help] Random Messages - by Trawltrawl - 16.08.2011, 20:50

Forum Jump:


Users browsing this thread: 3 Guest(s)