AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make entity owner the killer? (https://forums.alliedmods.net/showthread.php?t=153337)

kotinha 03-21-2011 20:02

How to make entity owner the killer?
 
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...

nikhilgupta345 03-21-2011 20:47

Re: How to make entity owner the killer?
 
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.

wrecked_ 03-21-2011 21:03

Re: How to make entity owner the killer?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=403

tuty 03-22-2011 01:26

Re: How to make entity owner the killer?
 
you don't need the deathmsg stock to show it.. ham is better


PHP Code:

ExecuteHamHam_TakeDamageiVictimiEntiOwner1000.0DMG_SLASH ); 

example


All times are GMT -4. The time now is 14:31.

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