SA-MP Forums Archive
[FilterScript] || Simple TAX System || - 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)
+--- Thread: [FilterScript] || Simple TAX System || (/showthread.php?tid=174318)



|| Simple TAX System || - mrcoolballs - 05.09.2010

Hey guys, this is my first release , its only small but I think it is very usefull for some roleplay servers, I just finished making it for my own server and thought I should share it with everybody.

This tax system occurs every 3 minutes(can be changed) and will charge whatever you want it to, I usually make it so it takes 1/8th of the players money.

Changing the ammount:
There are 2 ways to change the ammount:
1: go in-game and log into rcon and type /settax [AMMOUNT] (note: it is set to the fraction, so if you want it to take half your money every 3 minutes type 2 if you want a quarter type 4 etc..)

2:This way you don't have to set it every time you start your server up, go into the script and find this:
pawn Код:
new ammount = GetPlayerMoney(playerid)/GetPVarInt(playerid,"ammount");
and change it to this:
pawn Код:
new ammount = GetPlayerMoney(playerid)/TAX_AMMOUNT;
and then go to the top of the script and change #define TAX_AMMOUNT 6 to whatever you prefer
Changing the time:
To change the time just go into the script and change #define TAX_TIME 180000 to whatever time you prefer (180000 is 3 minutes)
Download:
PASTEBIN!!!!

Leave me some feedback!


Re: || Simple TAX System || - PinkFloydLover - 05.09.2010

Great work ! im using this!


Re: || Simple TAX System || - ipsBruno - 06.09.2010

Good Job Man ._.


Re: || Simple TAX System || - willsuckformoney - 06.09.2010

Nice I guess... What if the person has no money? Just keep taking away?


Re: || Simple TAX System || - PinkFloydLover - 06.09.2010

No, if the person has less then 100 it will stop taking it away, btw its me on another account


Re: || Simple TAX System || - willsuckformoney - 06.09.2010

.. What if they have like $200 and they have to take away what ever amount is taxes then they get negative cash?

Not to be mean but if you can't figure that out on your own script check this, it will help a lot!

Click Here


Re: || Simple TAX System || - sanxp1992 - 06.09.2010

Good Job


Re: || Simple TAX System || - PinkFloydLover - 06.09.2010

its impossible for it to go into negative because numbers are infinite if it took1/8th of 1 dollar you would be left with .2 then if it took another 1/8th it would be .18 or something like that and it would go on forever it would reach something crazy like 0.0000000000013435 and continue going on... do you understand now? this has been a free lesson to hope you dont make any more idiotic comments


Re: || Simple TAX System || - krisis32 - 13.06.2011

Is it possable at the tax pay time script does some automatic command ? I want to transfer all money to some bank account.


Respuesta: || Simple TAX System || - Host-samp - 13.06.2011

Nice Job
i use paid Wealt Taxes