Skip to content

Commit

Permalink
the native is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lechuga16 committed Apr 23, 2024
1 parent 21458c2 commit 38fbb39
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 74 deletions.
Binary file modified addons/sourcemod/plugins/optional/playermanagement.smx
Binary file not shown.
53 changes: 0 additions & 53 deletions addons/sourcemod/scripting/include/playermanagement.inc

This file was deleted.

21 changes: 0 additions & 21 deletions addons/sourcemod/scripting/playermanagement.sp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ ConVar l4d_pm_supress_spectate;

public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
CreateNative("ChangeClientTeamEx", Native_ChangeClientTeamEx);
RegPluginLibrary("playermanagement");
isMapActive = late;
return APLRes_Success;
}
Expand Down Expand Up @@ -104,25 +102,6 @@ void LoadGamedata()
delete hGamedata;
}

any Native_ChangeClientTeamEx(Handle plugin, int numParams)
{
int client = GetNativeCell(1);
L4D2Team team = view_as<L4D2Team>(GetNativeCell(2));
bool force = view_as<bool>(GetNativeCell(3));

if (client < 1 || client > MaxClients)
{
return ThrowNativeError(SP_ERROR_NATIVE, "Invalid client index %d", client);
}

if (!IsClientInGame(client))
{
return ThrowNativeError(SP_ERROR_NATIVE, "Client %d is not in game", client);
}

return ChangeClientTeamEx(client, team, force);
}

public void OnPluginEnd()
{
char name[MAX_NAME_LENGTH];
Expand Down

0 comments on commit 38fbb39

Please sign in to comment.