عطني مثال عليهم لاهنت
الويكي يدوخ الواحد ض1
(على هذا الكود مثلا , ابغى اذا الاعب حدد اسم الاعب اللي مات وضغط الزر ينفذ امر ( اي شي, يعطي الاعب فلوس مثلا
function centerWindow(center_window)
local screenW,screenH=guiGetScreenSize()
local windowW,windowH=guiGetSize(center_window,false)
local x,y = (screenW-windowW)/2,(screenH-windowH)/2
guiSetPosition(center_window,x,y,false)
end
window = guiCreateWindow(402,155,631,498,"",false)
button = guiCreateButton(16, 290, 610, 200, "kill ped", false, window)
centerWindow(window)
grid = guiCreateGridList(0.0507,0.1205,0.9049,0.5884,true,window)
guiGridListSetSelectionMode(grid,2)
column = guiGridListAddColumn(grid,"# Players Wasted",0.95)
addEventHandler("onClientPlayerWasted", getRootElement(),
function ()
local name = getPlayerName(localPlayer):gsub('#%x%x%x%x%x%x', '')
local row = guiGridListAddRow (grid)
guiGridListSetItemText ( grid, row, column, "" ..name.. "", false, false )
end)