Skip to content

Commit

Permalink
fix: now debug menu will be reg normally
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-yao committed Jan 1, 2025
1 parent 8828c6d commit 042d441
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions l4d2_tank_draw/scripting/l4d2_tank_draw.sp
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@ public void OnPluginStart()
SetConVar();

PrintToServer("[Tank Draw] Plugin loaded");
PrintToServer("[Tank Draw] debug mode: %d", g_iL4D2TankDrawDebugMode);

if (g_iL4D2TankDrawDebugMode == 1)
{
PrintToServer("调试菜单打开 / debug menu on");
RegAdminCmd("sm_tankdraw", MenuFunc_MainMenu, ADMFLAG_CHEATS);
}
}

public Action Event_PlayerIncapacitated(Event event, const char[] name, bool dontBroadcast)
Expand Down Expand Up @@ -556,4 +549,10 @@ void SetConVar()
PrintToServer("g_iDrugLuckySurvivorDuration: %d", g_iDrugLuckySurvivorDuration);
PrintToServer("==============================");
}

if (g_iL4D2TankDrawDebugMode == 1)
{
PrintToServer("调试菜单打开 / debug menu on");
RegAdminCmd("sm_tankdraw", MenuFunc_MainMenu, ADMFLAG_CHEATS);
}
}

0 comments on commit 042d441

Please sign in to comment.