Raised This Month: $ Target: $400
 0% 

ExecuteHam don't show killer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-06-2013 , 17:17   ExecuteHam don't show killer
Reply With Quote #1

This should write in deathmsg something like 'Player (grenade icon) Player2', shouldn't it?

PHP Code:
iGrenade create_entity("grenade")
 
ExecuteHam(Ham_TakeDamageVictimiGrenadeOwner100.0DMG_BLAST
Because this writes nothing when player get killed.

Last edited by ~Ice*shOt; 07-06-2013 at 17:18.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 07-06-2013 , 20:25   Re: ExecuteHam don't show killer
Reply With Quote #2

Quote:
Originally Posted by ~Ice*shOt View Post
This should write in deathmsg something like 'Player (grenade icon) Player2', shouldn't it?

PHP Code:
iGrenade create_entity("grenade")
 
ExecuteHam(Ham_TakeDamageVictimiGrenadeOwner100.0DMG_BLAST
Because this writes nothing when player get killed.
where is this code executed? please show full code.
__________________
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-07-2013 , 03:21   Re: ExecuteHam don't show killer
Reply With Quote #3

Make sure owner is set, and pass DMG_HEGRENADE (1<<24) instead DMG_BLAST

DMG_BLAST is c4 damage, and as you may have noticed, there are no DeathMsg on C4 explosion.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-07-2013 , 06:26   Re: ExecuteHam don't show killer
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Make sure owner is set, and pass DMG_HEGRENADE (1<<24) instead DMG_BLAST

DMG_BLAST is c4 damage, and as you may have noticed, there are no DeathMsg on C4 explosion.
Hmm now it works, when i replaced DMG_BLAST with DMG_HEGRENADE (1<<24)
But how then make for example when player dies after execute his body blow away?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-07-2013 , 06:34   Re: ExecuteHam don't show killer
Reply With Quote #5

Try : ExecuteHam(Ham_TakeDamage, Victim, iGrenade, Owner, 100.0, DMG_ALWAYSGIB | DMG_HEGRENADE)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-07-2013 , 06:42   Re: ExecuteHam don't show killer
Reply With Quote #6

Well, have to use this.. Thanks for help
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode