SA-MP Forums Archive
Property Tax? - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Property Tax? (/showthread.php?tid=332702)



Property Tax? - TheMightyEddy - 09.04.2012

So I'm using GarHouse and I need to find a way to charge players a property tax. Anyway? +REP


Re: Property Tax? +REP +REP +REP - Ezay - 09.04.2012

I'm Probably Wrong, But,

Random Amount?
Set via a Timer?


Cheers
Ezay
\o/


Re: Property Tax? +REP +REP +REP - Camacorn - 09.04.2012

How often are you wanting to charge them? Daily, Weekly, or Monthly?


Re: Property Tax? +REP +REP +REP - TheMightyEddy - 09.04.2012

Quote:
Originally Posted by Camacorn
Посмотреть сообщение
How often are you wanting to charge them? Daily, Weekly, or Monthly?
I would want to charge them Daily. Thanks,


Re: Property Tax? +REP +REP +REP - TheMightyEddy - 09.04.2012

Anyone please?


Re: Property Tax? +REP +REP +REP - Shetch - 09.04.2012

You could get the percentage of the properties value and set that as a tax.
For example a house costs 100,000 and you get 0.5% as a tax, so you would charge the 0.5% every payday.


Re: Property Tax? - TheMightyEddy - 09.04.2012

Okay thanks but how would I do that? Please help?


Re: Property Tax? - Shetch - 09.04.2012

If the system is using enums then:

Код:
new propertyTax[MAX_PROPERTIES];
propertyTax[propertyid] = Property[propertyid][Value] / 100;
propertyTax[propertyid] = propertyTax[propertyid] * 2;



Re: Property Tax? - TheMightyEddy - 09.04.2012

It's not using enums. Here are the includes: dcmd, dini, dudb, streamer, and sscanf2.