deathcost and payday issues
#1

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

could anyone help me please?
Reply
#3

find the
pawn Код:
new deathcost = 10;
or something and change it to 10
Reply
#4

i did it already and it doesnt works =//
Reply
#5

OnPlayerDeath:
pawn Код:
SafeGivePlayerMoney(playerid, 90);
Because you automaticly lose 100 and you give 90 so you lose totally: 100-90 = 10
Reply
#6

so what i have to change to get 10$ from the players everytime they die?
including the first time
Reply
#7

damn someone help me with this shit please
Reply
#8

hmmm noone knows about this? O_o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)