SA-MP Forums Archive
Vehicle health issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle health issue (/showthread.php?tid=285632)



Vehicle health issue - HeLiOn_PrImE - 24.09.2011

I need to know how can I make the unused vehicles vulnerable. Like, if I shoot a vehicle with no passengers i will explode like normally. So far all the spawned cars are in god mode if they have no driver. And a lot of people are abusing that. They get in the right seat and start shooting everybody. I would shoot the car but it's useless.


Re: Vehicle health issue - Redgie - 24.09.2011

Vehicles without a driver can't be damaged. You can however put in automatic punishments that kill a player if he kills someone from the passenger seat of a car with no driver.

And with 0.3d you can even disable the ability for that player to damage somebody.

Or you could remove the weapon of anybody who gets into a passenger seat of a car with no driver, then give them it back when a driver appears, but that's like to cause DB problems.


Re: Vehicle health issue - Kingunit - 24.09.2011

Quote:
Originally Posted by Redgie
Посмотреть сообщение
Vehicles without a driver can't be damaged. You can however put in automatic punishments that kill a player if he kills someone from the passenger seat of a car with no driver.

And with 0.3d you can even disable the ability for that player to damage somebody.

Or you could remove the weapon of anybody who gets into a passenger seat of a car with no driver, then give them it back when a driver appears, but that's like to cause DB problems.
Its possible and very unique. I will search for it.


Re: Vehicle health issue - HeLiOn_PrImE - 25.09.2011

I found that on some servers, i know it's possible.


Re: Vehicle health issue - =WoR=Varth - 25.09.2011

There's an FS using "OnUnoccupiedVehicleUpdate" AFAIK.