SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/02/2015, 10:50 AM   #1
beckzy
Beta Tester
 
Join Date: Dec 2006
Posts: 1,206
Reputation: 144
Default parachute bug

This really needs fixing. You can destroy unoccupied vehicles if you're wearing a parachute. AFAIK there is no scriptable solution for this.
beckzy is offline   Reply With Quote
Old 11/02/2015, 10:55 AM   #2
T-N-Z
Big Clucker
 
T-N-Z's Avatar
 
Join Date: May 2007
Posts: 198
Reputation: 23
Default Re: parachute bug

I agree with this, also fix fists giving damage on player dialogs and menus, because if you use weapons it won't give any damage but fists will.
T-N-Z is offline   Reply With Quote
Old 11/02/2015, 11:38 AM   #3
beckzy
Beta Tester
 
Join Date: Dec 2006
Posts: 1,206
Reputation: 144
Default Re: parachute bug

I don't want to start another topic so while we are on the subject of unoccupied vehicles. If you destroy a vehicle that has never been entered since it spawned it won't respawn.
beckzy is offline   Reply With Quote
Old 12/02/2015, 08:20 PM   #4
Cypress
Gangsta
 
Cypress's Avatar
 
Join Date: Dec 2009
Location: Germany
Posts: 939
Reputation: 127
Default Re: parachute bug

Quote:
Originally Posted by BeckzyBoi View Post
This really needs fixing. You can destroy unoccupied vehicles if you're wearing a parachute. AFAIK there is no scriptable solution for this.
Actually there is a solution but it again makes us have useless pieces of code in our game modes.

Under OnPlayerKeyStateChange check if player presses the fire key (attack key), check if he has a parachute, check if he is near any vehicle (since vehicles have different shapes make the check distance longer), usually done looping thru all vehicles on the server, getting vehicle pos and using IsPlayerInRageOfPoint. Once the loop returns a specific vehicleid, you could check if there is a driver inside it to make it possible to crash an occupied vehicle without applying your fix.

After that it's up to you what you want to do with the parachute, you could remove it from a player, set a timer and give it back after a while, you could completely remove it etc and also you could set back the vehicles health if for example it had low hp and with one possible hit, before the code to work the player crashed it, it would go on fire so setting it's health back would prevent it.

Don't know if there are any other methods, just reassuring you that you could fix that bug yourself if you need it in the meantime.
__________________

Welcome stranger. I like your attitude.
Cypress is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parachute bug Blacklite Bug Reports 4 14/12/2014 02:31 AM
[FilterScript] Parachute Jumping dewilix Filterscripts 7 25/04/2011 09:25 PM
Parachute Object Hashski Help Archive 2 18/03/2011 04:50 PM
Parachute bug? Rizard Help Archive 1 03/09/2009 12:18 PM


All times are GMT. The time now is 01:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.