Problem solved :
PHP Code:
public Dmg_Kill_Player( iPlugin, iParams )
{
new id = get_param( 1 )
new attacker = get_param ( 2 )
new Float:damage = get_param_f ( 3 )
new weaponDescription[32];
get_string( 4, weaponDescription, sizeof ( weaponDescription ) - 1 );
if( is_user_alive(id) && is_user_alive(attacker) )
{
ExecuteForward( g_DamagedbySkill, g_iReturn, id, attacker, damage);
if ( pev_valid ( g_FakeEnt ) )
{
entity_set_edict( g_FakeEnt, EV_ENT_owner, attacker);
entity_set_string( g_FakeEnt, EV_SZ_classname, weaponDescription);
}
ExecuteHamB( Ham_TakeDamage, id, g_FakeEnt, attacker, damage, DMG_GENERIC );
}
}
__________________