SA-MP Forums Archive
Auto message - 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: Auto message (/showthread.php?tid=241733)



Auto message - Ondracec - 18.03.2011

Hi, i need auto write message and show it normally in chat...Please comment when correct text and visage.


Re: Auto message - Roomeo - 18.03.2011

Add More :P
Under On Gamemode Init
pawn Код:
SetTimer("SendRandomMsgToAll", 60 * 1000, 1);
pawn Код:
forward SendRandomMsgToAll();
public SendRandomMsgToAll()
{    switch(random(2))
         {
         case 0: SendClientMessageToAll(0xFF0000AA, "Add This Server To Favorites");
         case 1: SendClientMessageToAll(0x3A47DEFF, "Read /Rules Before Playing Here");
                  }
}



Re: Auto message - Kyosaur - 18.03.2011

There's a simple tutorial on the wiki.

https://sampwiki.blast.hk/wiki/Random_Messages