Estevam2d Posted February 4, 2015 Share Posted February 4, 2015 My problem is that all who reach the highest level of kill are yellow in scorebord. just want only the top kill is yellow and not all, and if he loses the title of top kill the player's name ficase red again. function CopKillerer() local var = 0 local HighPlayer = false for k,v in ipairs (getPlayersInTeam (getTeamFromName("Criminoso"))) do local kills = getElementData(v,'kills') if kills then if kills > var then var = kills setPlayerNametagColor ( v, 221, 211, 45 ) setElementData( v, "Occupation", "Criminal", true ) HighPlayer = v end end end return HighPlayer end setTimer ( CopKillerer, 1000, 0 ) Link to comment
Et-win Posted February 4, 2015 Share Posted February 4, 2015 You should edit the scoreboard for that. Just search for the line which creates the player's names and check if he had the most kills or not. Link to comment
Estevam2d Posted February 4, 2015 Author Share Posted February 4, 2015 Yes, with the point system that will display the number of deaths. What I want is to highlight the player who killed other players with a special color when it has killed more players that everyone in the server. 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