How do i make Random Messages?
#3

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
Reply


Messages In This Thread
How do i make Random Messages? - by ChristianIvann09 - 27.03.2014, 11:53
Re: How do i make Random Messages? - by Bingo - 27.03.2014, 11:57
Re: How do i make Random Messages? - by lulo356 - 27.03.2014, 11:58
Re: How do i make Random Messages? - by ice2k1 - 27.03.2014, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)