24.09.2017, 08:55
You should use GetPlayerWeaponData for this, it is more accurate than GetPlayerAmmo. That way you can check the ammo for a specific weapon, instead of getting the ammo for the current weapon (which could change even though OPWS is still calling for another weapon).
Also I would not do this in OnPlayerWeaponShot, weapon data is not synced with every shot. There is no need to check this as often as any gun actually shoots (best example would be minigun, or UZI).
Also I would not do this in OnPlayerWeaponShot, weapon data is not synced with every shot. There is no need to check this as often as any gun actually shoots (best example would be minigun, or UZI).

