Skip to content

Commit 40d88ae

Browse files
committed
Fine, I'll do it myself - #972
Not the greatest review experience 💢
1 parent bdc00f6 commit 40d88ae

7 files changed

Lines changed: 13 additions & 4 deletions

File tree

54 Bytes
Binary file not shown.
36 Bytes
Binary file not shown.
76 Bytes
Binary file not shown.

addons/sourcemod/scripting/l4d2_ghost_warp.sp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Plugin myinfo =
4343
name = "Infected Warp",
4444
author = "Confogl Team, CanadaRox, A1m`",
4545
description = "Allows infected to warp to survivors",
46-
version = "2.4.1",
46+
version = "2.4.2",
4747
url = "https://github.com/SirPlease/L4D2-Competitive-Rework"
4848
};
4949

@@ -112,7 +112,8 @@ Action Cmd_WarpToSurvivor(int iClient, int iArgs)
112112
return Plugin_Handled;
113113
}
114114

115-
if (GetClientTeam(iClient) != L4D2Team_Infected
115+
if (!IsClientInGame(iClient)
116+
|| GetClientTeam(iClient) != L4D2Team_Infected
116117
|| GetEntProp(iClient, Prop_Send, "m_isGhost", 1) < 1
117118
|| !IsPlayerAlive(iClient)
118119
) {

addons/sourcemod/scripting/playermanagement.sp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public Plugin myinfo =
1515
name = "Player Management Plugin",
1616
author = "CanadaRox",
1717
description = "Player management! Swap players/teams and spectate!",
18-
version = "7.1",
18+
version = "7.1.1",
1919
url = ""
2020
};
2121

@@ -161,6 +161,11 @@ Action Spectate_Cmd(int client, int args)
161161
return Plugin_Handled;
162162
}
163163

164+
if (!IsClientInGame(client))
165+
{
166+
return Plugin_Handled;
167+
}
168+
164169
L4D2Team team = GetClientTeamEx(client);
165170
if (team == L4D2Team_Survivor)
166171
{

addons/sourcemod/scripting/readyup.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#undef REQUIRE_PLUGIN
1010
#include <caster_system>
1111

12-
#define PLUGIN_VERSION "10.2.6"
12+
#define PLUGIN_VERSION "10.2.7"
1313

1414
public Plugin myinfo =
1515
{

addons/sourcemod/scripting/readyup/player.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ void SetClientFrozen(int client, bool freeze)
9898

9999
bool IsPlayer(int client)
100100
{
101+
if (!IsClientInGame(client))
102+
return false;
103+
101104
int team = GetClientTeam(client);
102105
return (team == L4D2Team_Survivor || team == L4D2Team_Infected);
103106
}

0 commit comments

Comments
 (0)