How can i add Random Messages on the server - 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 can i add Random Messages on the server (
/showthread.php?tid=510349)
How can i add Random Messages on the server -
D3vin - 30.04.2014
I want to put random Automatic messages on random colors for players so they can read them
Re: How can i add Random Messages on the server -
EpicDutchie - 30.04.2014
I've no idea why you would use this but anyway.
Make all the messages you want, make a timer with a random interval, pick a color randomly then send the message.
https://sampwiki.blast.hk/wiki/Random
Small example:
Код:
new rand;
rand = random ( 10 );
switch(rand)
{
case 1: // 0
{
SendClientMessage(playerid, color_red, "Bla Bla Bla");
}
}
Re: How can i add Random Messages on the server -
[..MonTaNa..] - 30.04.2014
https://sampforum.blast.hk/showthread.php?tid=327709