2019-08-17, 09:13 AM
(2019-06-02, 08:42 AM)SkeeZy Wrote:(2019-05-21, 08:04 AM)Riddick Wrote: I know we are all about that "compatibility" but damn I wish for bodypart param. in OnPlayerDeath callback.
Maybe OnPlayerHitByPlayer(playerid, shooterid, bodypart, gun) or OnPlayerHit(?.) ? Would be very sick
And will there be a thread about new server limits like:
- max. vehicles
- max. objects
- ...
I highly doubt that bodypart is recognized when player is hit. I never tested that in native callbacks (as of what value it returns) but OnPlayerHitByPlayer are possible and easy to do. Just check if in OnPlayerTakeDamage the weapon of issuerid was melee, if so you can call your custom callback.
You can go even further with it, but that's up to you.
My callbacks:
https://i.imgur.com/S7Mfikm.png
P.S
Never take a screenshot of your code, remember that.