Quote:
Originally Posted by Chaosxk
You can block the player from joining team instead.
Code:
public void OnPluginStart()
{
AddCommandListener(Hook_JoinTeam, "jointeam");
}
public Action Hook_JoinTeam(int client, const char[] command, int argc)
{
return Plugin_Handled;
}
Should probably "return Plugin_Continue;" when player is in spectate mode.
|
Is there no way to do that with HookEvent? Using AddComandListener what should i do in case someone types jointeam auto? (Or simply, selects "auto" in the team select menu)