how can i make random messages?
#1

i want like if you type /updates eachtime you type /updates you get another text

how can i do that?
Help please
Reply
#2

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.
Reply
#3

Il Try this Thanks for responding


WORKS LIKE A CHARM! TY
Reply
#4

No problem. Have fun with it.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)