Random Messages

Started by Mahmoud Tornado, Sep 10, 2017, 02:55 PM

Previous topic - Next topic

Mahmoud Tornado

Random Messages By MahmoudTornado
lastElement <- 0;
myArray <- [
"[#00de00]Msg1.",       \\ you can add more msg
"[#00de00]Msg2.",       \\ this color is white #00de00
"[#00de00]Msg3.",
"[#00de00]Msg4.",
"[#00de00]Msg5.",
];

function Messages()
{
    local currentString = myArray[lastElement];
    lastElement++;

    if( lastElement > ( myArray.len() - 1 ) )
        lastElement = 0; // reset to 0

Message( currentString );
}

NewTimer( "Messages", 360000, 0 );    \\ 1000 = 1 sec

KAKAN

#1
http://forum.vc-mp.org/?topic=1028.0 mixed with http://forum.vc-mp.org/?topic=2103.0
I'm pretty sure its mine 'cause no one uses '\\' for comments. Seriously :P
oh no

.

.

MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.



!

Quote from: Mahmoud Tornado on Sep 11, 2017, 03:27 AMBut This I didn't saw it before xDDDD
There's a search button at the top right side of forum.Use it. It'll not hurt you.

Discord: zeus#5155

Mahmoud Tornado

Quote from: zeus on Sep 11, 2017, 01:18 PM
Quote from: Mahmoud Tornado on Sep 11, 2017, 03:27 AMBut This I didn't saw it before xDDDD
There's a search button at the top right side of forum.Use it. It'll not hurt you.
lol why you love this word xDDDDDD

!

#8
Quote from: Mahmoud Tornado on Sep 11, 2017, 01:20 PMlol why you love this word xDDDDDD
Which word? Where? This topic is full of words. Can you be more specific.

P.S

Quote from: Mahmoud Tornado on Sep 11, 2017, 01:20 PMwhy you love this word.
Quote from: Mahmoud Tornado on Sep 11, 2017, 03:27 AMxDDDD
Quote from: Mahmoud Tornado on Sep 11, 2017, 01:20 PMxDDDDDD


:edit:
Someone has obeyed my orders.... ;D

Discord: zeus#5155


KingDark

It works, thanks to this I can make my ad system without complicating myself, thanks
#NULL