SA-MP Forums Archive
HELP loose money when dead - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP loose money when dead (/showthread.php?tid=115234)



HELP loose money when dead - bluray - 23.12.2009

Hi i wanted the players to loose money on death. so i did the usual
new string
GivePlayerMoney(blah, blah -100)

anywaiz that worked fine. but the problem is once i reapawn again after death i loose another hundred dollars. so it takes away 200 dollars from my player. And say if i wanted 200 of and that was ok but when on player death i have
Get Player Money( ) so it only says i lost a hundred but he'll lose 200.


Re: HELP loose money when dead - Deat_Itself - 23.12.2009

put it under OnPlayerDeath
Код:
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 100);



Re: HELP loose money when dead - bluray - 25.12.2009

no thats not what i need, i need to stop on player respawning after death how to not loose money automatically


Re: HELP loose money when dead - pagie1111 - 25.12.2009

You loose $100 automatically in San Andreas. So its best if you use server sided money


Re: HELP loose money when dead - bluray - 28.12.2009

how do i do that?