13.05.2016, 17:38
I think he means the player's health and not the vehicle's. You can use OnPlayerWeaponShot callback:
if the player that gets shot is inside LSPD, SFPD, LVPD or Police Ranger then the bullet will not be synced. For more things such as bullets from sea sparrow etc, you better use OnPlayerTakeDamage callback instead.
pawn Код:
// In OnPlayerWeaponShot:
if (hittype == BULLET_HIT_TYPE_PLAYER && 596 <= GetVehicleModel(GetPlayerVehicleID(hitid)) <= 599) return 0;