diff --git a/addons/sourcemod/plugins/optional/l4d2_ghost_warp.smx b/addons/sourcemod/plugins/optional/l4d2_ghost_warp.smx index 1620045a2..d03d84ea7 100644 Binary files a/addons/sourcemod/plugins/optional/l4d2_ghost_warp.smx and b/addons/sourcemod/plugins/optional/l4d2_ghost_warp.smx differ diff --git a/addons/sourcemod/plugins/optional/playermanagement.smx b/addons/sourcemod/plugins/optional/playermanagement.smx index 0a249b40b..8abe92ac3 100644 Binary files a/addons/sourcemod/plugins/optional/playermanagement.smx and b/addons/sourcemod/plugins/optional/playermanagement.smx differ diff --git a/addons/sourcemod/plugins/optional/readyup.smx b/addons/sourcemod/plugins/optional/readyup.smx index 99df81b2d..8ada2a780 100644 Binary files a/addons/sourcemod/plugins/optional/readyup.smx and b/addons/sourcemod/plugins/optional/readyup.smx differ diff --git a/addons/sourcemod/scripting/l4d2_ghost_warp.sp b/addons/sourcemod/scripting/l4d2_ghost_warp.sp index b300f9eed..e1e4a8c71 100644 --- a/addons/sourcemod/scripting/l4d2_ghost_warp.sp +++ b/addons/sourcemod/scripting/l4d2_ghost_warp.sp @@ -43,7 +43,7 @@ public Plugin myinfo = name = "Infected Warp", author = "Confogl Team, CanadaRox, A1m`", description = "Allows infected to warp to survivors", - version = "2.4.1", + version = "2.4.2", url = "https://github.com/SirPlease/L4D2-Competitive-Rework" }; @@ -112,7 +112,8 @@ Action Cmd_WarpToSurvivor(int iClient, int iArgs) return Plugin_Handled; } - if (GetClientTeam(iClient) != L4D2Team_Infected + if (!IsClientInGame(iClient) + || GetClientTeam(iClient) != L4D2Team_Infected || GetEntProp(iClient, Prop_Send, "m_isGhost", 1) < 1 || !IsPlayerAlive(iClient) ) { diff --git a/addons/sourcemod/scripting/playermanagement.sp b/addons/sourcemod/scripting/playermanagement.sp index c2b147996..f170f2b06 100644 --- a/addons/sourcemod/scripting/playermanagement.sp +++ b/addons/sourcemod/scripting/playermanagement.sp @@ -15,7 +15,7 @@ public Plugin myinfo = name = "Player Management Plugin", author = "CanadaRox", description = "Player management! Swap players/teams and spectate!", - version = "7.1", + version = "7.1.1", url = "" }; @@ -161,6 +161,11 @@ Action Spectate_Cmd(int client, int args) return Plugin_Handled; } + if (!IsClientInGame(client)) + { + return Plugin_Handled; + } + L4D2Team team = GetClientTeamEx(client); if (team == L4D2Team_Survivor) { diff --git a/addons/sourcemod/scripting/readyup.sp b/addons/sourcemod/scripting/readyup.sp index 186c02646..8ba5dea03 100644 --- a/addons/sourcemod/scripting/readyup.sp +++ b/addons/sourcemod/scripting/readyup.sp @@ -9,7 +9,7 @@ #undef REQUIRE_PLUGIN #include -#define PLUGIN_VERSION "10.2.6" +#define PLUGIN_VERSION "10.2.7" public Plugin myinfo = { diff --git a/addons/sourcemod/scripting/readyup/player.inc b/addons/sourcemod/scripting/readyup/player.inc index 1af0de784..5940d06d8 100644 --- a/addons/sourcemod/scripting/readyup/player.inc +++ b/addons/sourcemod/scripting/readyup/player.inc @@ -98,6 +98,9 @@ void SetClientFrozen(int client, bool freeze) bool IsPlayer(int client) { + if (!IsClientInGame(client)) + return false; + int team = GetClientTeam(client); return (team == L4D2Team_Survivor || team == L4D2Team_Infected); }