SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/08/2011, 06:00 PM   #1
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default AVS - Advanced Vehicle System

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 - 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

Screenshots

See the attachments

Download

See the attachments
Attached Images
File Type: jpg sa-mp-009.jpg (185.0 KB, 9363 views)
File Type: jpg sa-mp-008.jpg (194.5 KB, 7227 views)
File Type: jpg sa-mp-010.jpg (196.2 KB, 7699 views)
Attached Files
File Type: amx avs.amx (108.8 KB, 5167 views)
File Type: pwn avs.pwn (105.4 KB, 11844 views)

Last edited by MadeMan; 05/05/2012 at 11:44 AM.
MadeMan is offline   Reply With Quote
Old 15/08/2011, 07:10 PM   #2
Cowboy
Big Clucker
 
Join Date: Jun 2011
Posts: 107
Reputation: 0
Default Re: AVS - Advanced Vehicle System

This is epic! Thank you for this.

Good job.
Cowboy is offline   Reply With Quote
Old 15/08/2011, 07:15 PM   #3
Darnell
Gangsta
 
Darnell's Avatar
 
Join Date: Jul 2010
Posts: 824
Reputation: 35
Default Re: AVS - Advanced Vehicle System

OHHH YEAH.
Darnell is offline   Reply With Quote
Old 15/08/2011, 07:23 PM   #4
WoodPecker
Huge Clucker
 
WoodPecker's Avatar
 
Join Date: Apr 2009
Location: Tree
Posts: 428
Reputation: 47
Default Re: AVS - Advanced Vehicle System

Nice work you added everything on this vehicle system, its awesome.
I will post here if i will find any bugs, thanks mate.
WoodPecker is offline   Reply With Quote
Old 15/08/2011, 09:24 PM   #5
DutchWings
Little Clucker
 
DutchWings's Avatar
 
Join Date: Aug 2011
Posts: 8
Reputation: 0
Default Re: AVS - Advanced Vehicle System

pawn Code:
C:\Users\Ashwin\Desktop\SAMP Server\filterscripts\avs.pwn(576) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
C:\Users\Ashwin\Desktop\SAMP Server\filterscripts\avs.pwn(568) : warning 203: symbol is never used: "playerid"
C:\Users\Ashwin\Desktop\SAMP Server\filterscripts\avs.pwn(1311) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

DutchWings is offline   Reply With Quote
Old 15/08/2011, 09:56 PM   #6
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: AVS - Advanced Vehicle System

Quote:
Originally Posted by DutchWings View Post
pawn Code:
C:\Users\Ashwin\Desktop\SAMP Server\filterscripts\avs.pwn(576) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
C:\Users\Ashwin\Desktop\SAMP Server\filterscripts\avs.pwn(568) : warning 203: symbol is never used: "playerid"
C:\Users\Ashwin\Desktop\SAMP Server\filterscripts\avs.pwn(1311) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Download latest SA-MP server

http://forum.sa-mp.com/showthread.php?t=271586
MadeMan is offline   Reply With Quote
Old 15/08/2011, 10:07 PM   #7
DutchWings
Little Clucker
 
DutchWings's Avatar
 
Join Date: Aug 2011
Posts: 8
Reputation: 0
Default Re: AVS - Advanced Vehicle System

Quote:
Originally Posted by MadeMan View Post
Whoops sorry! Everything is fine now, thanks!
DutchWings is offline   Reply With Quote
Old 20/08/2011, 09:05 PM   #8
igor_andrusenko
Big Clucker
 
igor_andrusenko's Avatar
 
Join Date: Jul 2011
Location: Mr.Burns Mansion
Posts: 83
Reputation: 1
Thumbs up Re: AVS - Advanced Vehicle System

Sry, but how I use /adddealership and make ownable cars?

Edit: I found it.
10/10, great!
__________________
My maps:
American Venice
Chilliad Mansion

My Internet speed sucks


Last edited by igor_andrusenko; 21/08/2011 at 10:58 AM.
igor_andrusenko is offline   Reply With Quote
Old 20/08/2011, 11:42 PM   #9
FireCat
High-roller
 
FireCat's Avatar
 
Join Date: Jul 2010
Posts: 2,323
Reputation: 609
Default Re: AVS - Advanced Vehicle System

Pro
FireCat is offline   Reply With Quote
Old 21/08/2011, 12:49 AM   #10
4ir-W4ys
Little Clucker
 
4ir-W4ys's Avatar
 
Join Date: Aug 2011
Location: Israel :D
Posts: 39
Reputation: 0
Default Re: AVS - Advanced Vehicle System

Quote:
Originally Posted by MadeMan View Post
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 trunks - 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 radar

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 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.

Credits

****** - sscanf
ZeeX - zcmd

Screenshots

See the attachments

Download

See the attachments
Oh My God.... Oh My God... Oh My Fucking Gooood! Man, You are my LIFE. Do you know how much i searched it? You are the next ainstain!!!!! Not like all the Scripter noob that saying i have a car ownership do Createvehicle and Ta da your first car in the system you are Genius!!!
(( I know you copied from Next Generation Roleplay))
__________________
Infinity RolePlayStaff


Quote:
Originally Posted by ****** View Post
Sup 4ir-W4ys Dude?
Quote:
Originally Posted by Kalcor View Post
Sa-mp Team to 4ir-W4ys, Over.
Sup Kalcor Bro.
4ir-W4ys 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
[FilterScript] pVehicle -> Advanced private vehicle system, alternate between Y_INI and MYSQL (Current version: V1.3) gamer931215 Filterscripts 92 11/08/2015 01:29 PM
[FilterScript] Cali-Cars: Advanced vehicle ownership! California Filterscripts 169 06/01/2015 01:37 AM
[FilterScript] [FS] X-VIP [Advanced VIP system] hemen Filterscripts 17 12/10/2011 12:51 PM
[Include] [Addon]Advanced vehicle locking - Bug free DRIFT_HUNTER Includes 3 20/12/2010 03:45 PM
[Include] [INC]Advanced Vehicle Streamer/Cmds - NEW - UPDATED 18/04/08 cptnsausage Includes 273 16/03/2010 07:07 PM


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


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