14.08.2011, 13:11
(
Last edited by MadeMan; 17/08/2011 at 02:46 PM.
)
This include/FS allows you to use cents ($1 = 100 cents) in game. I got this idea from justsomeguy in Script Request Thread and thought I'll make it 
I know that there is Decimal Money include made by Grim_, but as it's not available anymore, I'm releasing my own
How to use
There are 3 functions you can use:
It should be pretty clear what they do 
Also note that cents are optional in GivePlayerMoney, which means that you don't always have to use them.
Installing
To use the cents in your script, just download and copy the cents.inc to ../pawno/include/ folder and add this line next to others in your script
To see the cents textdraw on your screen, you must also download and copy the cents.pwn filterscript to ../filterscripts/ folder and add it to server.cfg
Download
cents.inc - Include
cents.pwn - Filterscript

I know that there is Decimal Money include made by Grim_, but as it's not available anymore, I'm releasing my own

How to use
There are 3 functions you can use:
pawn Code:
GivePlayerMoney(playerid, dollars, cents=0)
ResetPlayerMoney(playerid)
GetPlayerCents(playerid)

Also note that cents are optional in GivePlayerMoney, which means that you don't always have to use them.
Installing
To use the cents in your script, just download and copy the cents.inc to ../pawno/include/ folder and add this line next to others in your script
pawn Code:
#include <cents>
Download
cents.inc - Include
cents.pwn - Filterscript