Jump to content

[ Help ] Scoreboard. Element by Skin


Cocodrilo

Recommended Posts

Posted

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)  

560x95_FFFFFF_FF9900_000000_000000.png
Posted
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 ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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