SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 01/10/2012, 08:59 PM   #1
KevinPRINCE
Huge Clucker
 
KevinPRINCE's Avatar
 
Join Date: Jul 2012
Location: 0xB00B
Posts: 216
Reputation: 21
Post Avanced Vehicle System Revisied

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
  • Full vehicle control - engine, lights, lock, alarm, trunk
  • Vehicle trunk - store weapons (5 slots)
  • 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 - http://forum.sa-mp.com/showthread.php?t=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 - http://wiki.sa-mp.com/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
MadeMan - Original Script and This Tutorial page, The Whole script
Kevin - Removing fuel system (not the whole thing, just some distracting parts), and the stats bar, and fixing few typos


Links: http://www.upload.ee/files/2716271/AVS.zip.html
__________________
Quote:
Originally Posted by KevinPRINCE
I am honest and give my credits, please do the same with me.
KevinPRINCE is offline   Reply With Quote
Old 16/09/2013, 09:59 PM   #2
KevinPRINCE
Huge Clucker
 
KevinPRINCE's Avatar
 
Join Date: Jul 2012
Location: 0xB00B
Posts: 216
Reputation: 21
Default Re: Avanced Vehicle System Edited

Any comments or error reports?
__________________
Quote:
Originally Posted by KevinPRINCE
I am honest and give my credits, please do the same with me.
KevinPRINCE is offline   Reply With Quote
Old 17/09/2013, 07:26 AM   #3
x96664
Gangsta
 
x96664's Avatar
 
Join Date: Jun 2009
Posts: 585
Reputation: 7
Default Re: Avanced Vehicle System Edited

Do you even have permission to upload this fs ?
x96664 is offline   Reply With Quote
Old 17/09/2013, 07:40 AM   #4
Uberanwar
Gangsta
 
Uberanwar's Avatar
 
Join Date: May 2012
Location: Malaysia
Posts: 893
Reputation: 63
Default Re: Avanced Vehicle System Edited

The stats bar is the textdraw right?
Uberanwar is offline   Reply With Quote
Old 25/10/2013, 10:22 PM   #5
KevinPRINCE
Huge Clucker
 
KevinPRINCE's Avatar
 
Join Date: Jul 2012
Location: 0xB00B
Posts: 216
Reputation: 21
Cool Re: Avanced Vehicle System Edited

Quote:
Originally Posted by x96664 View Post
Do you even have permission to upload this fs ?
I believe i do as long I give credits

@Uberan Yes I believe its the textdraw I disabled for the car stats but I did it along time ago I don't remember precisely if you want I can check the file again.
__________________
Quote:
Originally Posted by KevinPRINCE
I am honest and give my credits, please do the same with me.
KevinPRINCE is offline   Reply With Quote
Old 25/10/2013, 11:58 PM   #6
Akira297
Banned
 
Join Date: Jul 2012
Posts: 1,274
Reputation: 183
Default Re: Avanced Vehicle System Edited

Your filter-script seems like a Next Generation Gaming script dub release. Anyways, on-topic very interesting.
Akira297 is offline   Reply With Quote
Old 13/11/2013, 09:18 PM   #7
fanta291327
Huge Clucker
 
Join Date: Jan 2013
Posts: 276
Reputation: 26
Default Re: Avanced Vehicle System Edited

Nice
fanta291327 is offline   Reply With Quote
Old 13/11/2013, 09:28 PM   #8
DanishHaq
High-roller
 
Join Date: Sep 2011
Location: Manchester, England, United Kingdom
Posts: 1,351
Reputation: 134
Default Re: Avanced Vehicle System Edited

What did you add? The word count on the original topic is greater than the word count on this topic. Hence the title, did you edit it and remove stuff? Because that's not an improvement or whatnot.

I don't see much difference whatsoever, and nowhere on the original topic does it say you can rerelease that filterscript with your own tweaks and edits.

Before posting, read the forum rules and have some common sense. At the moment this topic looks like the original and the original topic looks like the updated version of this. If it's an advanced vehicle system, why have you removed stuff? Lol...

http://forum.sa-mp.com/showthread.php?t=276887
__________________
SA-MP Scripting knowledge: 80%
Pawn scripting knowledge: 3%

Know the difference...
DanishHaq is offline   Reply With Quote
Old 13/11/2013, 09:31 PM   #9
KevinPRINCE
Huge Clucker
 
KevinPRINCE's Avatar
 
Join Date: Jul 2012
Location: 0xB00B
Posts: 216
Reputation: 21
Exclamation Re: Avanced Vehicle System Edited

Quote:
Originally Posted by DanishHaq View Post
What did you add? The word count on the original topic is greater than the word count on this topic. Hence the title, did you edit it and remove stuff? Because that's not an improvement or whatnot.

I don't see much difference whatsoever, and nowhere on the original topic does it say you can rerelease that filterscript with your own tweaks and edits.

Before posting, read the forum rules and have some common sense. At the moment this topic looks like the original and the original topic looks like the updated version of this. If it's an advanced vehicle system, why have you removed stuff? Lol...

http://forum.sa-mp.com/showthread.php?t=276887
The original one has been edited since last year, I never edited this since, did you even see the OG thread when it was first released?

And I have listed credits, which is perfectly fine, and there were 600+ downloads and people still uses it, one person won't bring it down . And if you want I can start editing this and change it completely and add many more lines of codes with more functions. Also never said its updated, revised, in other words edited to change few functions. (Known mostly as Nightly Build)
__________________
Quote:
Originally Posted by KevinPRINCE
I am honest and give my credits, please do the same with me.
KevinPRINCE is offline   Reply With Quote
Old 09/06/2014, 10:38 AM   #10
doiniboss
Little Clucker
 
Join Date: Nov 2012
Posts: 2
Reputation: 0
Default Re: Avanced Vehicle System Edited

i get a big crash on my server when i type /addealership .. Why ?>
doiniboss is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP]I just edited my /engine system and when i do /engine it says "unknown Lilcuete Help Archive 2 25/04/2010 01:31 PM
edited Login / Register system Antonio [G-RP] Help Archive 1 08/08/2009 08:34 PM
[FilterScript] [FS] Backwards's Vehicle System - Speedometer and Vehicle Health- Backwardsman97 Filterscripts 34 07/08/2009 12:37 PM


All times are GMT. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.