[Include] VDMG (damage vehicles with no driver!) - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] VDMG (damage vehicles with no driver!) (
/showthread.php?tid=653372)
VDMG (damage vehicles with no driver!) -
Lokii - 02.05.2018
VDMG
This include allows player to damage vehicle when there is no driver or passangers.
HOW TO USE
Just include it (after a_samp)
PHP код:
#include <a_samp>
#include <VDMG>
FUNCTIONS
0 - vehicle will get damage
any other number than 0 vehicle will not get damage
PHP код:
ToggleVehicleDamageable(vehicleid, status);
NOTICE: melee weapons, grenades, molotov and rockets are not supported!
VIDEO
DOWNLOAD
CREDITS
SA-MP TEAM for a_samp
Lokii for VDMG
Re: VDMG (damage vehicles with no driver!) -
Kar - 03.05.2018
This has a potential race condition sync bug. Also u are deducting damage even if they is a driver
Re: VDMG (damage vehicles with no driver!) -
Lokii - 03.05.2018
Quote:
Originally Posted by Kar
This has a potential race condition sync bug. Also u are deducting damage even if they is a driver
|
UPDATED!
updated this:
Quote:
Also u are deducting damage even if they is a driver
|
but i dont know what is this:
Quote:
This has a potential race condition sync bug
|
Re: VDMG (damage vehicles with no driver!) -
TokicMajstor - 03.02.2019
Thank you this is useful but I would like it more if it is not include, just to add it to script