Jump to content

Spawn System?


Recommended Posts

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Well the Get his job is the tricky bit ;)

But the adding the column is easy.

Here:

addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), 
    function() 
        call(getResourceFromName("SOREBOARD RESOURCE NAME"),"addScoreboardColumn","Job") 
    end 
) 

Replace the SCOREBOARD RESOURCE NAME with the resource name of the score baord you use

Regards

Link to comment

If you want to make jobs you should use>

  setElementData(thePlayer,"Job","Job Name") 

And for the scoreboard

call(getResourceFromName("scoreboard"),"addScoreboardColumn","Job",root,70) 
function refresh() 
    for a in ipairs(getElementsByType('player')) do 
        local Job = getElementData(a,"Job") 
        setElementData(a,"Job",Job ) 
    end 
setTimer(refresh, 10000, 0) 

Edited by Guest
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...