06.04.2011, 13:19
Dear all
lastnight i found a good tutorial
for make a easy's auto messages
so im not sure how can i use it
my automatics messages work good
and i like it, but... that show the message in a line
you guys can help me to show every message in this format?
showing in the server chat this example:
=========================
Need a Vehicle? use /veh
=========================
i appreciate allways your help
Thanks
lastnight i found a good tutorial
for make a easy's auto messages
so im not sure how can i use it
my automatics messages work good
and i like it, but... that show the message in a line
Код:
forward SendRandomMsgToAll(); public SendRandomMsgToAll() { switch(random(4))// "switch - case" is a sort of "if - else if - else" statement (operator?) { case 0: SendClientMessageToAll(0xFFFF00AA, "Need a Vehicle? use /veh"); //Case means "if ( The function from switch() ) equals '0' (In this case)." case 1: SendClientMessageToAll(0xFFFF00AA, "How to Buy a House? Stand up in the logo house and use /buyh"); case 2: SendClientMessageToAll(0xFFFF00AA, "How to Buy a Car? inside a free car use /vbuy"); case 3: SendClientMessageToAll(0xFFFF00AA, "Need Help? use /help or write to some admin ;)"); }
showing in the server chat this example:
=========================
Need a Vehicle? use /veh
=========================
i appreciate allways your help
Thanks