SA-MP Forums Archive
money - 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: money (/showthread.php?tid=526590)



money - pors - 18.07.2014

- 100$ money is going when you die
- reduction never get the money when he died
- How do I fix it


Re: money - BroZeus - 18.07.2014

show OnPlayerDeath Callback


Re: money - Clad - 18.07.2014

Show us
pawn Код:
public OnPlayerDeath



Re: money - pors - 18.07.2014

100$ money is going when you die
reduction never get the money when he died
What if I do resolve


Re: money - Clad - 18.07.2014

You're sure this didn't work
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new scor = GetPlayerScore(killerid);
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 2000);
SetPlayerScore(killerid,scor+1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}



Re: money - pors - 18.07.2014

- 100$ money is going when you die
- money should not go
- How to resolve


Re: money - Clad - 18.07.2014

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new scor = GetPlayerScore(killerid);
GivePlayerMoney(killerid, 2000);
SetPlayerScore(killerid,scor+1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}



Re: money - pors - 18.07.2014

Quote:
Originally Posted by Clad
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new scor = GetPlayerScore(killerid);
GivePlayerMoney(killerid, 2000);
SetPlayerScore(killerid,scor+1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}
-100 Is going reduction of money when you die


Re: money - MrWupiazZzLT - 18.07.2014

Quote:
Originally Posted by pors
Посмотреть сообщение
-100 Is going reduction of money when you die
Its scripted in gta use this function it will give +100 if you die like if you die you will -100 and you will get +100 so money wont go to -

Код:
GivePlayerMoney(playerid, 100);



Re: money - pors - 18.07.2014

Quote:
Originally Posted by MrWupiazZzLT
Посмотреть сообщение
Its scripted in gta use this function it will give +100 if you die like if you die you will -100 and you will get +100 so money wont go to -

Код:
GivePlayerMoney(playerid, 100);
What if I add the code to fix it ?