Quote:
Originally Posted by DjOptimuS
"killer" is not the userid, killer is the killer's name, read through event.
|
Killer is the players id (not userid). To obtain the players name in DeathMsg you must use get_user_name( killer , [...] ).
- DeathMsg
- byte KillerID
- byte VictimID
- byte IsHeadshot
- string TruncatedWeaponName
Why not check all conditions with a single if()?
PHP Code:
public client_death( iKiller , iVictim , iWeapon , iHitplace , TK )
{
if ( ( iWeapon == CSW_HEGRENADE ) && !TK && is_user_alive( iKiller ) )
{
give_item(iKiller, "weapon_hegrenade")
}
}
__________________