08.07.2011, 15:43
Quote:
Like a /fish command.. you get like, 6 different fish, but it gives you one of the fish, at random? :S
|

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();

Rolyy