Jump to content

Group Color Swap


Recommended Posts

function createTeamsOnStart ()      
teamstaff = createTeam ( "Equipe M4", color )       
        local color = {} 
        color[1] = math.random(0,126) 
        color[2] = math.random(0,200) 
        color[3] = math.random(0,126) 
        color[4] = math.random(0,255) 
    setTeamColor ( teamstaff, color )      
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 
  
   function lol ( player, command ) 
    setPlayerTeam ( player, teamstaff ) 
     
         
end 
addCommandHandler ( "gm", TeamsOnStart ) 

How do I get the gang I created typing / gm be changing color every 2 seconds

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...