[Include] OnPlayerInvalidBulletShot
#1

OnPlayerInvalidBulletShot

All this does is detects invalid bullets and passes them to a callback. This should prevent bullet crashers from crashing players. This was apparently fixed in 0.3.7 but it has been patched I believe.

pawn Код:
public OnPlayerInvalidBulletShot(playerid, reason);
The "reason" parameter contains a value relative to these error IDs:

BULLET_INVALID_WEAPON_IDAn invalid weapon ID was used to fire an invalid bullet.
BULLET_INVALID_HIT_TYPEAn invalid hit type was detected.
BULLET_INVALID_HIT_IDAn invalid hit ID was detected.
BULLET_OUT_OF_RANGEThe bullet was out of range from the player.
BULLET_RAPID_SHOTThe bullet was fired too quickly after the previous one.
All invalid bullets are automatically discarded to prevent further damage.

Download: https://www.dropbox.com/s/6c7kxjy0bi...OPIBS.inc?dl=1
Reply


Messages In This Thread
OnPlayerInvalidBulletShot - by Emmet_ - 10.07.2015, 00:01
Re: OnPlayerInvalidBulletShot - by alex10 - 10.07.2015, 00:41
Re: OnPlayerInvalidBulletShot - by eXeDev - 10.07.2015, 05:51
Re: OnPlayerInvalidBulletShot - by Sime30 - 10.07.2015, 22:32
Re: OnPlayerInvalidBulletShot - by muzammilfreeman - 10.07.2015, 23:01
Re: OnPlayerInvalidBulletShot - by Emmet_ - 11.07.2015, 00:09
Re: OnPlayerInvalidBulletShot - by XxBaDxBoYxX - 11.07.2015, 00:41
Re: OnPlayerInvalidBulletShot - by Lorenc_ - 11.07.2015, 01:21
Re: OnPlayerInvalidBulletShot - by Sime30 - 11.07.2015, 02:15
Re: OnPlayerInvalidBulletShot - by Lorenc_ - 11.07.2015, 12:02
Re: OnPlayerInvalidBulletShot - by Emmet_ - 11.07.2015, 13:44
Re: OnPlayerInvalidBulletShot - by Lorenc_ - 11.07.2015, 14:22
Re: OnPlayerInvalidBulletShot - by BlowUP - 12.07.2015, 02:51
Re: OnPlayerInvalidBulletShot - by Emmet_ - 12.07.2015, 03:06
Re: OnPlayerInvalidBulletShot - by codeshadow - 12.07.2015, 06:00
Re: OnPlayerInvalidBulletShot - by Emmet_ - 12.07.2015, 07:16
Re: OnPlayerInvalidBulletShot - by n0minal - 12.07.2015, 07:19

Forum Jump:


Users browsing this thread: 2 Guest(s)