Jump to content

طلب كود


Recommended Posts

ابغى اذا دخل الماركر

ابغى يقلب على سلاح

m4

31

لاحظوا ما ابغاه يعطيه ابغاه يقلب والاعب مايقدر يغير السلاح

m4

لين يطلع من الماركر

  
 t = createMarker(2891.033203125,-549.40942382813,12.615109443665, "cylinder", 2, 255, 252, 0) 
addEventHandler("onMarkerHit", t, 
function(player) 
     
     end 
end) 
  

Link to comment
local myMarker = createMarker( ... ) 
  
  
addEventHandler( "onMarkerHit", myMarker, 
  function (thePlayer) 
    if getElementType ( thePlayer ) == "player" then 
    giveWeapon ( thePlayer, 31, 200 ) 
    end 
  end 
) 
  
  
addEventHandler( "onMarkerLeave", myMarker, 
  function (thePlayer) 
    if getElementType ( thePlayer ) == "player" then 
    takeWeapon( thePlayer, 31 ) 
    end 
  end 
) 

جرببءَ

Link to comment

انت ماسويت المطلوب

انت الحين خليته اذا دخل الماركر يجيلة السلاح ويقدر يستخدمة

واذا خرج يروح السلاح

انا ما ابغى كذا انا ابغى يقلب السلاح

مثلن هو عند

m4 و mp5

من قبل يدخل الماركر ودخل الماركر بسلاح

mp5

مايعطية سلاح بس يقلب على الام فور اللي عنده ومايقدر يرجع

mp5

لين يطلع من الماركر

يعني جوا الماركر يقلب على سلاح ام فووور ومايقدر يقلب سلاح غيرة

Link to comment
local Marker = createMarker( ... ) 
  
addEventHandler("onMarkerHit", Marker, 
function (thePlayer) 
if getElementType ( thePlayer ) = "player"  
    takeWeapon( thePlayer, اى دى السلاح ) 
    giveWeapon ( thePlayer, 31, 200 ) 
  end 
end 
) 
  
  
addEventHandler("onMarkerLeave", Marker, 
function (thePlayer) 
if getElementType ( thePlayer ) = "player" then 
takeWeapon ( thePlayer, 31, 200 ) 
giveWeapon ( thePlayer, اى دى السلاح ) 
   end 
end 
) 
  

اسف لو ماعرفت اوفر الفنكشنات اللازمة بس ها ممكن يساعدك

ها وهو داخل يمسح سلاح معين حط رقم السلاح فى مكان الكلام اللى بالعربى

اول لما يدخل المركر يسحب سلاحو ويعطيلو سلاح رقم 31 واول لما يخرج يسحب سلاح رقم 31 ويعطيلو سلاح اللى تبى

حط نفس الرقم فى مكان الكلام اللى بالعربى

Edited by Guest
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...