Jump to content

Rank


Arsilex

Recommended Posts

Rangos = { }

addEventHandler("onResourceStart", root,

function()

local players = getElementsByType ( "player" )

for i, k in ipairs(players) do

table.insert (Rangos, getElementData ( k, "Puntos-Rangos"))

table.sort (Rangos)

end

end

)

how i can use this for put all ranks in tabla and orgraniza whit sort for put in score in : Rank 1 = 1500 Point and Rank 2 = 1000 point :S?

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