[FilterScript] || Simple TAX System ||
#1

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!
Reply
#2

Great work ! im using this!
Reply
#3

Good Job Man ._.
Reply
#4

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

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

.. 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
Reply
#7

Good Job
Reply
#8

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
Reply
#9

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

Nice Job
i use paid Wealt Taxes
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)