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. 

Please do not PM me with scripting related question nor support, use the forums instead.

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.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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