Jump to content

Team Color


Overkillz

Recommended Posts

Hey Everyone, I will like to do a team color car, but the problem of this, this is showing on the nickname the color team (Only if u aren't using a color html).

My question is, I can o a script where only change the color to my car ? (I want to say to the team)

Script:

function createAdminTeamOnStart () 
    team = createTeam ( "TEST TEAM", 38, 125, 124 ) 
end 
addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) 
  
function setAdminTeam() 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("TT")) then 
        setPlayerTeam(source, team) 
   end 
end 
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) 
  
  
function getOutFromTeam() 
    if source then 
        setPlayerTeam(source, nil) 
    end  
end  
addEventHandler("onPlayerLogout",getRootElement(),getOutFromTeam) 

I wait your answer.

Thanks and regards.

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