02.08.2011, 22:16
pawn Код:
// The top of the script.
new RandomMessages[][] =
{
"Have you seen a hacker? /report [ID] [Reason]",
"Only Noobs Rule break! Are you a noob?",
"Did you know we have forums? Register today!",
"You are playing on MY OWN SERVER.!"
};
new Text:TextRandom; // Same.
forward RandomMessage(); // Up there tho.
SetTimer("RandomMessage",3000,1); // Under OnGameModeInit
// Anywhere.
public RandomMessage()
{
TextDrawSetString(TextRandom, RandomMessages[random(sizeof(RandomMessages))]);
return 1;
}