From 3e500f4caa30b392dbb711077352feb9efd2b6d5 Mon Sep 17 00:00:00 2001 From: Fabian Date: Thu, 22 Apr 2021 21:49:50 +0200 Subject: [PATCH] spawnschutz nicht mit wanteds beim login --- ReallifeGamemode.Client/Login/main.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/Login/main.ts b/ReallifeGamemode.Client/Login/main.ts index faf75835..484033e5 100644 --- a/ReallifeGamemode.Client/Login/main.ts +++ b/ReallifeGamemode.Client/Login/main.ts @@ -1,8 +1,9 @@ /** * @overview Life of German Reallife - Login Main main.js - * @author VegaZ, hydrant + * @author VegaZ, hydrant, balbo * @copyright (c) 2008 - 2018 Life of German */ +import { getWantedCount } from "../Gui/wanteds"; export default function (globalData: IGlobalData): void { var loginBrowser: BrowserMp; @@ -70,6 +71,8 @@ export default function (globalData: IGlobalData): void { loginCam.setActive(false); mp.game.cam.renderScriptCams(false, false, 0, true, false); - mp.events.call("enableSpawnschutz"); + if (getWantedCount() === 0) { + mp.events.call("enableSpawnschutz"); + } }); } \ No newline at end of file