Jump to content

طلب كود


Recommended Posts

كلنت ...

  
حدث = "onClientGUIClick" 
if (source== Button) then 
setElementPosition -------- عدلها انت شوف الويكي 
triggerServerEvent ------ عدله 
setCameraMatrix ------------- عدلها 
end  --------- for if 

استعمل فنكشن

getCameraMatrix

للحصول على احداثيات الماتركس

سيرفر....

  
addEvent("اسم الحدث حق الترايقر",true) 
  
function ABC ( ) 
giveWeapon ( source, 30,10000) 
end ------- for ABC 
  
addEventHandler("اسم الحدث حق الترايقر", getRootElement(), ABC) 
  

---------------------------

جانب سيرفر عدل فيه اسم الحدث حق الترايقر

وعدد الرصاص = 10000

والسلاح رقمه = 30 = رشاش

اسم الحدث حق الترايقر انت الي تحطه

والفنكشنات ماهو ضروري تعدل اسمها :roll:

----------------------------

#EDITED

تقدر زي ماقال شاويكي تحط السباون في جانب سيرفر

وتحذف

setElementPosition

Link to comment
if ( source ==  GUIEditor.button[1] ) then 
setElementPosition ( source, 2490.1206054688, -1666.0263671875, 13.34375 ) 
 triggerServerEvent("CJ",getLocalPlayer()) 
end) 

-- ممكن تصحيح

addEventHandler("onClientGUIClick", resourceRoot, function( ) 
    if ( source ==  GUIEditor.button[1] ) then 
    setElementPosition ( localPlayer, 2490.1206054688, -1666.0263671875, 13.34375 ) 
    triggerServerEvent("CJ",localPlayer) 
    end 
end) 

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