Auto message
#5

hey,

firstly you will need to put this somewhere in your script:

pawn Код:
new RandomMSG[][] =
{
    "message 1",
    "message 2",
    "message 3",
    "message 4"
};
of course change "message 1 -5" to what you want also you can have as many of these as you like.

okay next put this i OnGameModeInit()
pawn Код:
SetTimer("SendMSG", 300000, true);
change the milliseconds as you wish

then you need this also some where in your script:

pawn Код:
forward SendMSG();
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(COLOR_RANDOM, RandomMSG[randMSG]);
    return 1;
}
hope this help


EDIT didn't see that Stigg had replied also read Stiggs post below
Reply


Messages In This Thread
Auto message - by Azzeto - 17.10.2011, 16:47
Re: Auto message - by Stigg - 17.10.2011, 16:48
Re: Auto message - by Azzeto - 17.10.2011, 16:50
Re: Auto message - by Stigg - 17.10.2011, 16:51
Re: Auto message - by DaRkAnGeL[NBK] - 17.10.2011, 16:53
Re: Auto message - by Stigg - 17.10.2011, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)