Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Finch Real on Jun 22, 2016, 10:13 AM

Title: Loan
Post by: Finch Real on Jun 22, 2016, 10:13 AM
I am trying to create a loan system when someone take loan by using cmd /takeloan 2000 it return you have taken loan you must return loan in 10 days or your loan will be taken how do i put time in it any example?
Title: Re: Loan
Post by: KAKAN on Jun 22, 2016, 12:34 PM
save the time, minus it.
Title: Re: Loan
Post by: Coolkid on Jun 22, 2016, 12:55 PM
You need 3 things in db then name amount time and you can take loan automatically after 10 days by when a players buys loan time()+ and time of 10 days and make a function which checks in whole db for timeindb-time()<0 that's it
Title: Re: Loan
Post by: Finch Real on Jun 22, 2016, 02:11 PM
Thanks Guy anyway for help I got Better Idea than that