changes to acmds

This commit is contained in:
raviatex
2020-01-14 19:15:40 +01:00
parent e378605612
commit cd6418f984

View File

@@ -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]")] [Command("spec", "~m~Benutzung: ~s~/spec [Player]")]
public void CmdAdminSpectate(Client player, string name) public void CmdAdminSpectate(Client player, string name)
{ {
@@ -1019,18 +1031,6 @@ namespace ReallifeGamemode.Server.Commands
target.SetAccessories(slot, component, texture); 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)] [Command("aunjail", "~m~Benutzung: ~s~/aunjail [Spieler]", GreedyArg = true)]
public void CmdAdminAunjai(Client player, string targetname) 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 #endregion
#region ALevel1337 #region ALevel1337
[Command("gotocp", "~m~Benutzung: ~s~/gotocp")] [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")] [Command("quicksavemode", "~m~Benutzung: ~s~/quicksavemode [Modus]: ~g~blip, ~g~atm")]
public void CmdAdminSetQuickSaveMode(Client player, string mode) public void CmdAdminSetQuickSaveMode(Client player, string mode)
{ {
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
{ {
ChatService.NotAuthorized(player); ChatService.NotAuthorized(player);
return; return;
@@ -2578,18 +2590,6 @@ namespace ReallifeGamemode.Server.Commands
BankManager.SetMoney(player, business, amount, "Admin"); 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]")] [Command("interior", "~m~Benutzung: ~s~/interior [Add / Remove / SetEnter / SetExit] [Name / ID]")]
public void CmdAdminInterior(Client player, string option1, string option2) public void CmdAdminInterior(Client player, string option1, string option2)
{ {