spawnschutz nicht mit wanteds beim login
This commit is contained in:
@@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user