17.11.2011, 23:52
Those messages are really professional - "if u need a car" >.>
Try this
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.
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]);

