Zum testen: rentcar system

This commit is contained in:
Fabian
2021-05-02 22:53:53 +02:00
parent 60059f45d4
commit 98cd903f4c
13 changed files with 416 additions and 6 deletions

View File

@@ -17,6 +17,25 @@ namespace ReallifeGamemode.Server.Commands
{
internal class UserCommands : Script
{
[Command("rent", "~m~rent stop")]
public void CmdUserStopRent(Player player, String option = "") {
if (!player.IsLoggedIn()) return;
if (option != "stop")
{
player.SendChatMessage("Mit \"/rent stop\" kannst du die Miete kündigen");
return;
}
if (!player.HasData("hasRentcar"))
{
ChatService.ErrorMessage(player, "Du hast zurzeit kein Fahrzeug gemietet");
return;
}
Rentcar.cancelRent(player);
}
[Command("eventport", "~m~eventport")]
public void CmdUserEventport(Player player, String option = "")
{