محاولتي ما اشتغلت
--Client
addEventHandler("onClientGUIClick",root,
function ()
local rankstake = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
if ( source == GUIEditor.button[2] ) then
if rankstake == 0 then
triggerServerEvent("lv1",localPlayer, localPlayer)
--Server
addEvent("lv1",true)
addEventHandler("lv1",root,
function()
if getElementData(source,'Level') >= 15 then
if accountName then
aclGroupAddObject (aclGetGroup("Level1"), "user."..accountName)
outputChatBox("تم اخذ رتبة جديدة",source,255,255,255,true)
else
outputChatBox("#FF0000*#00FF00You Don't Have Enough Level",source,255,255,255,true)
end
end
end)