Jump to content

Help fix bug


Recommended Posts

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);
	    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 by Scripting_Game
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...