Hey, i have a plugin that switchs/swaps teams at 15th roundend and i want it to not send twin or ctwin on the swap, (its doesnt) but at the swap the 4 player skins vgui menu shows up and you have to choose, how can i make it choose the skin automaticly?
PHP Code:
public task_match_ended()
{
// get players into teams..
static TPlayers[MAX_TEAMS][MAX_PLAYERS], ctsnum, tsnum, unassigned, specsnum, i;
get_players_inteams(TPlayers, ctsnum, tsnum, specsnum, unassigned)
static id;
(!is_user_connected(id))
for(i = 0; i < ctsnum; i++)
{
id = TPlayers[TEAM_CT][i]
fm_set_user_team(id, TEAM_TERRORIST)
}
for(i = 0; i < tsnum; i++)
{
id = TPlayers[TEAM_TERRORIST][i]
fm_set_user_team(id, TEAM_CT)
}
check_teams();
set_cvar_num("fmatch_ratio", 5);
g_rounds = 0;
team_avaialble[TEAM_CT] = true;
team_avaialble[TEAM_TERRORIST] = true;
team_avaialble[TEAM_SPECTATOR] = true;
}
Anyhelp is greatly appriciated. Thanks