Hey,
Would someone be able to code a plugin that moves a connected client to the spectator team so they have to press M to join a team and play.
A lot of people put on auto join and walk off or alt tab while they wait and come back to an aggravated, and often dead team.
Secondly, is a L4D2 version of
VS Auto Spectate on AFK possible?
Thanks guys.
edit: I had a go at it myself just by using the server command "sm_swapto the players name 1" but ran into the Player is not in-game yet. How can I execute the command when the client is in-game?
PHP Code:
public OnClientConnected(client)
{
new String:name[64]
GetClientName(client, name, sizeof(name))
ServerCommand("sm_swapto %s 1", name)
ServerCommand("sm_cvar vs_max_team_switches 99")
}