KnifeBan: fix bug where nades of knife banned players didnt do damage
This commit is contained in:
parent
351ed3b7ee
commit
c5530a8722
@ -196,8 +196,8 @@ public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &dam
|
||||
else
|
||||
return Plugin_Continue;
|
||||
|
||||
if(!StrEqual(sWeapon, "weapon_knife"))
|
||||
return Plugin_Continue;
|
||||
if(!StrEqual(sWeapon, "weapon_knife") || damagetype & DMG_BLAST)
|
||||
return Plugin_Continue;
|
||||
|
||||
CPrintToChat(attacker, "\x07%s[KnifeBan] \x07%sYou are currently knifebanned.", "E01B5D", "F16767");
|
||||
damage = 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user