Why when player die, he lose 100$ ad how to delete that ? - 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: Why when player die, he lose 100$ ad how to delete that ? (
/showthread.php?tid=462122)
Why when player die, he lose 100$ ad how to delete that ? -
bustern - 05.09.2013
So i want when player die to not lose 100$
Re: Why when player die, he lose 100$ ad how to delete that ? -
An0nYm0uS - 05.09.2013
Can you show us the codes of this script ! so we can help u out !
Re: Why when player die, he lose 100$ ad how to delete that ? -
bustern - 05.09.2013
No, that is not in mine code, that is made by the SA-MP team....
Re: Why when player die, he lose 100$ ad how to delete that ? -
CaveDweller - 05.09.2013
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid, 100);
}
The reason they lose money is because of the default San Andreas feature where the hospital take the money.
Re: Why when player die, he lose 100$ ad how to delete that ? -
caoraivoso3 - 05.09.2013
you can also if you have a serverside money put OnPlayerUpdate a functions to set the money.
Re: Why when player die, he lose 100$ ad how to delete that ? -
Konstantinos - 05.09.2013
Quote:
Originally Posted by caoraivoso3
you can also if you have a serverside money put OnPlayerUpdate a functions to set the money.
|
Server-side money would be better to use anyways. However, do not use OnPlayerUpdate for that.. Even a timer every 5 seconds, just to re-show the money the player actually has is fine.
What about if a player has $1 and they die? They'll get $100 so it might be abusive.