Jump to content

help setElementData and getElementData


barnik

Recommended Posts

function DataOutput(thePlayer, account)
    local accountSource = getPlayerAccount ( thePlayer ) 
    local smerti = getAccountData ( accountSource, "totalTable.Deaths" )
    local ubiystva = getAccountData ( accountSource, "totalTable.Kills" )
    local points = getAccountData ( accountSource, "totalTable.Points" )
    outputChatBox("#FFA420[myStats] #00FFFFKills: ["..tostring(ubiystva).."] #FF0000|#00FFFF Deaths: ["..smerti.."] #FF0000|#00FFFF Points: ["..points.."] ", thePlayer, 255,255,255,true)
end
addCommandHandler ( "mystats", DataOutput )

 

Hi, can someone explain to me or show me how to bring murders, deaths and points into one table and dispose of them from one table?

Later, I want to make a system of top players, according to these parameters, can you tell me where it is better to start?


Thanks 0_o

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