GUIEditor_Window = {}
GUIEditor_Grid = {}
local x,y = guiGetScreenSize()
GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"عدد القتل للاعبين",false)
GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1])
guiGridListSetSelectionMode(GUIEditor_Grid[1],2)
guiGridListAddColumn(GUIEditor_Grid[1],"اسم الاعبين",0.6)
guiGridListAddColumn(GUIEditor_Grid[1],"الاعب قتل",0.3)
function UpdateKill()
guiGridListClear(GUIEditor_Grid[1])
for i, player in ipairs (getElementsByType ("player")) do
local row = guiGridListAddRow(GUIEditor_Grid[1])
guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false)
guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false)
if i == 20 then break end
end
end
addEventHandler("onClientResourceStart",resourceRoot,UpdateKill)
addEventHandler("onClientPlayerWasted",root,UpdateKill)