Quote:
Originally Posted by StrikerMan780
For some reason, Valve, in their infinite fucking stupidity, decided it would be a JUST ABSOLUTELY WONDERFUL FUCKING IDEA to disable team switching all the way around the board, without any option to re-enable them on community servers, also preventing spectators from even being able to join the match they're watching.
Any way that someone could make a plugin to re-enable the "changeteam" command?
|
PHP Code:
#include <sourcemod>
#pragma newdecls required
#pragma semicolon 1
public void OnPluginStart()
{
AddCommandListener(CL_JoinTeam, "jointeam");
}
public Action CL_JoinTeam(int client, char[] sCommand, int args)
{
if (0 < client <= MaxClients && IsClientInGame(client))
{
char[] sJoining = new char[5];
GetCmdArg(1, sJoining, 5);
int iTeam = StringToInt(sJoining);
if (GetClientTeam(client) != iTeam)
ChangeClientTeam(client, iTeam);
return Plugin_Handled;
}
return Plugin_Continue;
}
I'm not too familiar with TF2, but maybe this would work? Untested.
__________________