Skip to content

Commit

Permalink
Block practicemode from being launched when a game is live.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Dec 14, 2015
1 parent e3ee925 commit 873e013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripting/pugsetup_practicemode.sp
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public Action Event_WeaponFired(Event event, const char[] name, bool dontBroadca
}

public Action Command_LaunchPracticeMode(int client, int args) {
if (!g_InPracticeMode) {
if (!g_InPracticeMode && GetGameState() <= GameState_Warmup) {
LaunchPracticeMode();
}
return Plugin_Handled;
Expand Down

0 comments on commit 873e013

Please sign in to comment.