forked from UNLOZE/sm-plugins
initial release: Buffshotguns
+ fix a small error for invalid edict s
This commit is contained in:
@@ -187,7 +187,10 @@ public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &dam
|
||||
|
||||
char sWeapon[32];
|
||||
int iWeapon = GetEntDataEnt2(attacker, g_hActiveWeapon);
|
||||
GetEdictClassname(iWeapon, sWeapon, sizeof(sWeapon));
|
||||
if(iWeapon != INVALID_ENT_REFERENCE)
|
||||
GetEdictClassname(iWeapon, sWeapon, sizeof(sWeapon));
|
||||
else
|
||||
return Plugin_Continue;
|
||||
|
||||
if(!StrEqual(sWeapon, "weapon_knife"))
|
||||
return Plugin_Continue;
|
||||
|
||||
Reference in New Issue
Block a user