rentcar cancel by afk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user