From c115d4bbbdd8b3d2f44e3cb2dcaff0190a990c8d Mon Sep 17 00:00:00 2001 From: Juice Date: Sat, 5 Mar 2022 15:54:18 +0300 Subject: [PATCH] Fix no respawn after team select --- .../addons/amxmodx/scripting/CSDM_ReAPI/csdm_misc.sma | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cstrike/addons/amxmodx/scripting/CSDM_ReAPI/csdm_misc.sma b/cstrike/addons/amxmodx/scripting/CSDM_ReAPI/csdm_misc.sma index 95823e8..4d40ac8 100644 --- a/cstrike/addons/amxmodx/scripting/CSDM_ReAPI/csdm_misc.sma +++ b/cstrike/addons/amxmodx/scripting/CSDM_ReAPI/csdm_misc.sma @@ -144,7 +144,7 @@ public HandleMenu_ChooseTeam(const index, const MenuChooseTeam:slot) set_member(index, m_bTeamChanged, false) if(get_member(index, m_iTeam) != TEAM_SPECTATOR) - rg_internal_cmd(index, "joinclass", "5") + RequestFrame("SelectRandomAppearance", get_user_userid(index)) } public ShowVGUIMenu_Pre(const index, VGUIMenu:menuType, const bitsSlots, szOldMenu[]) @@ -255,3 +255,10 @@ public hCMD_ResetScore(const pPlayer) { return PLUGIN_HANDLED } + +public SelectRandomAppearance(data) { + new index = find_player("km", data); + + if(index) + rg_internal_cmd(index, "joinclass", "5") +}