[Ska]Vladmo Posted March 25, 2008 Share Posted March 25, 2008 How would I be able to make vehicle gas on my server? I never thought it was possible until I seen it on other servers, I would really love it if someone can tell me or give me a script. Link to comment
CodeMaster Posted April 3, 2008 Share Posted April 3, 2008 I made that easily on SA-MP, not sure will I be able on MTA, but I'll try because i think it will be easier on lua script sys. If I make any progress ill release it and give here a link, but currently I'm working on Car Ramming script, and if you are making an RPG server that might be useful to you. Cheers Nidza Link to comment
Ace_Gambit Posted April 3, 2008 Share Posted April 3, 2008 You could add a "fuel" parameter to each vehicle element and create a timer that is activated when you enter it (server side). The timer simply decreases the fuel level which you can retrieve again client side by fetching the vehicle fuel parameter. Link to comment
CodeMaster Posted April 6, 2008 Share Posted April 6, 2008 Ok as I promised I'm finishing this vehicle fuel script, but for now its only basic (well still will have realistic fuel depleting system which works on distance traveled), but I will expand it. For now it has a nice fuel progress bar in the corner and a text label which informs you about how much fuel left. This will be added at the end to my "Drivers Toolkit" which will feature my car ramming script, traveled distance meter and this fuel script, and possibly something more, so if anyone has ideas that would be great! Cheers Nidza Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now