[FilterScript] AVS - Advanced Vehicle System
#1

AVS - Advanced Vehicle System
Features
  • Dynamic vehicles - add/edit in-game
  • Ownable vehicles - tune, park, sell to other players, edit license plate
  • Dynamic vehicle dealerships - add/edit in-game
  • Fuel system
  • Dynamic fuel stations - add/edit in-game
  • User-friendly dialogs
  • Full vehicle control - engine, lights, lock, alarm, trunk
  • Vehicle trunk - store weapons (5 slots)
  • Vehicle dashboard - including GPS, health, fuel, engine/alarm/lock status, speedometer (kph or mph)
  • Vehicle mods/paintjob saves
  • Vehicle tracking system - see where your vehicle is on your minimap
Commands

/avshelp - access all the commands available

Player commands:
Code:
/v  /vlock  /fix  /flip  /tow  /eject  /ejectall
/valarm  /fuel  /trunk  /kph  /mph  /clearmods  /sellv  /givecarkeys  /trackcar
Admin commands:
Code:
/addv  /editv  /setfuel  /rac (respawnallcars)  /rtc (respawnthiscar)
/adddealership  /deletedealership  /movedealership  /gotodealership
/addfuelstation  /deletefuelstation  /movefuelstation  /gotofuelstation
Installing

1. Download avs.amx file and put it to your server filterscripts folder
2. Add it to server.cfg

Code:
filterscripts avs
3. Create these folders to scriptfiles

Code:
<server>\scriptfiles\AVS\Vehicles\
<server>\scriptfiles\AVS\Dealerships\
<server>\scriptfiles\AVS\FuelStations\
4. Change the settings in the avs.pwn script (if you want)

pawn Code:
//=========================SETTINGS=========================

#undef MAX_PLAYERS
#define MAX_PLAYERS 100

#define MAX_DVEHICLES 200
#define MAX_DEALERSHIPS 10
#define MAX_FUEL_STATIONS 10

#define VEHICLE_FILE_PATH "AVS/Vehicles/"
#define DEALERSHIP_FILE_PATH "AVS/Dealerships/"
#define FUEL_STATION_FILE_PATH "AVS/FuelStations/"

#define MAX_PLAYER_VEHICLES 3
#define FUEL_PRICE 5
#define GAS_CAN_PRICE 500
#define ALARM_TIME 10000  // alarm duration in milliseconds (1 second = 1000 milliseconds)
#define DEFAULT_NUMBER_PLATE "123 ABC"

//==========================================================
5. Link this FS with your admin system (if you want)

Just add this function to the admin script

pawn Code:
public GetPlayerAVSAdmin(playerid)
{
    return PlayerInfo[playerid][pAdmin];
}
You must use YOUR admin system variable. PlayerInfo[playerid][pAdmin] is just EXAMPLE.

Notes

You need at least SA-MP 0.3c R3 server - https://sampforum.blast.hk/showthread.php?tid=271586

If you want to restart your gamemode (gmx), first unload AVS, restart the gamemode and then load AVS again. Else your vehicles might be bugged.

Common Problems

P: Nothing happens when I click a button in dialog.
S: This is most likely caused by ANOTHER filterscript. Quick fix for it is to remove all other filterscripts from server.cfg and try then. If you want to keep them, you must EDIT OTHER FILTERSCRIPTS and make sure the LAST return in OnDialogResponse is 0.

P: I can drive with engine off.
S: Use ManualVehicleEngineAndLights in your GAMEMODE script - https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights

P: I can drive with a dealership vehicle.
S: Admins can drive them, so if you are admin, there is nothing wrong.

P: Server shuts down after adding a vehicle, dealership or fuel station.
S: Make sure you have created the AVS folder inside scriptfiles and also another 3 folders inside AVS (shown above in Installing section step 3)

P: Money doesn't decrease when I buy a vehicle.
S: You are probably using a server-side money for anti-cheat purposes. There is no simple fix for it. You need some scripting knowledge to hook AVS money functions with server-side script.

Credits

****** - sscanf
ZeeX - zcmd

Screenshots

See the attachments

Download

See the attachments
Reply


Messages In This Thread
AVS - Advanced Vehicle System - by MadeMan - 15.08.2011, 17:00
Re: AVS - Advanced Vehicle System - by Cowboy - 15.08.2011, 18:10
Re: AVS - Advanced Vehicle System - by Darnell - 15.08.2011, 18:15
Re: AVS - Advanced Vehicle System - by WoodPecker - 15.08.2011, 18:23
Re: AVS - Advanced Vehicle System - by DutchWings - 15.08.2011, 20:24
Re: AVS - Advanced Vehicle System - by MadeMan - 15.08.2011, 20:56
Re: AVS - Advanced Vehicle System - by DutchWings - 15.08.2011, 21:07
Re: AVS - Advanced Vehicle System - by igor_andrusenko - 20.08.2011, 20:05
Re: AVS - Advanced Vehicle System - by FireCat - 20.08.2011, 22:42
Re: AVS - Advanced Vehicle System - by 4ir-W4ys - 20.08.2011, 23:49
Re: AVS - Advanced Vehicle System - by Meinstad - 24.08.2011, 19:22
Re: AVS - Advanced Vehicle System - by svaba - 24.08.2011, 19:37
Re: AVS - Advanced Vehicle System - by Mariooo - 25.08.2011, 22:48
Re: AVS - Advanced Vehicle System - by gta191977649 - 26.08.2011, 09:44
Re: AVS - Advanced Vehicle System - by Jafet_Macario - 26.08.2011, 13:37
Re: AVS - Advanced Vehicle System - by shayan122 - 27.08.2011, 09:32
Re: AVS - Advanced Vehicle System - by Hattrick - 27.08.2011, 11:43
Re : AVS - Advanced Vehicle System - by bousla7e - 27.08.2011, 21:31
Re: AVS - Advanced Vehicle System - by Jafet_Macario - 27.08.2011, 22:12
Re: AVS - Advanced Vehicle System - by ChrisFly - 28.08.2011, 03:54
Re: AVS - Advanced Vehicle System - by segayo - 28.08.2011, 22:42
Re: AVS - Advanced Vehicle System - by ChrisFly - 29.08.2011, 22:40
Re: AVS - Advanced Vehicle System - by Jafet_Macario - 30.08.2011, 06:33
Re: AVS - Advanced Vehicle System - by costinelll - 30.08.2011, 12:45
Re: AVS - Advanced Vehicle System - by ChrisFly - 01.09.2011, 22:39
Re: AVS - Advanced Vehicle System - by Jafet_Macario - 02.09.2011, 12:24
Re: AVS - Advanced Vehicle System - by Mariooo - 02.09.2011, 21:57
Re: AVS - Advanced Vehicle System - by TheNavigator - 06.09.2011, 00:55
Re: AVS - Advanced Vehicle System - by m0ta - 07.09.2011, 12:48
Re: AVS - Advanced Vehicle System - by DiiP - 07.09.2011, 13:24
Re: AVS - Advanced Vehicle System - by boyan96 - 30.09.2011, 10:08
Re: AVS - Advanced Vehicle System - by PSYK0TiK - 08.11.2011, 20:56
Re: AVS - Advanced Vehicle System - by Esmaelo - 11.11.2011, 14:51
Re: AVS - Advanced Vehicle System - by Smally - 19.11.2011, 14:15
AW: AVS - Advanced Vehicle System - by Dripac - 24.11.2011, 10:28
Re: AW: AVS - Advanced Vehicle System - by Langley - 24.11.2011, 10:37
Re: AVS - Advanced Vehicle System - by remyguys - 25.11.2011, 21:29
Re: AVS - Advanced Vehicle System - by LoF - 27.11.2011, 17:33
Re: AVS - Advanced Vehicle System - by Speculationz - 27.11.2011, 17:58
Re: AVS - Advanced Vehicle System - by misho1 - 27.11.2011, 18:19
Re : AVS - Advanced Vehicle System - by Pallanas - 30.11.2011, 17:31
Re: AVS - Advanced Vehicle System - by Sarma93 - 02.12.2011, 16:31
Re: AVS - Advanced Vehicle System - by king4you - 31.12.2011, 03:02
Re: AVS - Advanced Vehicle System - by Nickey - 05.01.2012, 12:54
Re: AVS - Advanced Vehicle System - by darkvsoul36 - 06.01.2012, 02:24
Re: AVS - Advanced Vehicle System - by N0FeaR - 06.01.2012, 03:47
Re: AVS - Advanced Vehicle System - by zaf13 - 06.01.2012, 10:19
Re: AVS - Advanced Vehicle System - by [ETP]DarkNighT - 15.01.2012, 07:52
Re: AVS - Advanced Vehicle System - by Jeff_Scripter - 15.01.2012, 08:18
Re: AVS - Advanced Vehicle System - by Karl.. - 16.01.2012, 13:30
Re: AVS - Advanced Vehicle System - by Karl.. - 16.01.2012, 13:36
Re: AVS - Advanced Vehicle System - by Karl.. - 16.01.2012, 13:38
Re: AVS - Advanced Vehicle System - by Brian_G - 16.01.2012, 17:12
Re: AVS - Advanced Vehicle System - by tavos - 18.01.2012, 15:37
Re: AVS - Advanced Vehicle System - by BrUn3S - 21.01.2012, 22:55
Re: AVS - Advanced Vehicle System - by Ange|L - 22.01.2012, 19:50
Re: AVS - Advanced Vehicle System - by Jstylezzz - 25.01.2012, 12:50
Re: AVS - Advanced Vehicle System - by darkvsoul36 - 30.01.2012, 22:16
Re: AVS - Advanced Vehicle System - by Jstylezzz - 31.01.2012, 13:18
Re: AVS - Advanced Vehicle System - by cs_waller - 31.01.2012, 13:27
Re: AVS - Advanced Vehicle System - by darkvsoul36 - 31.01.2012, 22:43
Re: AVS - Advanced Vehicle System - by MadeMan - 04.02.2012, 12:48
Re: AVS - Advanced Vehicle System - by Shazwan - 06.02.2012, 04:17
Re: AVS - Advanced Vehicle System - by sanjil_rijal - 06.03.2012, 01:27
Re: AVS - Advanced Vehicle System - by c-middia - 03.05.2012, 19:17
Re: AVS - Advanced Vehicle System - by ossukoss - 04.06.2012, 16:02
Re: AVS - Advanced Vehicle System - by nimsa - 05.06.2012, 22:14
Re: AVS - Advanced Vehicle System - by Beginerinprogress - 10.06.2012, 04:00
Re: AVS - Advanced Vehicle System - by Mateia1997 - 06.07.2012, 15:36
AW: AVS - Advanced Vehicle System - by BiosMarcel - 17.07.2012, 15:14
Re: AVS - Advanced Vehicle System - by Height - 03.09.2012, 19:54
Re: AVS - Advanced Vehicle System - by D_Malfoy - 04.09.2012, 02:51
Re: AVS - Advanced Vehicle System - by Height - 04.09.2012, 17:16
Re: AVS - Advanced Vehicle System - by StuartD - 13.10.2012, 19:34
Re: AVS - Advanced Vehicle System - by xXRealLegitXx - 15.10.2012, 00:34
Re: AVS - Advanced Vehicle System - by Edward d - 21.10.2012, 14:32
Re: AVS - Advanced Vehicle System - by Edward d - 21.10.2012, 14:39
Re: AVS - Advanced Vehicle System - by WizBoy - 21.10.2012, 16:33
Re: AVS - Advanced Vehicle System - by RealWorldGaming - 22.11.2012, 07:02
Re: AVS - Advanced Vehicle System - by Matthew_Garrowo - 23.11.2012, 23:50
Re: AVS - Advanced Vehicle System - by Freemuffins - 25.11.2012, 02:21
Re: AVS - Advanced Vehicle System - by CityWorld - 01.12.2012, 20:11
Re: AVS - Advanced Vehicle System - by InActtive™ - 11.12.2012, 18:40
Re: AVS - Advanced Vehicle System - by Astrais - 16.12.2012, 10:54
Re: AVS - Advanced Vehicle System - by este119 - 17.12.2012, 15:53
Re: AVS - Advanced Vehicle System - by TheEpicBraxton - 23.12.2012, 22:40
Re: AVS - Advanced Vehicle System - by KAMPOT - 25.12.2012, 04:43
Re: AVS - Advanced Vehicle System - by hatchoe101 - 26.12.2012, 20:38
Re: AVS - Advanced Vehicle System - by TheEpicBraxton - 02.01.2013, 21:29
Re: AVS - Advanced Vehicle System - by Smokey619 - 03.01.2013, 05:26
Re: AVS - Advanced Vehicle System - by GM - 03.01.2013, 05:27
Re: AVS - Advanced Vehicle System - by vMapper - 03.01.2013, 05:27
Re: AVS - Advanced Vehicle System - by maho422 - 05.01.2013, 13:26
Re: AVS - Advanced Vehicle System - by maho422 - 05.01.2013, 14:20
Re: AVS - Advanced Vehicle System - by Smokey619 - 05.01.2013, 16:16
Re: AVS - Advanced Vehicle System - by peternbj - 20.02.2013, 17:30
Re: AVS - Advanced Vehicle System - by rouzbeh - 06.03.2013, 08:07
Respuesta: AVS - Advanced Vehicle System - by JordanR - 11.04.2013, 12:35
Re: AVS - Advanced Vehicle System - by JohnnyChen - 26.04.2013, 18:27
Re: AVS - Advanced Vehicle System - by Yochui - 12.05.2013, 15:30
Re : AVS - Advanced Vehicle System - by alfa drive - 28.05.2013, 09:40
Re: AVS - Advanced Vehicle System - by SAMProductions - 26.10.2013, 23:08
Re: AVS - Advanced Vehicle System - by an4rei - 21.02.2014, 16:33
Re: AVS - Advanced Vehicle System - by zimmer - 21.04.2014, 10:55
Re: AVS - Advanced Vehicle System - by CSLangdale - 18.02.2016, 11:50
Re: AVS - Advanced Vehicle System - by bugmenotlol - 04.03.2016, 19:48

Forum Jump:


Users browsing this thread: 5 Guest(s)