Quote:
Originally Posted by Dr!fter
No, you just don’t bother to read.
|
You were very helpful, thanks. So f****** helpful! If you refuse to support your plugin after updates I think it should be unapproved. Am I wrong?
Temp fix in case someone is using new items (tested only with breach charge):
in restrictinc/weapon-tracking.sp change CSWeaponID to:
PHP Code:
CSWeaponID GetWeaponIDFromEnt(int entity)
{
if(!IsValidEdict(entity))
return CSWeapon_NONE;
char classname[64];
GetEntityClassname(entity, classname, sizeof classname);
if(StrEqual(classname, "weapon_melee") || StrEqual(classname, "weapon_breachcharge") || StrEqual(classname, "weapon_axe") || StrEqual(classname, "weapon_hammer") || StrEqual(classname, "weapon_spanner") || StrEqual(classname, "weapons_fists"))
{
return CSWeapon_NONE;
}
int index = hWeaponTracker.FindValue(entity, Tracker_EntityIndex);
if(index != -1)
{
return hWeaponTracker.Get(index, Tracker_WeaponIDIndex);
}
return CSWeapon_NONE;
}
__________________