nickfromgreek Posted August 16, 2012 Posted August 16, 2012 I want when teh player has a team his scoreboard and chat name to be teh same color as the team any idea how i do that?
Callum Posted August 16, 2012 Posted August 16, 2012 You must use createTeam and setPlayerTeam to assign a player to a team. By default chat and scoreboard show teams and their colours.
nickfromgreek Posted August 16, 2012 Author Posted August 16, 2012 in teh chat it works but not in teh scireboard
nickfromgreek Posted August 16, 2012 Author Posted August 16, 2012 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
Castillo Posted August 16, 2012 Posted August 16, 2012 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 )
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