[+] Jail System

- add Escape
    - add Jail In
    - add Jail Timer
[+] Wanted System
    - add Escape Timer
This commit is contained in:
Lukas Moungos
2019-07-16 21:40:59 +02:00
parent fcf810b567
commit 279b7770c3
10 changed files with 1382 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Util;
using ReallifeGamemode.Server.Wanted;
/**
* @overview Life of German Reallife - Event Login (Login.cs)
@@ -83,7 +84,16 @@ namespace ReallifeGamemode.Server.Events
{
CharacterCreator.ApplyCharacter(player);
UpdateCharacterCloth.LoadCharacterDefaults(player);
NAPI.Player.SpawnPlayer(player, new Vector3(user.PositionX, user.PositionY, user.PositionZ), 0);
if(user.JailTime == 0)
{
NAPI.Player.SpawnPlayer(player, new Vector3(user.PositionX, user.PositionY, user.PositionZ), 0);
}
else
{
Jail.Check_PutBehindBars(player);
}
}
player.TriggerEvent("draw", player.Name, player.Handle.Value);