Found this:
https://forums.alliedmods.net/showthread.php?t=90898
So, bypass: Change team with some delay, for example:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
public plugin_init()
{
register_plugin("Test", "0.1", "Phantomas")
register_clcmd("say t", "clcmdT");
}
public swap_teams(id)
{
switch(cs_get_user_team(id))
{
case CS_TEAM_CT:cs_set_user_team(id, CS_TEAM_T);
case CS_TEAM_T:cs_set_user_team(id, CS_TEAM_CT);
}
}
team_swap(id)
{
switch(id)
{
case 1..7: set_task( 0.2, "swap_teams", id );
case 8..15: set_task( 0.4, "swap_teams", id );
case 16..23: set_task( 0.6, "swap_teams", id );
case 24..32: set_task( 0.8, "swap_teams", id );
}
}
public clcmdT(id)
{
new players[32], pnum, plr
get_players(players, pnum, "h")
for (new i; i<pnum; i++)
{
plr = players[i]
team_swap(plr)
}
}