SA-MP Forums Archive
How to get shooter name and weapon he used. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to get shooter name and weapon he used. (/showthread.php?tid=511197)



How to get shooter name and weapon he used. - DemME - 04.05.2014

Hey guys, I just wanna do that it will show people around with "Proxdectector" in OnDeathPlayer or whatever is the public calls, like this :


Thanks for the helpers, promising I will +rep to who will teach me it.


Re: How to get shooter name and weapon he used. - [WSF]ThA_Devil - 04.05.2014

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
https://sampwiki.blast.hk/wiki/Format
https://sampwiki.blast.hk/wiki/GetWeaponName
https://sampwiki.blast.hk/wiki/GetPlayerName

That's about what you need.
Use BULLET_HIT_TYPE_PLAYER
and hitid will return injured players id.


Re: How to get shooter name and weapon he used. - DemME - 04.05.2014

Quote:
Originally Posted by [WSF]ThA_Devil
Посмотреть сообщение
Thank you buddy, well apprcieate!


Re: How to get shooter name and weapon he used. - DemME - 04.05.2014

Didn't got yet how to use it properly