onlineliste shows newbieStatus + newbiePlayedMinutesThreshold in GlobalHelper
This commit is contained in:
@@ -769,12 +769,12 @@ namespace ReallifeGamemode.Server.Events
|
||||
return new
|
||||
{
|
||||
Id = p.Handle.Value,
|
||||
p.Name,
|
||||
p.Ping,
|
||||
FactionName = u?.Faction?.Name ?? "Zivilist",
|
||||
FactionId = u?.FactionId ?? 0
|
||||
Name = p.Name + (u.PlayedMinutes <= GlobalHelper.newbiePlayedMinutesThreshold ? "<span class=\"player__status\">Neuling</span>" : ""),
|
||||
FactionId = u?.FactionId ?? 0,
|
||||
p.Ping
|
||||
};
|
||||
});
|
||||
|
||||
player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using GTANetworkAPI;
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace ReallifeGamemode.Server.Util
|
||||
{ "Roachkook", "2head Entwickler ist wieder online (kookroach)" }
|
||||
};
|
||||
|
||||
public static int newbiePlayedMinutesThreshold = 30 * 60;
|
||||
|
||||
public static DateTime CountdownUntil { get; internal set; }
|
||||
public static string CountdownText { get; internal set; }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GTANetworkAPI;
|
||||
@@ -16,7 +16,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
public static int PAY_TIMER = 180;
|
||||
|
||||
//In Stunden
|
||||
private static int PAYTIME_FREE = 30;
|
||||
private static int PAYTIME_FREE = GlobalHelper.newbiePlayedMinutesThreshold / 60;
|
||||
|
||||
public static List<RentcarProperty> noobspawnVehicleProperties = new List<RentcarProperty>();
|
||||
private static Vector3 noobspawnVehicleSpawnPosition = new Vector3(-1020.18695, -2695.2253, 13.988778);
|
||||
|
||||
Reference in New Issue
Block a user