From 638a26a51ad9dc6b1effe128584ec1d6b409351e Mon Sep 17 00:00:00 2001 From: Mart Date: Wed, 20 May 2026 21:41:39 -0300 Subject: [PATCH] Fix IsTank function to check client in game status IsClientInGame check inverted --- addons/sourcemod/scripting/l4d2_fix_tank_rock_handoff.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sourcemod/scripting/l4d2_fix_tank_rock_handoff.sp b/addons/sourcemod/scripting/l4d2_fix_tank_rock_handoff.sp index 603fd99ff..dabd646cb 100644 --- a/addons/sourcemod/scripting/l4d2_fix_tank_rock_handoff.sp +++ b/addons/sourcemod/scripting/l4d2_fix_tank_rock_handoff.sp @@ -74,11 +74,11 @@ void CancelPossibleTankThrow(int client) bool IsTank(int client) { - if (client <= 0 || client > MaxClients || IsClientInGame(client)) + if (client <= 0 || client > MaxClients || !IsClientInGame(client)) return false; if (GetClientTeam(client) != L4D_TEAM_INFECTED) return false; return GetEntProp(client, Prop_Send, "m_zombieClass") == L4D2_ZOMBIE_CLASS_TANK; -} \ No newline at end of file +}