Jump to content

طلب كود زر


baba

Recommended Posts

اعملها بترايقر و سيرفر

كلنت #

GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(406, 162, 523, 349, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.button[1] = guiCreateButton(35, 191, 179, 70, "Give Armor", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(301, 191, 179, 70, "Give Health", false, GUIEditor.window[1 
            guiSetVisible(GUIEditor.window[1],false) 
        ])     
    end 
) 
  
addEventHandler("onClientGUIClick",root, 
function ()  
      if source == GUIEditor.button[1] then  
       guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
triggerServerEvent ( "dd", localPlayer) 
        end 
        end) 
        
  
        addEventHandler("onClientGUIClick",root, 
function (player)  
      if source == GUIEditor_Button[2] then  
       guiSetVisible(GUIEditor.window[1],false)  
        showCursor(false) 
triggerServerEvent ( "aa", localPlayer) 
        end 
        end) 
        
  
        
        function open( )  
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]) ) 
    showCursor ( guiGetVisible(GUIEditor.window[1])  ) 
end 
bindKey( 'F7', 'down', open ) 
  
  

#سيرفر

addEvent("aa",true) 
addEventHandler("aa",root, 
function() 
    setElementHealth ( source,  100 ) 
end) 
  
addEvent("dd",true) 
addEventHandler("dd",root, 
function( ) 
      setPedArmor ( source, 100 ) 
end 
end) 
  

وين الغلط

سطر 14

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...