Posts: 321
Threads: 160
Joined: May 2009
Reputation:
0
Hi, i am searching for a simple mysql system. How system should look like? If i will do my own one, what should i check ? etc..
Posts: 717
Threads: 11
Joined: Jul 2008
Reputation:
0
Well,
You should save the fuel for each vehicle -> variable. Store that variable in the database at server stop and re-define it at the server start. Once that is done, all you got to do is decide how you want to subtract fuel from your vehicles. Make a timer and subtract fuel every ... seconds. Or check the velocity and depending on the velocity take a certain amount of fuel.. what ever you desire. Then you can optional add fuel stations and so on to fill up the vehicle. While "subtracting" fuel from your vehicle you might as well check if it hits "0" or below "0". If it does, freeze the player or do as you desire..
That's about it.
Regards,
Extremo.