I'm assuming that you are using this:
https://forums.alliedmods.net/showpo...&postcount=942
Look at line 383:
PHP Code:
ChangeClientTeamEx(client, team)
{
if ((game != GAME_CSTRIKE && game != GAME_CSGO) || team < TEAM1)
{
PrintToChatAll("ChangeClientTeamEx Game != CSS or CSGO");
ChangeClientTeam(client, team);
return;
}
new oldTeam = GetClientTeam(client);
PrintToChatAll("ChangeClientTeamEx Game running CS_SwitchTeam");
CS_SwitchTeam(client, team);
if (!IsPlayerAlive(client))
{
PrintToChatAll("ChangeClientTeamEx Player is dead?");
return;
}
if (game == GAME_CSGO)
{
PrintToChatAll("ChangeClientTeamEx running CS_RespawnPlayer");
CS_RespawnPlayer(client);
return;
}
decl String:model[PLATFORM_MAX_PATH], String:newmodel[PLATFORM_MAX_PATH];
GetClientModel(client, model, sizeof(model));
newmodel = model;
if (oldTeam == TEAM1)
{
new c4 = GetPlayerWeaponSlot(client, CS_SLOT_C4);
if (c4 != -1) DropWeapon(client, c4);
if (game == GAME_CSTRIKE)
{
if (StrContains(model, t_models[0], false)) newmodel = ct_models[0];
if (StrContains(model, t_models[1], false)) newmodel = ct_models[1];
if (StrContains(model, t_models[2], false)) newmodel = ct_models[2];
if (StrContains(model, t_models[3], false)) newmodel = ct_models[3];
}
} else
if (oldTeam == TEAM2)
{
SetEntProp(client, Prop_Send, "m_bHasDefuser", 0, 1);
if (game == GAME_CSTRIKE)
{
if (StrContains(model, ct_models[0], false)) newmodel = t_models[0];
if (StrContains(model, ct_models[1], false)) newmodel = t_models[1];
if (StrContains(model, ct_models[2], false)) newmodel = t_models[2];
if (StrContains(model, ct_models[3], false)) newmodel = t_models[3];
}
}
//if (hSetModel != INVALID_HANDLE) SDKCall(hSetModel, client, newmodel);
}
Comment out each instance of PrintToChatAll() that you see, and you should be fine.
__________________