[HOWTO] SetPlayerMoney function - 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: [HOWTO] SetPlayerMoney function (
/showthread.php?tid=151079)
[HOWTO] SetPlayerMoney function -
Biscottinis - 29.05.2010
Here I show you how to do a "setplayermoney" if you do not want to include "dutils";
pawn Код:
new moneyfirst[MAX_PLAYERS];
stock SetPlayerMoney(playerid,moneyafter) {
moneyfirst[playerid]=moneyafter;
GivePlayerMoney(playerid,moneyafter-GetPlayerMoney(playerid));
}
You add this anywhere, but in not any public or stocks.
Credits: DracoBlue for the code.
Re: [HOWTO] SetPlayerMoney function -
playbox12 - 29.05.2010
Quote:
Originally Posted by Biscottinis
Here I show you how to do a "setplayermoney" if you do not want to include "dutils";
pawn Код:
new moneyfirst[MAX_PLAYERS]; stock SetPlayerMoney(playerid,moneyafter) { moneyfirst[playerid]=moneyafter; GivePlayerMoney(playerid,moneyafter-GetPlayerMoney(playerid)); }
You add this anywhere, but in not any public or stocks.
Credits: DracoBlue for the code.
|
Why are you putting it here, if you didnt make it....
Re: [HOWTO] SetPlayerMoney function -
Think - 29.05.2010
plus, this code isn't even complete lol.
Re: [HOWTO] SetPlayerMoney function -
playbox12 - 29.05.2010
Quote:
Originally Posted by Pandabeer1337
plus, this code isn't even complete lol.
|
Yeah I see it now, LOOL
Re: [HOWTO] SetPlayerMoney function -
NewTorran - 29.05.2010
pawn Код:
stock SetPlayerMoney(playerid, cash)
{
ResetPlayerMoney(playerid);
return GivePlayerMoney(playerid, cash);
}