Jump to content

تم افاده


Recommended Posts

شف عدلت لك حق ضغط الزر

local id = ايدي السلاح اكتبه هنا 
addEventHandler( "onClientGUIClick",root,  
function( ) 
  if ( source == GUIEditor.button[1] ) then 
triggerServerEvent("wep1",localPlayer) 
        guiSetVisible ( wnd, false) 
        showCursor (false) 
    end 
end ) 
----- server 
addEvent("wep1", true) 
addEventHandler("wep1", getRootElement(), 
function() 
giveWeapon ( source, id, 999 ) 
end) 

Link to comment

كلنت

  
addEventHandler( "onClientGUIClick",root, 
function( ) 
  if ( source == GUIEditor.button[1] ) then 
triggerServerEvent("wep1",localPlayer) 
        guiSetVisible ( wnd, false) 
        showCursor (false) 
    end 
end ) 
  

سيرفر

local id = ايدي السلاح اكتبه هنا 
addEvent("wep1", true) 
addEventHandler("wep1", getRootElement(), 
function() 
giveWeapon ( source, id, 999 ) 
end) 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...