Nahar Posted February 15, 2014 Share Posted February 15, 2014 Hey all, i made a script which change tag color every 10 sec, but i don't know how to make tag random color, i made this: local r local g local b if(phase)then r,g,b,a = getColorFromString(colors[1]) else r,g,b,a = getColorFromString(r,g,b) end local team = getTeamFromName(Names[1]) if(team)then for i,p in ipairs(getElementsByType("player"))do if(getPlayerTeam(p) == team)then for v,blip in pairs(getAttachedElements(p)) do if getElementType(blip) == "blip" then setBlipColor(blip,r,g,b,255) break end end setTeamColor ( team , r, g, b) end end end How i can make tag color change ( random) every 10 sec? Link to comment
Nahar Posted February 15, 2014 Author Share Posted February 15, 2014 Any example please? Link to comment
Karuzo Posted February 15, 2014 Share Posted February 15, 2014 local red, green, blue = math.random (50, 255), math.random (50, 255), math.random (50, 255) setTeamColor( team, red, green, blue) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now