Jump to content

x[ طــلـــب ]x تمت الافاده


Sfa7

Recommended Posts

اخوي برستيج هذا مادري كيف جاي ماعرف استخدمه

انا ابي اسوي ماركر الي يدخله مايقدر يضرب وينسحب موتره بس.!

ماضن يبيلها كل هذا المود ووو

Link to comment

-- Server Side !

SafahM = createMarker ( x, y, z, "cylinder", size, 0, 0, 0, 0 ) 
  
addEventHandler ( "onMarkerHit", SafahM, 
    function ( hitPlayer ) 
        if getElementType ( hitPlayer ) == "player" then 
            toggleControl ( hitPlayer, "fire", false ) 
        elseif getElementType ( hitPlayer ) == "vehicle" then 
            local Player = getVehicleController ( hitPlayer ) 
            outputChatBox ( "* ممنوع دخول المواتر هنا !", Player, 255, 0, 0, true ) 
            destroyElement ( hitPlayer ) 
        end 
    end 
) 
  
addEventHandler ( "onMarkerLeave", SafahM, 
    function ( leftPlayer ) 
        if getElementType ( leftPlayer ) == "player" then 
            toggleControl ( leftPlayer, "fire", true ) 
        end 
    end 
) 

الإستبدآل في السطر الأول فقط ,

x, y, z = إحداثيات الماركر !

size = حجم الماركر !

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