so, i made this code:
Code:
public round_start() {
set_task(0.4,"SetZombieBotCheck")
}
public SetZombieBotCheck(players[]) {
new players[32],num,i
get_players(players,num)
for(i = 0; i <= num; i++) {
new id = players[i]
if (is_user_connected(id) && is_user_alive(id)) {
if (cs_get_user_team(id) == CS_TEAM_T) {
cs_set_user_team(id,CS_TEAM_CT)
}
}
if (is_user_bot(id) && is_user_alive(id)) {
if (cs_get_user_team(id) == CS_TEAM_CT) {
cs_set_user_team(id,CS_TEAM_T)
set_cvar_num("sv_restartround", 1)
}
}
}
}
in play, if i join CT team and one bot is with me and one at T team, bot in CT team doesn't get thrown to Ts. if i go to T team, i don't get thrown to CTs. so i think that it might be a problem in code, and if someone could help me.
thanks!