A multi-command.
#7

Quote:
Originally Posted by getty154
Посмотреть сообщение
Like a /fish command.. you get like, 6 different fish, but it gives you one of the fish, at random? :S
See now I understand what you want, and now I can help you find a solution faster which spends both of us a lot of time .

Perhaps try to experience with this.

pawn Код:
//Somewhere at the beginning of your pawno script.
forward SendRandomMsgToAll();


//I got this BEHIND    "public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])"
public SendRandomMsgToAll()
{
    switch(random(4))   //4 is the number of how many random case's it can choose.
    {
        case 0: SendClientMessageToAll(COLOR_WHITE, "Hey YOU, Stop camping!! really not cool.");
        case 1: SendClientMessageToAll(COLOR_WHITE, "Your hiding like a pussy, stand up and fight like a men should do!");
        case 2: SendClientMessageToAll(COLOR_WHITE, "If you get caught on cheating you will most probably be banned, so do it unnoticed.");
        case 3: SendClientMessageToAll(COLOR_WHITE, "Server closed the connection.");
        //You can add more case's here but remember to change the switch(random(4)) number.
    }
}


//And by calling the public use somewhere between a command or create a timer for it etc.
SendRandomMsgToAll();
Hope this helps .
Rolyy
Reply


Messages In This Thread
A multi-command. - by iGetty - 08.07.2011, 14:35
Re: A multi-command. - by Rolyy - 08.07.2011, 15:24
Re: A multi-command. - by iGetty - 08.07.2011, 15:25
Re: A multi-command. - by Rolyy - 08.07.2011, 15:28
Re: A multi-command. - by iGetty - 08.07.2011, 15:28
Re: A multi-command. - by Wesley221 - 08.07.2011, 15:30
Re: A multi-command. - by Rolyy - 08.07.2011, 15:43
Re: A multi-command. - by Donya - 08.07.2011, 15:56
Re: A multi-command. - by Rolyy - 08.07.2011, 16:01
Re: A multi-command. - by Donya - 08.07.2011, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)