How can i make that people couldn't use change team menu. I tried this
from zombie plague, just edited it a bit
PHP Code:
//Forwards:
register_clcmd("jointeam", "CTeam"); //Blocks actual team join
register_clcmd("chooseteam", "CTeam"); //Blocks menu
public CTeam(id)
{
// Unless it's a spectator joining the game
if (cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED)
return PLUGIN_CONTINUE;
// Pressing 'M' (chooseteam) ingame should show the main menu instead
return PLUGIN_HANDLED;
}