Jump to content

Xx[طلب مساعده]Xx مود توب 100


Mr.Hugin

Recommended Posts

 

السلام عليكم ورحمه الله وبركاته

شباب عندي مشكله طبعن سويت مود

بس ماعرفت اكمله هوه عباره عن 

توب الاعبين تكتيك  فه ماعرفت اكمله

فه اتمنه انو يكون واحد فاهم وساعدني 

 بهاذا المود طبعن صوره المود مو لي المود هاذا

p_2167j8suw1.png

هاذي صوره للمود و

الأكواد
 

--Client side
GUIEditor = { 
    gridlist = {},
    window = {}
}
local screenW, screenH = guiGetScreenSize()
GUIEditor.window[1] = guiCreateWindow((screenW - 862) / 2, (screenH - 570) / 2, 862, 570, "TOP | 100 | Players", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.gridlist[1] = guiCreateGridList(9, 29, 843, 531, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Rank", 0.1)
guiGridListAddColumn(GUIEditor.gridlist[1], "Last Nick", 0.1)
guiGridListAddColumn(GUIEditor.gridlist[1], "Account", 0.1)
guiGridListAddColumn(GUIEditor.gridlist[1], "Kills", 0.1)
guiGridListAddColumn(GUIEditor.gridlist[1], "Deaths", 0.1)
guiGridListAddColumn(GUIEditor.gridlist[1], "K/D", 0.1)
guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.1)
------------------------------------------------------------
bindKey ( "F6" , "down" , function()
if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then
 guiSetVisible ( GUIEditor.window[1] ,false )
 showCursor (false )
 elseif ( guiGetVisible ( GUIEditor.window[1] ) == false ) then
 guiSetVisible ( GUIEditor.window[1] ,true )
 showCursor (false )
 end
 end
 )




 

--Server side
addEventHandler("onPlayerWasted", root,
function()
  for i, v in ipairs (getElementsByType("Player")) do
    if v then
      local acc = getPlayerAccount(v)
      if acc then
        local accName = tostring(getAccountName(acc))
        local kills = tonumber(getAccountData(acc, "kills")) or 0
        local deaths = tonumber(getAccountData(acc, "deaths")) or 0
        local headshots = tonumber(getAccountData(acc, "headshots")) or 0
        if accName and kills and deaths and headshots then
          triggerClientEvent(source, "updateList", source, accName, kills, deaths, headshots)
          function()
            setAccountData(acc, "kills", getElementData(source, "kills"))
            setAccountData(acc, "deaths", getElementData(source, "deaths"))
            setAccountData(acc, "headshots", getElementData(source, "headshots"))
          end,
        180, 1)
      end
    end
   end
  end
)

                                                                                                    شو يلي ناقص عشان اقدر اكمله وحدد المكان 

اذا مافي عليك امر

 

Edited by [T][O][P]CoCo
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...