afk kein wanted abtauchen

This commit is contained in:
hydrant
2021-04-17 01:29:11 +02:00
parent 870448666c
commit 43c677811f

View File

@@ -77,7 +77,7 @@ namespace ReallifeGamemode.Server.Wanted
dbContext.SaveChanges();
waTimer[user.Id] = WantedEscapeTime;
}
else if (!isNearCop)
else if (!isNearCop && !player.IsAfk())
{
player.TriggerEvent("SERVER:SetWantedFlash", true);
waTimer[user.Id] -= 2500;