Hi i want to make a team switch blocker for TFC(hl1 mod).
Basically i made this code:
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("TSBlock", "1.0", "TSBlock");
register_clcmd("jointeam", "cmdjointeam");
}
public cmdjointeam(id)
{
client_print(id, print_chat, "[AMXX] Team switch isn't allowed.");
return PLUGIN_HANDLED;
}
The problem is that when anyone enter the game they can't choose any team and i don't want to use the auto team assign...
So i need to basically "validate" that if the user isn't in a team(or in spect) they can choose a team, and if the user is in a team (red blue green yellow, 1, 2, 3, 4) they can't use the jointeam command....
Anyone can help me?
THanks!!