25.05.2015, 06:41
I understand, but could you explain to me briefly how do you want it to be like, like tax if you own a house, business, tax based on your total wealth? If so give me the variables you are using and I'll create you an example.
That's just the idea. ^
pawn Код:
new playerbank[MAX_PLAYERS];
// Assuming you already have a timer which does the payday.
forward pDayTimer();
public pDayTimer()
{
new highest_id = GetPlayerPoolSize();
for(new i = 0; i < highest_id;i++)
{
// Your checks here if he deserves the paycheck yet or not, etcetera.
if(DeservePaycheck)
{
new tax = player_bank[playerid]*0.01;
if(OwnHouse) tax += Houses[HouseID][HousePrice]*0.01;
i(OwnBusiness) tax += Houses[BusinessID][BusinessPrice]*0.01;
player_bank[playerid] -= tax;
}
}