From f95f2032fc2b7870e8abdceb43145c2274420f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Lo=20Giudice?= Date: Sat, 22 Aug 2015 17:51:48 -0300 Subject: [PATCH 1/2] Update cstrike.inc --- plugins/include/cstrike.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index 9961b81b..041d35d9 100755 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -32,6 +32,7 @@ */ enum CsInternalModel { + CS_NORESET = -1, CS_DONTCHANGE = 0, CS_CT_URBAN = 1, CS_T_TERROR = 2, @@ -474,6 +475,7 @@ native cs_set_user_plant(index, plant = 1, showbombicon = 1); * @param index Client index * @param team Team id * @param model Internal model id, if CS_DONTCHANGE the game will choose the model + or if CS_NORESET the game will not update it. * @param send_teaminfo If true, a TeamInfo message will be sent * * @noreturn From e4b635f5be7eb87b83d5819d4aa6741c983a58df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Lo=20Giudice?= Date: Sat, 22 Aug 2015 17:54:00 -0300 Subject: [PATCH 2/2] Update CstrikeNatives.cpp --- modules/cstrike/cstrike/CstrikeNatives.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/cstrike/cstrike/CstrikeNatives.cpp b/modules/cstrike/cstrike/CstrikeNatives.cpp index ea9205bf..a5f72413 100644 --- a/modules/cstrike/cstrike/CstrikeNatives.cpp +++ b/modules/cstrike/cstrike/CstrikeNatives.cpp @@ -534,8 +534,11 @@ static cell AMX_NATIVE_CALL cs_set_user_team(AMX *amx, cell *params) set_pdata(pPlayer, m_iModelName, model); } - Players[index].ResetModel(pPlayer); - + if (model >= 0) + { + Players[index].ResetModel(pPlayer); + } + bool sendTeamInfo = true; if (*params / sizeof(cell) >= 4)