Jump to content

[ Help ] Scoreboard. Element by Skin


Cocodrilo

Recommended Posts

hi all.. i would like add a column at scoreboard by Skin. I try with this.. what is wrong?

function ocupacion(thePlayer) 
theSkinID = getElementModel (source) 
if (theSkinID == 280) then 
  
setElementData ( thePlayer, "Policia", true) 
end 
end 
call(getResourceFromName("scoreboard"), "scoreboardAddColumn", "Ocupacion", root, 100) 
  
addEventHandler ("onPlayerSpawn", getRootElement(), ocupacion)  

Link to comment
call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Ocupacion", root, 100 ) 
  
function ocupacion ( ) 
    local theSkinID = getElementModel ( source ) 
    if ( theSkinID == 280 ) then 
        setElementData ( source, "Ocupacion", "Policia" ) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), ocupacion ) 

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