Sign in to follow this  
Scripting_Game

Help fix bug

Recommended Posts

Posted (edited)

Hello, fix bug

oqTJwTO.jpg

	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 by Scripting_Game

Share this post


Link to post
Share on other sites

You need this resource I believe

 

  • Like 1

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.