lastElement <- 0;
myArray <- [
"Dont Forget to Add this server in your Favorites Tab",
"Use /help if you are a newbie in this Server",
"[#bae3ff]Check [#12d449]/cmds [#bae3ff]for a full list of commands that you can use.",
"[#bae3ff]Don't forget to visit our forums (Your Forum Name)",
"[#bae3ff]Dont use hacks as it can lead to ban",
"[#bae3ff]Wanna be a Member of the Staff,Post an application on our Forums ",
];
function Messages()
{
local currentString = myArray[lastElement];
lastElement++;
if( lastElement > ( myArray.len() - 1 ) ) // array.len() - 1 would be the last index
lastElement = 0; // reset to 0
Message( currentString );
}
NewTimer( "Messages", 30000, 0 );
thank you great work
Really neat way for help messages! I was always using a RNG.