Help! Automatic messages - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help! Automatic messages (
/showthread.php?tid=246853)
Help! Automatic messages -
martini002 - 06.04.2011
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
Код:
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 ;)");
}
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
Re: Help! Automatic messages -
Gertin - 06.04.2011
pawn Код:
case 0: SendClientMessageToAll(0xFFFF00AA, "========================="),SendClientMessageToAll(0xFFFF00AA, "Need a Vehicle? use /veh"),SendClientMessageToAll(0xFFFF00AA, "=========================");
Re: Help! Automatic messages -
martini002 - 06.04.2011
thanks Gertin, ill try just now and work nice! can you help me with this too? please
http://forum.sa-mp.com/showthread.ph...96#post1154596