Jump to content

)تمت الإفادة من قبل زاحف((طلب كود اطلأق صواريخ من السيارة


Dr.Xen

Recommended Posts

السلام عليكم ورحمة الله وبركاته!!

كيفكم حالكم !@

دووؤوم الصحة والعافية ..

اريد طلب كود اطلاق صواريخ من السيارة عند ضغط

زر كلك يسار من الماوس ..

زي الي بالشوتر ..

وشكرآ!

Edited by Guest
Link to comment

CanShoot = true 
  
bindKey ( "arrow_l", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
                local x, y, z = getElementPosition ( vehicle ) 
                createProjectile ( vehicle, 19, x, y, z, 200 ) 
                CanShoot = false 
                setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
            end 
        end 
    end 
) 
Link to comment
    CanShoot = true 
      
    bindKey ( "arrow_l", "down", 
        function ( ) 
            local vehicle = getPedOccupiedVehicle ( localPlayer ) 
            if ( vehicle ) then 
                if ( CanShoot == true ) then 
                    local x, y, z = getElementPosition ( vehicle ) 
                    createProjectile ( vehicle, 19, x, y, z, 200 ) 
                    CanShoot = false 
                    setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
                end 
            end 
        end 
    ) 

كلينت ^ :lol: 1

جربت بس ما زبط مدري ليه

Link to comment
    CanShoot = true 
      
    bindKey ( "arrow_l", "down", 
        function ( ) 
            local vehicle = getPedOccupiedVehicle ( localPlayer ) 
            if ( vehicle ) then 
                if ( CanShoot == true ) then 
                    local x, y, z = getElementPosition ( vehicle ) 
                    createProjectile ( vehicle, 19, x, y, z, 200 ) 
                    CanShoot = false 
                    setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
                end 
            end 
        end 
    ) 

كلينت ^ :lol: 1

جربت بس ما زبط مدري ليه

    CanShoot = true 
      
    bindKey ( "mouse1", "down", 
        function ( ) 
            local vehicle = getPedOccupiedVehicle ( localPlayer ) 
            if ( vehicle ) then 
                if ( CanShoot == true ) then 
                    local x, y, z = getElementPosition ( vehicle ) 
                    createProjectile ( vehicle, 19, x, y, z, 200 ) 
                    CanShoot = false 
                    setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
                end 
            end 
        end 
    ) 

Link to comment
CanShoot = true 
  
bindKey ( "arrow_l", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
                local x, y, z = getElementPosition ( vehicle ) 
                createProjectile ( vehicle, 19, x, y, z, 200 ) 
                CanShoot = false 
                setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
            end 
        end 
    end 
) 

حق عناد ذذ

Link to comment

Client Side !

CanShoot = true 
  
bindKey ( "mouse1", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
                local x, y, z = getElementPosition ( vehicle ) 
                createProjectile ( vehicle, 19, x, y, z, 200 ) 
                CanShoot = false 
                setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
            end 
        end 
    end 
) 
Link to comment
Warning: car2\script.lua:3 Bad Argument @ 'bindKey

اطرح الميتا .

CanShoot = true 
  
bindKey ( "arrow_l", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
                local x, y, z = getElementPosition ( vehicle ) 
                createProjectile ( vehicle, 19, x, y, z, 200 ) 
                CanShoot = false 
                setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
            end 
        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...