05.09.2010, 10:54
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:
and change it to this:
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!
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");
pawn Код:
new ammount = GetPlayerMoney(playerid)/TAX_AMMOUNT;
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!