spawnschutz fix mit wanteds
This commit is contained in:
@@ -70,9 +70,5 @@ export default function (globalData: IGlobalData): void {
|
||||
globalData.InMenu = false;
|
||||
loginCam.setActive(false);
|
||||
mp.game.cam.renderScriptCams(false, false, 0, true, false);
|
||||
|
||||
if (getWantedCount() === 0) {
|
||||
mp.events.call("enableSpawnschutz");
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -103,6 +103,11 @@ namespace ReallifeGamemode.Server.Events
|
||||
ChatService.HQMessage("Der Straftäter" + user.Name + " hat sich mit " + user.Wanteds + " Wanteds eingeloggt.");
|
||||
}
|
||||
|
||||
if (user.Wanteds == 0)
|
||||
{
|
||||
player.TriggerEvent("enableSpawnschutz");
|
||||
}
|
||||
|
||||
if (user.Group != null)
|
||||
{
|
||||
string msg = $"{player.Name} ist wieder online.";
|
||||
|
||||
Reference in New Issue
Block a user