01.03.2016, 20:02
pawn Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_VEHICLE)
{
new Float:vHealth;
GetVehicleHealth(hitid, vHealth);
SetVehicleHealth(hitid, vHealth-50); //Each shot to the vehicle will deal 50 damage, you can change this yourself based on the weapon used etc.
}
return 1:
}