[Include] VDMG (damage vehicles with no driver!)
#1

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(vehicleidstatus); 
NOTICE: melee weapons, grenades, molotov and rockets are not supported!









VIDEO

[Image: *******-256.png]


DOWNLOAD



CREDITS
SA-MP TEAM for a_samp
Lokii for VDMG
Reply
#2

This has a potential race condition sync bug. Also u are deducting damage even if they is a driver
Reply
#3

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

Reply
#4

Thank you this is useful but I would like it more if it is not include, just to add it to script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)