23.02.2009, 12:56
Hi, I have this script that shows a news message every 4 minutes.
But now, it only shows 1 message.
How could I make it so, that it randomly picks a message from a list, and shows 1 of them every 4 minutes?
Here's my script:
On top of script:
Under OnGameModeInit:
And somewhere in my script:
Please help
But now, it only shows 1 message.
How could I make it so, that it randomly picks a message from a list, and shows 1 of them every 4 minutes?
Here's my script:
On top of script:
pawn Код:
forward NewsFlash();
pawn Код:
SetTimer("NewsFlash",1000*60*4, true);
pawn Код:
public NewsFlash()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SendClientMessage(i, 0x800080FF, "*** Type /help for all commands ***");
}
}
}



