17.10.2011, 16:53
hey,
firstly you will need to put this somewhere in your script:
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()
change the milliseconds as you wish
then you need this also some where in your script:
hope this help
EDIT didn't see that Stigg had replied also read Stiggs post below
firstly you will need to put this somewhere in your script:
pawn Код:
new RandomMSG[][] =
{
"message 1",
"message 2",
"message 3",
"message 4"
};
okay next put this i OnGameModeInit()
pawn Код:
SetTimer("SendMSG", 300000, true);
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;
}
EDIT didn't see that Stigg had replied also read Stiggs post below