Update CstrikeNatives.cpp

This commit is contained in:
Iván Lo Giudice 2015-08-22 17:54:00 -03:00
parent f95f2032fc
commit e4b635f5be

View File

@ -534,8 +534,11 @@ static cell AMX_NATIVE_CALL cs_set_user_team(AMX *amx, cell *params)
set_pdata<int>(pPlayer, m_iModelName, model);
}
Players[index].ResetModel(pPlayer);
if (model >= 0)
{
Players[index].ResetModel(pPlayer);
}
bool sendTeamInfo = true;
if (*params / sizeof(cell) >= 4)