diff --git a/plugins/L4D2Tools.smx b/plugins/L4D2Tools.smx index ee34713..e096988 100644 Binary files a/plugins/L4D2Tools.smx and b/plugins/L4D2Tools.smx differ diff --git a/scripting/L4D2Tools.sp b/scripting/L4D2Tools.sp index e047229..f558d4e 100644 --- a/scripting/L4D2Tools.sp +++ b/scripting/L4D2Tools.sp @@ -743,12 +743,14 @@ public Action Event_OnWeaponDrop(int client, int weapon) { if(!IsValidEntity(weapon) || !IsFakeClient(client)) return Plugin_Continue; static char wpn[32]; GetEdictClassname(weapon, wpn, sizeof(wpn)); - if(StrEqual(wpn, "weapon_melee") && GetEntProp(client, Prop_Send, "m_humanSpectatorUserID") > 0) { - #if defined DEBUG - PrintToServer("Bot %N dropped melee weapon %s", client, wpn); - #endif - RequestFrame(Frame_HideEntity, weapon); - botDropMeleeWeapon[client] = weapon; + if(GetEntProp(client, Prop_Send, "m_humanSpectatorUserID") > 0) { + if(StrEqual(wpn, "weapon_melee") || StrEqual(wpn, "weapon_pistol") || StrEqual(wpn, "weapon_pistol_magnum")) { + #if defined DEBUG + PrintToServer("Bot %N dropped melee weapon %s", client, wpn); + #endif + RequestFrame(Frame_HideEntity, weapon); + botDropMeleeWeapon[client] = weapon; + } } return Plugin_Continue; }