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"