Raised This Month: $ Target: $400
 0% 

How to make entity owner the killer?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 03-21-2011 , 20:02   How to make entity owner the killer?
Reply With Quote #1

I'm making a plugin where player can throw entitys and when they hit another player it takes damage from him.
If the player is killed, it appears that he has suicide (top right corner), how can I change that?
It must appear that the owner of the entity has killed him...
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 03-21-2011 , 20:47   Re: How to make entity owner the killer?
Reply With Quote #2

If using fakemeta, you can use the follwing thing:

new owner = pev( entity, pev_owner );

and owner is the new owner id. Then search for changing death icon or something like that.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-21-2011 , 21:03   Re: How to make entity owner the killer?
Reply With Quote #3

http://www.amxmodx.org/funcwiki.php?go=func&id=403
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-22-2011 , 01:26   Re: How to make entity owner the killer?
Reply With Quote #4

you don't need the deathmsg stock to show it.. ham is better


PHP Code:
ExecuteHamHam_TakeDamageiVictimiEntiOwner1000.0DMG_SLASH ); 
example
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
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 14:31.


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