• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Random Color

Stewie

Family Guy # ;3
Joined
May 3, 2010
Messages
786
Reaction score
12
Location
TV
Hello, how i can put this fuction for random colours

Lua:
doSendAnimatedText(getPlayerPosition(cid), "FRAG !", TEXTCOLOR_RED)
 
Lua:
local c = {TEXTCOLOR_BLACK, TEXTCOLOR_BLUE, TEXTCOLOR_GREEN, TEXTCOLOR_LIGHTGREEN, TEXTCOLOR_DARKBROWN, TEXTCOLOR_LIGHTBLUE, TEXTCOLOR_DARKRED} -- and more
doSendAnimatedText(getPlayerPosition(cid), "FRAG !", c[math.random(#c)])

ereh kcilk dna :)

@down
Now a little different ;)
 
Last edited:
Lua:
local c = {TEXTCOLOR_BLACK, TEXTCOLOR_BLUE, TEXTCOLOR_GREEN, TEXTCOLOR_LIGHTGREEN, TEXTCOLOR_DARKBROWN, TEXTCOLOR_LIGHTBLUE, TEXTCOLOR_DARKRED} -- and more
doSendAnimatedText(getPlayerPosition(cid), "FRAG !", c[math.random(#c)])

ereh kcilk dna :)

@down
Now a little different ;)

Lua:
doSendAnimatedText(getPlayerPosition(cid), "FRAG !", math.random(01,255))
 
Lua:
local c = {TEXTCOLOR_BLACK, TEXTCOLOR_BLUE, TEXTCOLOR_GREEN, TEXTCOLOR_LIGHTGREEN, TEXTCOLOR_DARKBROWN, TEXTCOLOR_LIGHTBLUE, TEXTCOLOR_DARKRED} -- and more
doSendAnimatedText(getPlayerPosition(cid), "FRAG !", c[math.random(#c)])

ereh kcilk dna :)

@down
Now a little different ;)

hahahaa +1
sorry for offtopics
OnTopic; awesome script! :D
 
Back
Top