PayDay
#6

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.

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;
}
}
That's just the idea. ^
Reply


Messages In This Thread
PayDay - by JaKe Elite - 25.05.2015, 03:37
Re: PayDay - by MikE1990 - 25.05.2015, 05:38
Re: PayDay - by JaKe Elite - 25.05.2015, 06:14
Re: PayDay - by DaniceMcHarley - 25.05.2015, 06:15
Re: PayDay - by JaKe Elite - 25.05.2015, 06:17
Re: PayDay - by DaniceMcHarley - 25.05.2015, 06:41
Re: PayDay - by JaKe Elite - 25.05.2015, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)