Temp fix in case someone is using
this version in CSGO and also
weapon_snowball /
sv_holiday_mode 2 or from last update and have logs spammed:
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_snowball"))
{
return CSWeapon_NONE;
}
int index = hWeaponTracker.FindValue(entity, Tracker_EntityIndex);
if(index != -1)
{
return hWeaponTracker.Get(index, Tracker_WeaponIDIndex);
}
return CSWeapon_NONE;
}
__________________