Jump to content

What does the player lose when dead


Lestat

Recommended Posts

Posted

What is all the player loses when s/he dies?

I know they lose the skin, the weapons. But they don't lose the money for example. So whats is everything the player loses when s/he dies?

I don't want my players to lose anything when they die, only a little bit of money for "respawn fees". So I need to know what do I need to re-add to them.

Posted
What is all the player loses when s/he dies?

I know they lose the skin, the weapons. But they don't lose the money for example. So whats is everything the player loses when s/he dies?

I don't want my players to lose anything when they die, only a little bit of money for "respawn fees". So I need to know what do I need to re-add to them.

He won't lose anything at all & nothing gonna change.

If you want him to lose something or have his data (like money) changed you must do a script that when the player died.

This function is useful for you

https://wiki.multitheftauto.com/wiki/OnPlayerWasted

560x95.png
Posted

He does, he loses the skin and the weapons for example. Or is it because some resource I'm using? (I'm using killmessages, reload, etc).

Posted

Solidsnake is right, when a player dies, nothing happens. He keeps his/her weapons, skin, data, etc. You can still get all the weapons from a dead player. Once you spawn the player using spawnPlayer, s/he will lose her/his weapons. It depends on your script if the player also loses their skin or not.

If you want to keep the weapons, save the weapons on the elementData, spawn the player, give all the weapons from the elementData, remove the elementData. You can do the same for the skin.

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

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...