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