Merge branch 'cherry-pick-cb78c351' into 'master'

jeder kann in den chat schreiben

See merge request log-gtav/reallife-gamemode!74
This commit is contained in:
hydrant
2021-05-25 20:23:19 +00:00

View File

@@ -26,12 +26,7 @@ export default function deathScreen() {
mp.events.add("startDeathTimer", (isAdmin) => {
if (isDeath === false) {
isDeath = true;
if (isAdmin) {
mp.gui.chat.activate(true);
}
else {
mp.gui.chat.activate(false);
}
mp.game.audio.playSoundFrontend(-1, "Bed", "WastedSounds", true);
deathDate = new Date();
respawnTime = Math.floor(deathDate.getTime() / 1000 + maxDeathTime);