nickfromgreek Posted August 16, 2012 Share 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? Link to comment
Callum Posted August 16, 2012 Share 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. Link to comment
nickfromgreek Posted August 16, 2012 Author Share Posted August 16, 2012 in teh chat it works but not in teh scireboard Link to comment
nickfromgreek Posted August 16, 2012 Author Share 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 Link to comment
Castillo Posted August 16, 2012 Share 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 ) Link to comment
nickfromgreek Posted August 24, 2012 Author Share Posted August 24, 2012 Thanks that works Link to comment
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