deathcost and payday issues - 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: deathcost and payday issues (
/showthread.php?tid=157756)
deathcost and payday issues -
SeQualX - 07.07.2010
hey there, im working on a rp gm and i tried to set the deathcost to 10 instead of 100 (using the godfather one)
i just change deathcost
pawn Код:
new cut;
if (GetPlayerMoney(playerid) <= 0) cut = deathcost;
else cut = - 90;
SafeGivePlayerMoney(playerid, -cut);
it works taking 10$ from the player but when you die the first time it gives you like 80$ then if u die again (2second time) it takes 10$ from the player....
and the payday thing i would like to set 100$ for every payday instead of randomly price
someone knows how to fix this issues? i would appreciate so much and thanks.
Re: deathcost and payday issues -
SeQualX - 07.07.2010
could anyone help me please
?
Re: deathcost and payday issues -
Rilehh - 07.07.2010
find the
or something and change it to 10
Re: deathcost and payday issues -
SeQualX - 07.07.2010
i did it already and it doesnt works =//
Re: deathcost and payday issues -
CAR - 07.07.2010
OnPlayerDeath:
pawn Код:
SafeGivePlayerMoney(playerid, 90);
Because you automaticly lose 100 and you give 90 so you lose totally: 100-90 = 10
Re: deathcost and payday issues -
SeQualX - 07.07.2010
so what i have to change to get 10$ from the players everytime they die?
including the first time
Re: deathcost and payday issues -
SeQualX - 07.07.2010
damn someone help me with this shit please
Re: deathcost and payday issues -
SeQualX - 10.07.2010
hmmm noone knows about this? O_o