[FilterScript] RealVehicle 1.0.1
#1

RealVehicle 1.1.1


New Update Version 1.1.1 (24-September-2014) updates
  • Cleaned up the textdraws (again, thanks Pottus!).
  • Fixed a bug that caused the engine to turn off when a passenger exited a vehicle.
  • Fixed a few more minor bugs.
  • Reinstated the "excessive-information" textdraws option.
Version 1.1.0 (23-September-2014)
  • Simplified the speedo display, as the display in 1.0.1 is a little excessive, but I won't remove the old display entirely, I will leave the code there so it can still be used, if desired.
  • Added a vehicle stats system. Vehicles will now be handled more like players, and will have their own stats (distance traveled, times died, etc).
  • Added a vehicle stats save/load system. Vehicle stats can now be saved/loaded from an .ini file, so restarting your server does not need to reset the vehicle stats.
  • Added a few more commands.
  • RE the save/load system, added a command to import vehicles from a csv file, much like grandlarc does.
  • Added a number plate system, all vehicles will now have a unique number plate (which can be customized).
  • Fixed the textdraws to be more efficient
  • Updated the way fuel is calculated - A vehicle can now consume fuel even if there is no player in it (if the engine has been left on, for example).
For those who preferred the excessive-looking textdraws, they are not available in this version, however will be restored as an option in my next release


version 1.0.1
OK, so I've been having a go at sa-mp scripting (I already have knowledge programming C++), and I've made this filterscript that implements a fuel system (with fuel stations and everything) and a few related commands on a server. I am currently developing this, and expect to release upgraded versions in the near future, but for now I am releasing version 1.0.1 to the community. Please be aware that this is my first sa-mp filterscript release, so there are some inefficiencies/bugs in this version that I am aware of, but I will not be patching, because they are caused by redundant code that is being addressed in the next version, which will have a number of new features (in relation to dynamic vehicle management).

However, having said that, you are welcome to give feedback for improvements or things you think I should add in the next version, just be aware that I won't be fixing bugs in this version - any issues that you post will be considered for version 1.1.0.


Documentation

Documentation of the commands and any other important information is also included in the download zip file
Commands
  • /v - toggle players current vehicle's engine on/off
  • /fuel20 - set players current vehicle's fuel to 20L
  • /refuel - refuel players current vehicle to 100% fuel
  • /fixcar - repair players current vehicle to 0% damage
  • /vehimport - import from csv
  • /vehsave - save the current vehicle's stats
  • /vehload - load the specified number plate from file
  • /vehsaveall - save all connected vehicles to file
  • /setplate - set's the current vehicles number plate
The commands are explained in a little more detail in the readme file, but you can just look through the source to find what they are anyway.


Download

(latest) Version 1.1.1
Download zip of source and amx from digiforce.bytesoftwaretech.com/realvehicle.php?id=sampforum

Version 1.1.0
Download zip of source and amx from digiforce.bytesoftwaretech.com/realvehicle.php?id=sampforum
pastebin is no longer available, due to the increased number of include files required - The zip file provides all the includes/plugins required, so if your server doesn't have one of the realvehicles dependencies, you don't have to download them separately.

Version 1.0.1
Download zip of .pwn source and .amx from http://digiforcecreations.eu.pn/file...hicle-1.0.1.7z
*edit* link to pastebin http://pastebin.com/7ChF6sqj

You are free to use this code and alter it to suit your requirements, however please do not redistribute. If you do happen to use this on your server, I would appreciate it if you could let me know, purely for statistical purposes. Overall, I hope this is helpful, and as always, have fun!




---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Insert deep philosophical statement here...
Reply


Messages In This Thread
RealVehicle 1.1.1 - by EnforcerDon - 19.09.2014, 10:55
Re: RealVehicle 1.0.1 - by Ox1gEN - 19.09.2014, 11:11
Re: RealVehicle 1.0.1 - by EnforcerDon - 19.09.2014, 11:28
Re: RealVehicle 1.0.1 - by TheStoNe - 20.09.2014, 09:27
Re: RealVehicle 1.0.1 - by EnforcerDon - 20.09.2014, 23:05
Re: RealVehicle 1.0.1 - by Dangjai - 21.09.2014, 00:14
Re: RealVehicle 1.0.1 - by Pottus - 21.09.2014, 00:39
Re: RealVehicle 1.0.1 - by EnforcerDon - 21.09.2014, 00:45
Re: RealVehicle 1.0.1 - by Pottus - 21.09.2014, 00:49
Re: RealVehicle 1.0.1 - by EnforcerDon - 21.09.2014, 01:10
Re: RealVehicle 1.0.1 - by Pottus - 21.09.2014, 01:21
Re: RealVehicle 1.0.1 - by EnforcerDon - 21.09.2014, 03:16
Re: RealVehicle 1.0.1 - by EnforcerDon - 22.09.2014, 08:20
Re: RealVehicle 1.0.1 - by Pottus - 22.09.2014, 13:27
Re: RealVehicle 1.0.1 - by KayJ - 22.09.2014, 13:30
Re: RealVehicle 1.0.1 - by EnforcerDon - 23.09.2014, 03:23
Re: RealVehicle 1.0.1 - by Pottus - 23.09.2014, 03:32
Re: RealVehicle 1.0.1 - by EnforcerDon - 23.09.2014, 04:11
Re: RealVehicle 1.0.1 - by Vishalshetty - 23.09.2014, 04:35
Re: RealVehicle 1.0.1 - by EnforcerDon - 23.09.2014, 04:47
Re: RealVehicle 1.0.1 - by Pottus - 24.09.2014, 15:18
Re: RealVehicle 1.0.1 - by EnforcerDon - 24.09.2014, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)