Random Client message (not a single line)
#3

pawn Код:
new Message[][] = //Define your messages
{
    {"message1"},
    {"message2"},
    {"message3"}
    //etc.
};

//Randomize it
new randomMSG = random(sizeof(Message)),
    string[128];
   
//Send it (e.g. using a timer)
format(string, sizeof(string),"%s",Message[randomMSG]);
SendClientMessageToAll(0xFFFF00FF, string);
Hope i got you right


Kind regards, wolf.
Reply


Messages In This Thread
Random Client message (not a single line) - by SnG.Scot_MisCuDI - 28.07.2012, 00:46
Re: Random Client message (not a single line) - by [KHK]Khalid - 28.07.2012, 00:54
Re: Random Client message (not a single line) - by BlackWolf120 - 28.07.2012, 00:56
Re: Random Client message (not a single line) - by Youice - 28.07.2012, 01:00

Forum Jump:


Users browsing this thread: 1 Guest(s)