How to get how a player dies
How can I get liek what the player died from, ie from an ak from a glock from an awp?
|
Re: How to get how a player dies
Code:
weaponName would then be "ak47", "m4a1", "worldspawn", etcetera. |
Re: How to get how a player dies
you should do:
Code:
|
Re: How to get how a player dies
Thansk +Karma
edit: How do I maek it so it gives the weapon id. What I want to do with this is when a player dies a certain way, when they spawn it will have a different effect from each type of death. |
Re: How to get how a player dies
lol the bottem part of avalanches code
(the code within the DeathMsg) |
Re: How to get how a player dies
Okay well I was just a little confused. Thanks to you too.
|
Re: How to get how a player dies
You could just make a global variable that contains the weapon a user was killed with:
Code:
Code:
|
Re: How to get how a player dies
note that DeathMsg event is only called in Games that
actually display a Message when a Player dies. For example, SvenCoop does not. |
Re: How to get how a player dies
Thanks Again, Yeah the Mod im Working with does use death messages.
|
| All times are GMT -4. The time now is 09:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.