Are you trying to use SDK hooks to block damage from these weapons?
Try this:
PHP Code:
public void OnClientPutInServer(int client)
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3], int damagecustom)
{
switch(weapon)
{
case CSWeapon_INCGRENADE, CSWeapon_MOLOTOV, CSWeapon_HEGRENADE, CSWeapon_KNIFE:
{
return Plugin_Handled;
}
}
}
__________________