Quote:
Originally Posted by fysiks
It depends on what you are actually hooking. If you are hooking the actual death message (as opposed to Ham_Spawn), you can get the appropriate argument that contains the dead player's entity number. Search for other examples of hooking "DeathMsg" because most all of them will use either the killer or victim id.
Also, you can see all the arguments of the various messages here.
|
Thanks. And what i'm trying to do, is something like this:
PHP Code:
public Ev_DeathMsg()
{
// steamids
new szAuthID[ 35 ]; get_user_authid( index, szAuthID, cm( szAuthID ) )
new iDummy;
new iKiller = read_data( 1 )
new iVictim = read_data( 2 )
new iIsHeadshot = read_data( 3 )
// if steamid found
if(iIsHeadshot && TrieGetCell( g_tAuthIdOfPeople, szAuthID, iDummy) )
{
// send hud message
}
else
{
// another stuff
}