So i made my first plugin called !weapons but i am having a little problem on it. I am trying to make a command that when you type !idle in the chatbox or !survivor or !infected and it joines the team so i added a code or action that makes you go idle but i get this error message saying "l4d_team_spectator is not a symbol" here is my code piece:
Code:
public Action:CmdIdle(client, args)
{
ChangeClientTeam(client, spectator);
return Plugin_Handled;
}
If you also want to read my whole plugin scripting it is attached.