Hola, tengo este stock del foro y pasa que cuando se conectan al servidor los mando del team CT con force_jointeam(id, 2, 0), y el problema es que llega un momento al ser 4 o 5 cts ya no se puede entrar, y me deja spec, me suena a que hay algun balance de equipos. (probe mp_autoteambalance y no xDXD)
si me podrían ayudar se los agradecería. saludos!
Código PHP:
stock force_jointeam(id, team, free_changeteam)
{
new param[2];param[0] = team;param[1] = free_changeteam;
set_task(0.3, "task_jointeam", id, param, 2)
}
public task_jointeam(param[], id)
{
static restore, bool25, vgui
static const str_teams[][] = { "5", "1", "2", "6" }
restore = get_pdata_int(id, m_iVGUI)
vgui = restore & (1<<0)
if(vgui) set_pdata_int(id, m_iVGUI, restore & ~(1<<0))
bool25 = get_pdata_int(id, m_bools125)
if(bool25 & m_bHasChangeTeamThisRound)
{
bool25 &= ~m_bHasChangeTeamThisRound
set_pdata_int(id, m_bools125, bool25)
}
set_msg_block(g_msgShowMenu, BLOCK_ONCE)
set_msg_block(g_msgVGUIMenu, BLOCK_ONCE)
engclient_cmd(id, "jointeam", str_teams[param[0]])
if(param[0] != 3) engclient_cmd(id, "joinclass", "5")
set_msg_block(g_msgVGUIMenu, BLOCK_NOT)
set_msg_block(g_msgShowMenu, BLOCK_NOT)
}
si me podrían ayudar se los agradecería. saludos!