Jump to content

Help


-.Paradox.-

Recommended Posts

Posted

Hello i was searching in forum to some function to let you shoot from parachute and i found this but not working, and i'm asking how i can make it work :|

function skyD(player) 
local px,py,pz = getElementModel(player) 
setElementPosition(player, px,py,(pz + 300),false) 
  
giveWeapon ( player,46 ,1, true ) 
  
setControlState(player,"fire", true) 
setTimer(function() 
if isElement(player) then 
     setControlState(player,"fire", false) 
end 
end, 500, 1) 
  
end 
addCommandHandler("shoot", skyD) 

Posted (edited)

Well, the player can't shoot from a parachute because in GTA:SA the player hands are attached to the parachute, so the only way I could think of for you is to create a weapon and use the functions for that.

createWeapon -Create the weapon

fireWeapon or setWeaponState -These are used for firing the weapon

setWeaponTarget -Set the Co-ordinates or target for the weapon to shoot at

destroyElement -When the player touches the ground or is on the ground, destroy the weapon

Edited by Guest

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