How do i make Random 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)
+--- Thread: How do i make Random Messages? (
/showthread.php?tid=503009)
How do i make Random Messages? -
ChristianIvann09 - 27.03.2014
How do i make Random Messages that sends to all players in every 5 minutes
Re: How do i make Random Messages? -
Bingo - 27.03.2014
Like this:-
https://sampforum.blast.hk/showthread.php?tid=324497
Re: How do i make Random Messages? -
lulo356 - 27.03.2014
pawn Код:
//top of your GM
new RandomMSG[][] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
pawn Код:
//under OnGameModeInit
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
pawn Код:
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
https://sampwiki.blast.hk/wiki/Random_Messages
Re: How do i make Random Messages? -
ice2k1 - 27.03.2014
Use this site:
And then choose Generators - > Advertises generator.