Auto message
#1

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

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");
                  }
}
Reply
#3

There's a simple tutorial on the wiki.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)