SA-MP Forums Archive
evf - 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: evf (/showthread.php?tid=641069)



evf - crukk11 - 10.09.2017

can anyone show example of script function of this

PHP код:
 IsUnoccupiedDamageToggled(vehicleid); 



Re: evf - AbyssMorgan - 10.09.2017

Return 1 if unoccupied damage is enabled
This is function for read config from ToggleUnoccupiedDamage


Re: evf - crukk11 - 10.09.2017

This mean,the vehicle can get fire without the player inside car


Re: evf - Xeon™ - 10.09.2017

Quote:
Originally Posted by crukk11
Посмотреть сообщение
This mean,the vehicle can get fire without the player inside car
Set Player Health to 500+ and the car won't burn (you can try setting vehicle health, idk)

or you can just use https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate and check if the health is under 100 and the player is On, and set the vehicle player to 100 again.


Re: evf - crukk11 - 11.09.2017

what?


Re: evf - Paulice - 11.09.2017

Quote:
Originally Posted by crukk11
Посмотреть сообщение
This mean,the vehicle can get fire without the player inside car
Yes... Function needs to be renamed with "Vehicle" included tbh.