colour for random msg?
#4

Those messages are really professional - "if u need a car" >.>

Try this

pawn Код:
enum rm_data
{
    rm_color, // Hex color
    rm_msg[128] // String
}

new randmsg[][rm_data] = {
{0xFF0000FF, "This is a random message, it is red."},
{0x00FF00FF, "This is a random message, it is green."},
{0x0000FFFF, "This is a random message, it is blue."}
};

// To show the random message...

new rand_msg_rand = random(sizeof(randmsg));
SendClientMessageToAll(randmsg[rand_msg_rand][0], randmsg[rand_msg_rand][1]);
Note that this is un-tested, it should work though there may be an error with the array - I am not currently at my computer so can not compile it.
Reply


Messages In This Thread
colour for random msg? - by niels44 - 17.11.2011, 14:14
Re: colour for random msg? - by [L3th4l] - 17.11.2011, 14:18
Re: colour for random msg? - by nuriel8833 - 17.11.2011, 17:27
Re: colour for random msg? - by MP2 - 17.11.2011, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)