Fix jailtime on interface
This commit is contained in:
@@ -34,6 +34,17 @@ namespace ReallifeGamemode.Server.Wanted
|
|||||||
if (rndInt == 3)
|
if (rndInt == 3)
|
||||||
NAPI.Player.SpawnPlayer(client, new Vector3(458.3372, -1001.258, 24.91485)); //send client to jail
|
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
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (user.Wanteds <= 0)
|
if (user.Wanteds <= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user