Is it possible to disable the money taking on player death? -
101 - 16.01.2013
By default when a player dies it takes $100 of his money. How to stop that?
Re: Is it possible to disable the money taking on player death? -
kepa333 - 16.01.2013
https://sampwiki.blast.hk/wiki/OnPlayerDeath
Re: Is it possible to disable the money taking on player death? -
101 - 16.01.2013
I feel as I'm being considered stupid. It happens by default, there is nothing in either of my gamemodes or filterscripts that does it.
Re: Is it possible to disable the money taking on player death? -
Threshold - 16.01.2013
Money does not go down itself, make sure you check under OnPlayerSpawn as well, as that gets called directly after. Otherwise show your OnPlayerDeath function.
EDIT: @Below Poster
pawn Код:
SetPlayerMoney(playerid, -100);
That wouldn't even work, the code would be:
pawn Код:
SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 100);
NOTE: I wanted to prove a point, and I didn't want to spam posts.
Re: Is it possible to disable the money taking on player death? -
mariolatif741 - 16.01.2013
Make sure at: OnPlayerDeath
there isnt this:
pawn Код:
GivePlayerMoney(playerid, -100);
and tell me here your 'OnPlayerDeath' and 'OnPlayerSpawn' codes meybe I will help you
Re: Is it possible to disable the money taking on player death? -
Jochemd - 16.01.2013
Quote:
Originally Posted by 101
I feel as I'm being considered stupid. It happens by default, there is nothing in either of my gamemodes or filterscripts that does it.
|
You are considered stupid because it's a stupid question! There is no money taken on death unless you take it via your script.
Re: Is it possible to disable the money taking on player death? -
101 - 16.01.2013
How would GivePlayerMoney or SetPlayerMoney get called when I don't even use them?
Re: Is it possible to disable the money taking on player death? -
Jstylezzz - 16.01.2013
This is a standard function of GTA SA, when you die, you lose money.
Now, I'm not sure if this has been removed in sa-mp, but if not, that's your problem..
Re: Is it possible to disable the money taking on player death? -
Jochemd - 16.01.2013
Quote:
Originally Posted by Jari_Johnson*
This is a standard function of GTA SA, when you die, you lose money.
Now, I'm not sure if this has been removed in sa-mp, but if not, that's your problem..
|
It
is disabled in SA-MP. Make sure you don't have any filterscripts or includes doing this.
Re: Is it possible to disable the money taking on player death? -
Mr.Anonymous - 16.01.2013
Just give $100 when the player dies. Problem Solved.