[Include] [INC] MoneyControl - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] MoneyControl (
/showthread.php?tid=113984)
[INC] MoneyControl -
thegoliathmaster - 17.12.2009
[INC] MoneyControl
This include simply replace the normal money functions, simply include it and add core_
MoneyInit under
OnFilterScriptInit/OnGameModeInit and will work perfectly, i also added a
SetPlayerMoney function and
AdjustPlayerMoney which set the player's in-game money to his server side amount.
The advantage in using this include si very simple, you can include it in multiples scripts (gm as well as fs) and they will share the information, so money added in another script doesn't cause any trouble to the function of a money control system...
DOWNLOAD:
V 1.2 (highly recommended):
V 1.1:
Thanks:
I would like to thank Cristab and MrFredo for their suggestion and inspiration
LOG
V1.2:
Reviewed information sharing method.
V1.1:
Added
AdjustPlayerMoney
V1.0:
Original release
comments are appreciated, please keep the credits
++Sim++
Re: [INC] MoneyControl -
Naruto4 - 04.01.2010
Very nice.I tested it and looks great.Thanks
Re: [INC] MoneyControl -
RenisiL - 04.01.2010
Nice
Re: [INC] MoneyControl -
rannyere - 04.01.2010
Nice.