Jump to content

[HELP]playername color


nickfromgreek

Recommended Posts

function createTeamsOnStart () 
        teamStaff = createTeam ( "Staff", 255, 255, 255 ) 
         
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 
  
   function gostaff ( player, command ) 
    setPlayerTeam ( player, teamStaff ) 
    setPlayerSkin(player, 217) 
         
end 
addCommandHandler ( "gostaff", gostaff ) 

thats my script but i teh scoreboard it dosnt ssyncronizes with a color

Link to comment
function createTeamsOnStart ( ) 
    teamStaff = createTeam ( "Staff", 255, 255, 255 ) 
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 
  
function gostaff ( player, command ) 
    setPlayerTeam ( player, teamStaff ) 
    setElementModel ( player, 217 ) 
    setPlayerNametagColor ( player, getTeamColor ( teamStaff ) ) 
end 
addCommandHandler ( "gostaff", gostaff ) 

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