Code:
public plugin_init( )
register_event( "DeathMsg", "CallbackForward", "a" /* It's globaly */, "1!0" /* Killer is not null */ );
/* Killer is first argument which is byte though */
/* Then 1 will be not equal with 0 when executing CallbackForward */
public CallbackForward( /* Null argument */ )
{
static iKiller;
static iVictim;
static iHeadshot;
static cWeapon[ 24 ];
iKiller = read_data( 1 ); /* 1 = Killer */
iVictim = read_data( 2 ); /* 2 = Victim */
iHeadshot = read_data( 3 ); /* 3 = Headshot */
read_data( 4, cWeapon, 23 ); /* 4 = Weapon name */
/*
So, iKiller will be every time higher than zero, as we set the condition in register_event.
That means every time we will have a connected killer which is player.
*/
}
/*
Type on Google "HL1 Game Events Wiki" to see the full list of events and their bytes, strings, coords, et cetera.
*/
__________________