[HELP]Money reducing after 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Money reducing after death (
/showthread.php?tid=68362)
[HELP]Money reducing after death -
Alberto_Abate - 09.03.2009
I'm modding my new mod on Underworld mod.I have a problem.If someone die, his 100$ disappear.If he has less than 100$, his money become 0$... I dont want players lose money after die.Please help me for this.I really need your help, please help me
Note: Sorry for my poor english.But i think you can understand what i tried to say.
Re: [HELP]Money reducing after death -
lesley - 09.03.2009
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if (GetPlayerMoney(playerid) >= 100)
{
GivePlayerMoney(playerid, -(100));
}
else
{
ResetPlayerMoney(playerid);
}
return 1;
}
Re: [HELP]Money reducing after death -
Alberto_Abate - 09.03.2009
Thanks for your help lesley,
Im trying it now.