Skip to content

Commit

Permalink
Update HnsMatchSystem.sma
Browse files Browse the repository at this point in the history
  • Loading branch information
WessTorn authored Jan 27, 2021
1 parent 9e56c72 commit 2a6fdbf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripting/HnsMatchSystem.sma
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ enum {
e_mKnife,
e_mCaptain,
e_mMatch,
e_mDM,
e_mPublic
e_mPublic,
e_mDM
}
new g_iCurrentMode;

Expand Down Expand Up @@ -133,7 +133,7 @@ public plugin_precache() {
}

public plugin_init() {
register_plugin("Hide'n'Seek Match System", "1.0.6", "??"); // Спасибо: Cultura, Garey, Medusa, Ruffman, Conor
register_plugin("Hide'n'Seek Match System", "1.0.7", "??"); // Спасибо: Cultura, Garey, Medusa, Ruffman, Conor

get_mapname(g_eMatchInfo[e_mMapName], charsmax(g_eMatchInfo[e_mMapName]));

Expand Down Expand Up @@ -771,7 +771,7 @@ public fwdKnifePrim(const iPlayer) {
}

public fwdSetClientListening(iReceiver, iSender, bool:bListen) {
if (g_iCurrentMode <= e_mPaused || g_iCurrentMode == e_mCaptain || g_iCurrentMode == e_mPublic) {
if (g_iCurrentMode <= e_mPaused || g_iCurrentMode == e_mCaptain || g_iCurrentMode == e_mPublic || g_iCurrentMode == e_mDM) {
engfunc(EngFunc_SetClientListening, iReceiver, iSender, true);
forward_return(FMV_CELL, true);
return FMRES_SUPERCEDE;
Expand Down Expand Up @@ -905,7 +905,7 @@ public taskSetPlayerTeam(id) {
if (!is_user_connected(id))
return;

if (g_iCurrentMode >= e_mPaused && g_iCurrentMode != e_mPublic) {
if (g_iCurrentMode >= e_mPaused && g_iCurrentMode != e_mPublic && g_iCurrentMode != e_mDM) {
transferToSpec(id);
return;
}
Expand Down Expand Up @@ -2213,7 +2213,7 @@ public chooseCapsMenu(id) {
}

menu_setprop(iMenu, MPROP_EXITNAME, "Refresh");
menu_setprop(iMenu, MPROP_SHOWPAGE, false);
menu_setprop(iMenu, MPROP_SHOWPAGE, 0);
menu_display(id, iMenu, 0);
}

Expand Down

0 comments on commit 2a6fdbf

Please sign in to comment.