Thread: [Solved] How to know this?
View Single Post
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South Korea
Old 04-16-2021 , 04:52   Re: How to know this?
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_event"DeathMsg" "DeathMsg" "a" "1>0" );
}

public 
DeathMsg()
{
    new 
iKiller read_data);
    new 
iVictim read_data);
    new 
szWeapon20 ];
    new 
szVictimName32 ] , szKillerName32 ];

    if ( 
iVictim != iKiller )
    {
        
read_dataszWeapon charsmaxszWeapon ) );

        
get_user_nameiKiller szKillerName charsmaxszKillerName ) );
        
get_user_nameiVictim szVictimName charsmaxszVictimName ) );
        
        
client_printprint_chat "* %s killed %s with %s%s" szKillerName szVictimName szWeapon read_data) ? ", via headshot!" "" );
    }

https://forums.alliedmods.net/showpo...14&postcount=2
Thanks, problem solved.
__________________
nG_getwreck is offline