rentcar cancel by afk

This commit is contained in:
Fabian
2021-06-15 10:46:11 +02:00
parent 5fe9b5de8a
commit 39967be34e
8 changed files with 4525 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ using System.Text;
using GTANetworkAPI;
using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Util;
namespace ReallifeGamemode.Server.Events
{
@@ -30,7 +31,11 @@ namespace ReallifeGamemode.Server.Events
{
return;
}
if (Rentcar.mapPlayerRentcarBill.ContainsKey(player.Name))
{
Rentcar.cancelRent(player, RentCancelReason.byAfk);
}
player.SendNotification("Du wurdest ~b~AFK~s~ gesetzt", true);
}
}