IsPlayerInVehicle
#3

I think he means the player's health and not the vehicle's. You can use OnPlayerWeaponShot callback:
pawn Код:
// In OnPlayerWeaponShot:
if (hittype == BULLET_HIT_TYPE_PLAYER && 596 <= GetVehicleModel(GetPlayerVehicleID(hitid)) <= 599) return 0;
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.
Reply


Messages In This Thread
IsPlayerInVehicle - by D3vin - 13.05.2016, 17:25
Re: IsPlayerInVehicle - by Skimmer - 13.05.2016, 17:35
Re: IsPlayerInVehicle - by Konstantinos - 13.05.2016, 17:38
Re: IsPlayerInVehicle - by D3vin - 13.05.2016, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)