Zum testen: rentcar system
This commit is contained in:
@@ -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 = "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user