View Single Post
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-26-2010 , 08:21   Re: ExecuteHamB, inflictor.
Reply With Quote #17

Problem solved :
PHP Code:
public Dmg_Kill_PlayeriPluginiParams 
{
    new 
id get_param)
    new 
attacker get_param )
    new 
Float:damage get_param_f )
    new 
weaponDescription[32];
    
get_string4weaponDescriptionsizeof weaponDescription ) - );
    
    if( 
is_user_alive(id) && is_user_alive(attacker) ) 
    {
        
ExecuteForwardg_DamagedbySkillg_iReturnidattackerdamage);

        if ( 
pev_valid g_FakeEnt ) )
        {
            
entity_set_edictg_FakeEntEV_ENT_ownerattacker);
            
entity_set_stringg_FakeEntEV_SZ_classnameweaponDescription);
        }
        
        
ExecuteHamBHam_TakeDamageidg_FakeEntattackerdamageDMG_GENERIC );
    }

__________________
xbatista is offline
Send a message via Skype™ to xbatista