Jump to content

اطلاق صاوريخ


Recommended Posts

bindKey("a","down", 
function ( ) 
local m = getPedOccupiedVehicle ( localPlayer ) 
 if ( m ) then 
setTimer(function() 
    createProjectile(vehicle,19); 
                end,1000,1) 
    end 
 end 
) 

المشكلة انه ما يطلق صاروخ ابد #

Link to comment
bindKey("a","down", 
function ( ) 
local m = getPedOccupiedVehicle ( localPlayer ) 
 if ( m ) then 
setTimer(function() 
    createProjectile(vehicle,19); 
                end,1000,1) 
    end 
 end 
) 

المشكلة انه ما يطلق صاروخ ابد #

ججرب

bindKey( "a", "down", function ( ) 
local vehicle = getPedOccupiedVehicle ( localPlayer ) 
  if ( vehicle ) then 
     setTimer(function() 
      local x, y, z = getElementPosition( vehicle ) 
      createProjectile(vehicle, 19, x, y, z, 200) 
            end,1000,1) 
         end 
    end 
) 
Link to comment
اشتغل

بس انا ابيه بين كل صاروخ ياخذ فترة

مو يطلق صاروخ يحي الي بعده ع طول

# قول كذا , انا ما ادري وش تقصد من قصة التايمر

ججرب ..

CanShoot = true 
  
bindKey( "a", "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(CanShoot, 3000, 1, true) 
          end 
       end 
    end 
) 
Link to comment
CanShoot = true 
  
bindKey ( "a", "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 ( "x", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
            if getPlayerTeam ( source ) == getTeamFromName ( "Killer" ) 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 
    end 
) 
  

Link to comment
CanShoot = true 
  
bindKey ( "a", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
             if ( getPlayerTeam(localPlayer) == getTeamFromName("Killer") 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 
end 
) 

Link to comment
CanShoot = true 
  
bindKey ( "a", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
             if ( getPlayerTeam(localPlayer) == getTeamFromName("Killer") 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 
end 
) 

في قوس ناقص بسطر 8

Link to comment
CanShoot = true 
  
bindKey ( "a", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
             if ( getPlayerTeam(localPlayer) == getTeamFromName("Killer") ) 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 
end 
) 

Link to comment

CanShoot = true 
  
bindKey ( "a", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
             if ( getPlayerTeam(localPlayer) and getPlayerTeam(localPlayer) == getTeamFromName("Killer") ) 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 
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...