Fix quicksavemode

This commit is contained in:
VegaZ
2019-05-06 20:00:15 +02:00
parent e1dd54b7c5
commit 0204349e20
2 changed files with 8 additions and 4 deletions

View File

@@ -1123,7 +1123,7 @@ namespace ReallifeGamemode.Server.Commands
}
}
[Command("quicksavemode", "~m~Benutzung: ~s~/quicksavemode [Modus]\nModi (klein schreiben): ~g~blip, ~r~atm")]
[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)
@@ -1131,7 +1131,7 @@ namespace ReallifeGamemode.Server.Commands
ChatService.NotAuthorized(player);
return;
}
player.SetData("quicksavemode", mode);
player.SetData("quicksavemode", mode.ToLower());
}
[Command("giveitem", "~m~Benutzung: ~s~/giveitem [Target] [Item ID] [Anzahl]")]

View File

@@ -39,9 +39,13 @@ namespace ReallifeGamemode.Server.Events
tempBlip.Transparency.ToString(), 200.ToString(), tempBlip.ShortRange.ToString(), 0.ToString(), 0.ToString());
player.SendNotification("~y~Blip~s~ erstellt!", false);
break;
case "atm":
SaveManager.OnSaveBlipData(player, "500", "Geldautomat", "0,7", "11",
"0", "200", true.ToString(), 0.ToString(), 0.ToString());
player.SendNotification("~y~ATM~s~ erstellt!", false);
break;
}
}
}
GroundItem.PickUpGroundItem(player);