Jump to content

scoreboard Add Column


Recommended Posts

Posted

How can I make a script that adds a column in the scoreboard named "Class" and I can increase my class using / class Soldier / class Capitan ...?

call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "My Class" ) 
  
-- Note that this syntax is also valid 
exports.dxscoreboard:scoreboardAddColumn( "My Class" ) 

Posted
exports.dxscoreboard:scoreboardAddColumn( "Class" ) 
-- Use the 2nd argument on the server-side 
  
addCommandHandler 
setElementData(player, "Class", value) 
-- In the 3rd argument, you define "Soldier", "Capitan", etc. 

Posted
Poderia mandar um codigo mais complexo ? Por exemplo faze-lo que sómente os jogadores que possuir uma Gangue / Grupo possam fazer este comando ?

just english here.

Posted
Poderia mandar um codigo mais complexo ? Por exemplo faze-lo que sómente os jogadores que possuir uma Gangue / Grupo possam fazer este comando ?

just english here.

You could have a more complex code? For example do so that as few players who have a gang can do this command?

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