SA-MP Forums Archive
Is it possible to disable the money taking on player death? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is it possible to disable the money taking on player death? (/showthread.php?tid=407989)



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.