how can 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how can i make random messages? (
/showthread.php?tid=139223)
how can i make random messages? -
hardstop - 04.04.2010
i want like if
you type /updates eachtime you type /updates you get another text
how can i do that?
Help please
Re: how can i make random messages? -
Jeffry - 04.04.2010
Put this at your command.
pawn Код:
new gla;
gla=random(10); // Type here the number of messages you have.
switch(gla)
{
case 0: SendClientMessage(playerid, 0xFFFFFFFF, "This is the first message");
case 1: SendClientMessage(playerid, 0xFFFFFFFF, "This is the sencond message");
case 2: SendClientMessage(playerid, 0xFFFFFFFF, "This is the third message");
//....
}
I hope this helps you.
Just tell me if you need more help.
Re: how can i make random messages? -
hardstop - 04.04.2010
Il Try this
Thanks for responding
WORKS LIKE A CHARM! TY
Re: how can i make random messages? -
Jeffry - 04.04.2010
No problem. Have fun with it.