Scripting_Game Posted May 19, 2019 Share Posted May 19, 2019 (edited) Hello, fix bug mp.events.add("playerDeath", (player, reason, killer) => { mp.game.audio.playSoundFrontend(-1, "Bed", "WastedSounds", true); mp.game.graphics.startScreenEffect(scriptConstants.screenFX, 0, true); mp.game.cam.setCamEffect(scriptConstants.camEffect); if (textTimer) clearTimeout(textTimer); textTimer = setTimeout(function () { mp.game.ui.messages.showShard("~r~Sugautas", (killer ? `${killer.handle == player.handle ? `You committed suicide.` : getDeathMessage(killer.name, reason)}` : "Mirei.")); }, scriptConstants.textDelay); }); Edited May 19, 2019 by Scripting_Game Link to comment Share on other sites More sharing options...
Doom Posted May 19, 2019 Share Posted May 19, 2019 You need this resource I believe 1 Link to comment Share on other sites More sharing options...
Scripting_Game Posted May 19, 2019 Author Share Posted May 19, 2019 5 hours ago, Doom said: You need this resource I believe Thanks you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now