Jump to content

Help


Nahar

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...