Fix jailtime on interface

This commit is contained in:
Siga
2020-03-17 16:38:19 +01:00
parent 024022b439
commit 43bae1d4d4

View File

@@ -34,6 +34,17 @@ namespace ReallifeGamemode.Server.Wanted
if (rndInt == 3)
NAPI.Player.SpawnPlayer(client, new Vector3(458.3372, -1001.258, 24.91485)); //send client to jail
Jailtime[user.Id] = user.JailTime; // 54 sec for each wanted star -> in total 45min for 50 Wanteds
int timeMinutes = 0;
if (((int)(user.JailTime / 60)) <= 1 && user.JailTime != 0)
{
timeMinutes = 1;
}
else
{
timeMinutes = (int)(user.JailTime / 60);
}
client.TriggerEvent("jailTime", timeMinutes);
return;
}
if (user.Wanteds <= 0)