Skip to content

Commit

Permalink
Disabling prefire and retake more for now
Browse files Browse the repository at this point in the history
  • Loading branch information
CHR15cs committed Jan 15, 2024
1 parent 08e3659 commit 828690e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
42 changes: 21 additions & 21 deletions CSPracc/Modes/BaseMode/BaseCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,26 +244,26 @@ public virtual bool PlayerChat(EventPlayerChat @event, GameEventInfo info)
CSPraccPlugin.SwitchMode(Enums.PluginMode.DryRun);
break;
}
case BASE_COMMAND.Retake:
{
if (!player.IsAdmin())
{
player.PrintToCenter("Only admins can execute this command!");
return false;
}
CSPraccPlugin.SwitchMode(Enums.PluginMode.Retake);
break;
}
case BASE_COMMAND.Prefire:
{
if (!player.IsAdmin())
{
player.PrintToCenter("Only admins can execute this command!");
return false;
}
CSPraccPlugin.SwitchMode(Enums.PluginMode.Prefire);
break;
}
//case BASE_COMMAND.Retake:
// {
// if (!player.IsAdmin())
// {
// player.PrintToCenter("Only admins can execute this command!");
// return false;
// }
// CSPraccPlugin.SwitchMode(Enums.PluginMode.Retake);
// break;
// }
//case BASE_COMMAND.Prefire:
// {
// if (!player.IsAdmin())
// {
// player.PrintToCenter("Only admins can execute this command!");
// return false;
// }
// CSPraccPlugin.SwitchMode(Enums.PluginMode.Prefire);
// break;
// }
case BASE_COMMAND.SWAP:
{
if (!player.IsAdmin())
Expand Down Expand Up @@ -425,7 +425,7 @@ public virtual void PrintHelp(CCSPlayerController? player)
message.Add($" {ChatColors.Green}{BASE_COMMAND.MAP}{ChatColors.Red} 'mapname'{ChatColors.White}. Switch to given map.");
message.Add($" {ChatColors.Green}{BASE_COMMAND.MATCH}{ChatColors.White} Switching to match mode.");
message.Add($" {ChatColors.Green}{BASE_COMMAND.PRACC}{ChatColors.White} Switching to practice mode.");
message.Add($" {ChatColors.Green}{BASE_COMMAND.Prefire}{ChatColors.White} Switching to prefire mode.");
//message.Add($" {ChatColors.Green}{BASE_COMMAND.Prefire}{ChatColors.White} Switching to prefire mode.");
message.Add($" {ChatColors.Green}{BASE_COMMAND.DryRun}{ChatColors.White} Switching to dry run mode.");
message.Add($" {ChatColors.Green}{BASE_COMMAND.ALIAS}{ChatColors.Red} '.new alias' '.old alias'{ChatColors.White}. Creates a personal alias for a command.");
message.Add($" {ChatColors.Green}{BASE_COMMAND.REMOVEALIAS}{ChatColors.Red} '.aliasToRemove'{ChatColors.White}. Removes given alias.");
Expand Down
4 changes: 2 additions & 2 deletions CSPracc/Modes/BaseMode/BaseMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public BaseMode()
list.Add(new KeyValuePair<string, Action>("Pracc", new Action(() =>CSPraccPlugin.SwitchMode(Enums.PluginMode.Pracc))));
list.Add(new KeyValuePair<string, Action>("Match", new Action(() => CSPraccPlugin.SwitchMode(Enums.PluginMode.Match))));
list.Add(new KeyValuePair<string, Action>("Dryrun", new Action(() => CSPraccPlugin.SwitchMode(Enums.PluginMode.DryRun))));
list.Add(new KeyValuePair<string, Action>("Retake", new Action(() => CSPraccPlugin.SwitchMode(Enums.PluginMode.Retake))));
list.Add(new KeyValuePair<string, Action>("Prefire", new Action(() => CSPraccPlugin.SwitchMode(Enums.PluginMode.Prefire))));
//list.Add(new KeyValuePair<string, Action>("Retake", new Action(() => CSPraccPlugin.SwitchMode(Enums.PluginMode.Retake))));
//list.Add(new KeyValuePair<string, Action>("Prefire", new Action(() => CSPraccPlugin.SwitchMode(Enums.PluginMode.Prefire))));
ModeMenu = new HtmlMenu("Select Mode", list);
}

Expand Down

0 comments on commit 828690e

Please sign in to comment.