View Single Post
franzcis066
Member
Join Date: Nov 2007
Old 05-18-2008 , 13:14   Re: [EXTENSION] Hooker *BETA
Reply With Quote #9

Code:
public OnPluginStart()
{
        RegisterHook(HK_WeaponDrop, WeaponDrop, false);
}

public Action:WeaponDrop(client, weapon)
{
    decl String:WeaponName[64];
        GetEdictClassname(weapon, WeaponName, sizeof(WeaponName));
    if(StrEqual(WeaponName, "weapon_c4"))
    {
        return Plugin_Continue;
    }
    else
    {
        return Plugin_Handled;//Even if the code is only return Plugin_Handled it still the same..
    }
}
SourceMod Version "1.1.0.2119"
franzcis066 is offline