• 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two screenshots
#52
(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.
[Image: widget.png?style=banner2]


  Reply


Messages In This Thread
Two screenshots - by Y_Less - 2019-05-08, 04:30 PM
RE: Two screenshots - by DTV - 2019-05-08, 05:02 PM
RE: Two screenshots - by Kheiron - 2019-05-08, 05:13 PM
RE: Two screenshots - by Volfik - 2019-05-08, 06:11 PM
RE: Two screenshots - by ohmios - 2019-05-08, 06:34 PM
RE: Two screenshots - by Josh - 2019-05-08, 09:18 PM
RE: Two screenshots - by hual - 2019-05-09, 10:12 PM
RE: Two screenshots - by Kratos_RoG - 2019-05-08, 06:48 PM
RE: Two screenshots - by Manyula - 2019-05-08, 08:57 PM
RE: Two screenshots - by Y_Less - 2019-05-08, 11:16 PM
RE: Two screenshots - by Deity - 2019-05-09, 10:55 PM
RE: Two screenshots - by JustMichael - 2019-05-10, 04:33 PM
RE: Two screenshots - by SyS - 2019-05-09, 02:21 PM
RE: Two screenshots - by Gravityfalls - 2019-05-09, 02:58 PM
RE: Two screenshots - by Sid - 2019-05-09, 02:58 PM
RE: Two screenshots - by Verc - 2019-05-10, 08:16 AM
RE: Two screenshots - by unix - 2019-05-12, 08:00 PM
RE: Two screenshots - by BigETI - 2019-05-13, 09:18 AM
RE: Two screenshots - by Y_Less - 2019-05-13, 12:07 PM
RE: Two screenshots - by universetwister* - 2019-05-13, 11:54 AM
RE: Two screenshots - by BigETI - 2019-05-13, 12:18 PM
RE: Two screenshots - by Freeze - 2019-05-15, 04:16 PM
RE: Two screenshots - by Afisiado - 2019-05-15, 05:03 PM
RE: Two screenshots - by Geto_Dac - 2019-05-15, 05:19 PM
RE: Two screenshots - by Akino Kiritani - 2019-05-16, 07:06 AM
RE: Two screenshots - by AkiraR - 2019-05-15, 11:39 PM
RE: Two screenshots - by Y_Less - 2019-05-20, 03:39 PM
RE: Two screenshots - by BigETI - 2019-05-17, 04:30 AM
RE: Two screenshots - by ohmios - 2019-05-17, 07:15 AM
RE: Two screenshots - by BigETI - 2019-05-17, 07:19 AM
RE: Two screenshots - by Freeze - 2019-05-17, 04:09 PM
RE: Two screenshots - by Beasthian - 2019-05-18, 04:52 AM
RE: Two screenshots - by nik - 2019-05-19, 01:44 PM
RE: Two screenshots - by Hajime.Ghost - 2019-05-20, 09:30 PM
RE: Two screenshots - by Riddick - 2019-05-21, 08:04 AM
RE: Two screenshots - by hual - 2019-05-21, 09:54 AM
RE: Two screenshots - by SkeeZy - 2019-06-02, 08:42 AM
RE: Two screenshots - by Dayrion - 2019-06-03, 10:32 AM
RE: Two screenshots - by Riddick - 2019-08-17, 09:13 AM
RE: Two screenshots - by Roth - 2019-05-21, 01:37 PM
RE: Two screenshots - by ComDuck - 2019-05-25, 05:10 AM
RE: Two screenshots - by Y_Less - 2019-05-25, 08:12 AM
RE: Two screenshots - by Y_Less - 2019-05-29, 12:03 PM
RE: Two screenshots - by Whitetiger - 2019-05-29, 03:36 AM
RE: Two screenshots - by Leslie - 2019-06-24, 06:31 AM
RE: Two screenshots - by Saco - 2019-07-02, 03:51 PM
RE: Two screenshots - by Alterego - 2019-07-17, 02:13 AM
RE: Two screenshots - by dakyskye - 2019-09-26, 01:06 PM
RE: Two screenshots - by Alpha Code - 2019-07-30, 09:33 PM
RE: Two screenshots - by Metro - 2019-07-31, 02:28 PM
RE: Two screenshots - by L1onelY - 2019-08-10, 03:52 PM
RE: Two screenshots - by Nao - 2019-08-14, 02:31 AM
RE: Two screenshots - by Firecat - 2019-09-19, 07:53 PM
RE: Two screenshots - by ronfino - 2019-09-21, 07:05 PM
RE: Two screenshots - by loooove - 2019-09-24, 03:47 PM
RE: Two screenshots - by deepCode - 2019-09-29, 07:11 PM
RE: Two screenshots - by Tama - 2019-10-01, 07:38 AM

Forum Jump: