SA-MP Forums Archive
Need your opinion - 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: Need your opinion (/showthread.php?tid=522006)



Need your opinion - Dziugsas - 25.06.2014

Hello guys!

I wanted to ask you something...

Im trying to make house system and everything is fine for now , but i have little question how i can make realistic tax system?

Like variable and timer or what?


Re: Need your opinion - Beckett - 25.06.2014

What do you mean by tax system? Electricity, water, etc? or what.


Re: Need your opinion - Dziugsas - 25.06.2014

Yeah but not like that , just a total amount like When player enters a house and show him a dialog like Tax: You have to pay for taxes : amount.

Maybe i can try to call a timer when player enters the house and add a amount to Tax Variable?


Re: Need your opinion - Rittik - 25.06.2014

Yes, you can add a SetTimeEx to make a tax system.


Respuesta: Need your opinion - SickAttack - 25.06.2014

You could use unix timestamps instead.


Re: Respuesta: Need your opinion - Dziugsas - 25.06.2014

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
You could use unix timestamps instead.
Not instead , with timers like amount is rising and when 1 day passes player has to pay taxes ,but the problem is , i dont know how to use timestamps... :/


Respuesta: Need your opinion - SickAttack - 25.06.2014

Timers can cause lag, you can use timestamps as a replacement in some cases.

Here's a toturial:
https://sampforum.blast.hk/showthread.php?tid=254915


Re: Need your opinion - Dziugsas - 25.06.2014

yes i read that tut ,but i dont know how i should use it in tax system...