Jump to content

X[ استفسار مود التوب ]X


#STZ

Recommended Posts

function gettop20money()
local table={}
for k,v in ipairs(getElementsByType('player')do    
 table.insert(table,{plr=v,mo=getPlayerMoney(v)})
    end
  table.sort(table,function(a,b) return a.mo>b.mo end)
      local final={}
    for k=1,20 do
    table.insert(final,table[k])  
    end
    return final
  end
  addCommandHandler('getTop20',function(plr)
    local players=  gettop20money()
      for k,v in ipairs(players)do
        outputChatBox('the plr name is ['..getPlayerNamee(v[1])..'] and he is money = ['..v[2]..']$ ',plr)
        end
    end)
  

الكود غير مجرب

Link to comment
40 minutes ago, Master_Ali said:

function gettop20money()
local table={}
for k,v in ipairs(getElementsByType('player')do    
 table.insert(table,{plr=v,mo=getPlayerMoney(v)})
    end
  table.sort(table,function(a,b) return a.mo>b.mo end)
      local final={}
    for k=1,20 do
    table.insert(final,table[k])  
    end
    return final
  end
  addCommandHandler('getTop20',function(plr)
    local players=  gettop20money()
      for k,v in ipairs(players)do
        outputChatBox('the plr name is ['..getPlayerNamee(v[1])..'] and he is money = ['..v[2]..']$ ',plr)
        end
    end)
  

الكود غير مجرب

getPlayerNamee ?

  • Like 1
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...