Is it possible to disable the money taking on player death?
#1

By default when a player dies it takes $100 of his money. How to stop that?
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerDeath
Reply
#3

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.
Reply
#4

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.
Reply
#5

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
Reply
#6

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

How would GivePlayerMoney or SetPlayerMoney get called when I don't even use them?
Reply
#8

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..
Reply
#9

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.
Reply
#10

Just give $100 when the player dies. Problem Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)