Код
public Action:ChooseTeam(client, const String:command[], args)
{
if (client < 1 || args < 1) return Plugin_Handled;
if (GetClientTeam(client) <= 2)
{
decl String:str_team[3];
GetCmdArg(1, str_team, 3);
if (StringToInt(str_team) <= 3)
{
if (ALL_CT_PLAYER == 0 || StringToInt(str_team) == 1)
{
if (StringToInt(str_team) == 3)
{
new hiu = 1;
if (TRF(client, hiu) == 0)
{
CS_SwitchTeam(client, 2);
return Plugin_Handled;
}
else
{
return Plugin_Continue;
}
}
return Plugin_Continue;
}
else
{
CS_SwitchTeam(client, 2);
return Plugin_Handled;
}
}
}
return Plugin_Continue;
}
С вот этим кодом не возраждаются игроки в начале раунда, почему?