Added some unknown vehicles to vehicle list, removed debug message from tuning manager
This commit is contained in:
@@ -61,7 +61,6 @@ namespace reallife_gamemode.Server.Commands
|
||||
usableItemObj.Use(eatItem, player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region Support
|
||||
[Command("o", "~m~Benutzung: ~s~/o [Nachricht]", GreedyArg = true)]
|
||||
@@ -97,7 +96,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
}
|
||||
}
|
||||
|
||||
[Command("dimension")]
|
||||
[Command("dimension", "~m~Benutzung: ~s~/dimension")]
|
||||
public void CmdAdminDimension(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||
@@ -129,7 +128,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
else player.Position = target.Position;
|
||||
}
|
||||
|
||||
[Command("position")]
|
||||
[Command("position", "~m~Benutzung: ~s~/position")]
|
||||
public void CmdAdminShowPos(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||
@@ -284,7 +283,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
target.Freeze(false);
|
||||
}
|
||||
|
||||
[Command("gotolist")] //TODO Als Browser anzeigeN??
|
||||
[Command("gotolist", "~m~Benutzung: ~s~/gotolist")] //TODO Als Browser anzeigeN??
|
||||
public void CmdAdminGotoList(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
@@ -306,7 +305,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
player.SendChatMessage(gotoString);
|
||||
}
|
||||
|
||||
[Command("mark")]
|
||||
[Command("mark", "~m~Benutzung: ~s~/mark")]
|
||||
public void CmdAdminMark(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
@@ -318,7 +317,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
player.SendNotification("~y~Mark ~s~gespeichert", true);
|
||||
}
|
||||
|
||||
[Command("gotomark")]
|
||||
[Command("gotomark", "~m~Benutzung: ~s~/gotomark")]
|
||||
public void CmdAdminGotoMark(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
@@ -815,13 +814,6 @@ namespace reallife_gamemode.Server.Commands
|
||||
|
||||
|
||||
#region ALevel3
|
||||
Vehicle testV;
|
||||
|
||||
[Command]
|
||||
public void Testveh(Client player)
|
||||
{
|
||||
player.SendChatMessage(VehicleStreaming.GetEngineState(player.Vehicle).ToString());
|
||||
}
|
||||
|
||||
[Command("veh", "~m~Benutzung: ~s~/veh [Fahrzeug] (Farbe 1) (Farbe 2)")]
|
||||
public void CmdAdminVeh(Client player, string hash, int color1 = 111, int color2 = 111)
|
||||
@@ -848,13 +840,13 @@ namespace reallife_gamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
Vehicle v = testV = NAPI.Vehicle.CreateVehicle(uHash, player.Position, player.Rotation.Z, color1, color2, engine: false);
|
||||
Vehicle v = NAPI.Vehicle.CreateVehicle(uHash, player.Position, player.Rotation.Z, color1, color2, engine: false);
|
||||
VehicleStreaming.SetEngineState(v, true);
|
||||
VehicleStreaming.SetLockStatus(v, false);
|
||||
player.SetIntoVehicle(v.Handle, -1);
|
||||
}
|
||||
|
||||
[Command("fv")]
|
||||
[Command("fv", "~m~Benutzung: ~s~/fv")]
|
||||
public void CmdAdminFixveh(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN3) ?? true)
|
||||
@@ -1078,8 +1070,8 @@ namespace reallife_gamemode.Server.Commands
|
||||
|
||||
InventoryManager.GetUserItemsAsAdmin(player, user);
|
||||
}
|
||||
|
||||
[Command("editmode")]
|
||||
|
||||
[Command("editmode", "~m~Benutzung: ~s~/editmode")]
|
||||
public void CmdAdminToggleEditMode(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
@@ -1852,6 +1844,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
player.TriggerEvent("manageFactionRanks", json);
|
||||
}
|
||||
}
|
||||
|
||||
[Command("setweather", "~m~Benutzung: ~s~/setweather [Wetter]")]
|
||||
public void CmdAdminSetweather(Client player, string weather)
|
||||
{
|
||||
@@ -2156,7 +2149,6 @@ namespace reallife_gamemode.Server.Commands
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -2225,7 +2217,6 @@ namespace reallife_gamemode.Server.Commands
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//TODO
|
||||
[Command("fpay")]
|
||||
public void FPay(Client player, string receiver, int amount)
|
||||
@@ -2258,6 +2249,7 @@ namespace reallife_gamemode.Server.Commands
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
if (player.Vehicle.HasData("shopVehicleId"))
|
||||
@@ -2279,31 +2271,6 @@ namespace reallife_gamemode.Server.Commands
|
||||
}
|
||||
}
|
||||
|
||||
[Command("getincar", "~m~Benutzung: ~s~/getincar [Name]")]
|
||||
public void CmdAdminGetincar(Client player, string name)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
|
||||
Client target = ClientService.GetClientByNameOrId(name);
|
||||
if (target == null || !target.IsLoggedIn())
|
||||
{
|
||||
ChatService.PlayerNotFound(player);
|
||||
return;
|
||||
}
|
||||
|
||||
if(!target.IsInVehicle)
|
||||
{
|
||||
player.SendChatMessage("~r~[FEHLER]~s~ Der Spieler ist nicht in einem Fahrzeug.");
|
||||
return;
|
||||
}
|
||||
|
||||
player.SetIntoVehicle(target.Vehicle, -2);
|
||||
}
|
||||
|
||||
[Command("saveall")]
|
||||
public void SaveAll(Client player)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user