From cd6418f984411eca8620d2353b613f070e1c5b88 Mon Sep 17 00:00:00 2001 From: raviatex Date: Tue, 14 Jan 2020 19:15:40 +0100 Subject: [PATCH] changes to acmds --- .../Commands/AdminCommands.cs | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 64ad9b65..733ede66 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -762,6 +762,18 @@ namespace ReallifeGamemode.Server.Commands } } + [Command("gotox", "~m~Benutzung: ~s~/gotox [X] [Y] [Z]")] + public void CmdAdminGotoxyz(Client player, float x, float y, float z) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = new Vector3(x, y, z); + else player.Position = new Vector3(x, y, z); + } + [Command("spec", "~m~Benutzung: ~s~/spec [Player]")] public void CmdAdminSpectate(Client player, string name) { @@ -1019,18 +1031,6 @@ namespace ReallifeGamemode.Server.Commands target.SetAccessories(slot, component, texture); } - [Command("gotox", "~m~Benutzung: ~s~/gotox [X] [Y] [Z]")] - public void CmdAdminGotoxyz(Client player, float x, float y, float z) - { - if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true) - { - ChatService.NotAuthorized(player); - return; - } - if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = new Vector3(x, y, z); - else player.Position = new Vector3(x, y, z); - } - [Command("aunjail", "~m~Benutzung: ~s~/aunjail [Spieler]", GreedyArg = true)] public void CmdAdminAunjai(Client player, string targetname) { @@ -1492,6 +1492,18 @@ namespace ReallifeGamemode.Server.Commands } } + [Command("showtuningmenu", "~m~Benutzung: ~s~/showtuningmenu")] + public void CmdAdminShowtuningmenu(Client player) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN3) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + + player.TriggerEvent("showTuningMenu"); + } + #endregion #region ALevel1337 [Command("gotocp", "~m~Benutzung: ~s~/gotocp")] @@ -1563,7 +1575,7 @@ namespace ReallifeGamemode.Server.Commands [Command("quicksavemode", "~m~Benutzung: ~s~/quicksavemode [Modus]: ~g~blip, ~g~atm")] public void CmdAdminSetQuickSaveMode(Client player, string mode) { - if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) + if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true) { ChatService.NotAuthorized(player); return; @@ -2578,18 +2590,6 @@ namespace ReallifeGamemode.Server.Commands BankManager.SetMoney(player, business, amount, "Admin"); } - [Command("showtuningmenu", "~m~Benutzung: ~s~/showtuningmenu")] - public void CmdAdminShowtuningmenu(Client player) - { - if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true) - { - ChatService.NotAuthorized(player); - return; - } - - player.TriggerEvent("showTuningMenu"); - } - [Command("interior", "~m~Benutzung: ~s~/interior [Add / Remove / SetEnter / SetExit] [Name / ID]")] public void CmdAdminInterior(Client player, string option1, string option2) {