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) 

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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

My in-game name: Jaysds1

Retired CMG Scripter

World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode

Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/

 

sE5Qm.png

TiV3C.png

img.php?id=0&text=Lua%20Scripter

Posted

So it's impossible?

I tried to jump with parachute and i take ak-47 while skydiving and i tried to shoot but nothing happened :|

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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