Different Colors
#3

I'M ASSUMING, THIS IS WHAT YOU WANT:

Too lazy to write one, there's a good one on wiki.sa-mp.com already:
pawn Код:
new RandomMSG[][] =
{
    "Random Message 1",
    "Random Message 2",
    "Random Message 3"
};

public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
Don't forget to call the function ongamemodeinit
pawn Код:
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
To add colors to the messages, simply change it to:
pawn Код:
Change FFFFFF to whatever hex colour you want to be used.
 "{FFFFFF}BOT:{FFFFFF}Random Message 1",
Reply


Messages In This Thread
Different Colors - by Mriss - 28.02.2014, 06:25
Re: Different Colors - by Aerotactics - 28.02.2014, 06:28
Re: Different Colors - by Knekt - 28.02.2014, 06:32
Re: Different Colors - by Aerotactics - 28.02.2014, 06:35
Re: Different Colors - by Mriss - 28.02.2014, 06:37
Re: Different Colors - by Knekt - 28.02.2014, 06:38
Re: Different Colors - by Aerotactics - 28.02.2014, 06:40

Forum Jump:


Users browsing this thread: 1 Guest(s)