Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified addons/sourcemod/plugins/optional/l4d2_ghost_warp.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/playermanagement.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/readyup.smx
Binary file not shown.
5 changes: 3 additions & 2 deletions addons/sourcemod/scripting/l4d2_ghost_warp.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};

Expand Down Expand Up @@ -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)
) {
Expand Down
7 changes: 6 additions & 1 deletion addons/sourcemod/scripting/playermanagement.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
};

Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/readyup.sp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#undef REQUIRE_PLUGIN
#include <caster_system>

#define PLUGIN_VERSION "10.2.6"
#define PLUGIN_VERSION "10.2.7"

public Plugin myinfo =
{
Expand Down
3 changes: 3 additions & 0 deletions addons/sourcemod/scripting/readyup/player.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down