Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: Gito Baloch on Mar 04, 2020, 03:36 PM

Title: Helping Messages.
Post by: Gito Baloch on Mar 04, 2020, 03:36 PM
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 );
Title: Re: Helping Messages.
Post by: mafiadz02 on May 25, 2020, 09:14 PM
thank you great work
Title: Re: Helping Messages.
Post by: Gito Baloch on May 26, 2020, 06:26 AM
Quote from: mafiadz02 on May 25, 2020, 09:14 PMthank you great work
thanks sar.
Title: Re: Helping Messages.
Post by: NicusorN5 on May 26, 2020, 06:54 PM
Really neat way for help messages! I was always using a RNG.