Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Fix no respawn after team select
Browse files Browse the repository at this point in the history
  • Loading branch information
etojuice committed Mar 5, 2022
1 parent 5dd9652 commit c115d4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cstrike/addons/amxmodx/scripting/CSDM_ReAPI/csdm_misc.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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[])
Expand Down Expand Up @@ -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")
}

1 comment on commit c115d4b

@deniska21233
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

верните авто меню при возрождении
пожалуйста

Please sign in to comment.