ok so... basicly i want to disable the team changing for players.
PHP Code:
#pragma semicolon 1
#include <sourcemod>
public Plugin:myinfo = {
name = "",
author = "",
description = "",
version = ,
url = ""
};
public OnPluginStart()
{
RegConsoleCmd("teammenu", cmd_teammenu);
}
public Action:cmd_teammenu(client, args) {
PrintToChat(client, "\x03[DR] %t", "You are not allowed to change your team");
return Plugin_Handled;
}
"teammenu" is the default command for team changing in csgo. so i thought i can block it just like killl or explode but it isnt working
... any other idea?