Get killers weapon
How would I go by getting the weapon of the person who just killed me?
|
From amxmodx.inc:
Code:
Example: Code:
The weapon will be an index # of the constant weapon types from amxconst.inc.... |
easy
Code:
|
Some mods don't even use the DeathMsg event, knekter.
|
and that would only work when the player dies... but it was good to point out none the less! there is more than one way, of course, so im sure people like to see the other ways too!
|
Thanks, I'll try it out..
Edit: Xero, does that do it for when the victim is already dead, or when he's being attacked? |
whenever you choose to call the function (generally only after being damaged/killed)..
So you could call it in a DeathMsg Event function or a Damaga Event function... |
So..
Code:
|
Exactly! You got it!!
(But return PLUGIN_CONTINUE too) |
Quote:
|
| All times are GMT -4. The time now is 14:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.