Jump to content

طلب كود


Recommended Posts

createMaker -- صنع ماركر

onMarkerHit -- عند لمس الماركر

getElementType -- جلب العنصر الي لمس الماركر لاعب آلخخ

giveWeapon -- اعطاء سلاح

للاسف هو يبي جاهز :cry:

  
marker = createMarker(x,y,z,"cylinder",1,0,255,0,255) 
  
addEventHandler("onMarkerHit",root, 
function(noob) 
    if getElementType(noob) == "player" and source == marker and not isPedInVehicle(noob) then 
        giveWeapon ( noob, 46, 200) 
    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...