SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/09/2008, 03:13 PM   #1
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

-=< tAxI's Vehicle Shop/Menu >=-

This system adds a vehicle purchasing system to ur GM:

- Fully automated menu construction: simply use CreateBuyableVehicle command to add one to menu
- Permanently saves for each individual player
- Modsaving and personal vehicles spawn with mods applied
- Auto modsave: Mod at a garage and it saves by default
- preview vehicles before you buy
- vehicle parking: save your vehicle where u want it to spawn
- vehicle despawns when you leave the server
- Built in vehicle security systems: good old fashioned lethal and non lethal
- Call your vehicle to you!
- Full Vehicle Control at you fingertips!!
- NEW*** Unlimited choices for vehicles - have anywhere from 5 to 5000 vehicles for sale at any one time on your server!

Essentially it is my XVM system but more universal for all servers and minimises the need for having empty unusable cars all over your server - ie a users car only spawns when they are logged into the system, and hwen they log out it disappears



There are 2 commands built into the system:

/buycar - displays the menu from which a player can buy any of the availlable vehicle selections on the server

/managecar - displays the user's personal vehicle control menu (XVM style)

If you would prefer to use your own commands then simply dont include the TVS_OnPlayerCommandText in your code. All of the other callbacks are 100% necesary though!!!

Add vehicles to your menu via the CreateBuyableVehicle command:

e.g. CreateBuyableVehicle(model,price,color_1,color_2); <><><> NB: Must be used under OnGameModeInit

This adds a vehicle slot to the menu - there is no limit to the amount of buyable cars u can put onto the server.

There are 2 commands to make integration with existing user reg systems possible:

TVS_LoginPlayer and TVS_RegisterPlayer




http://sampstorage.pandosite.co.uk/TVS/TVS.zip <<-- Download HERE - for some reason u need to copy that URL into your address bar for the download to work!

View Readme:
Code:
This system adds a vehicle purchasing system to ur GM:

 - Fully automated menu construction: simply use CreateBuyableVehicle command to add one to menu
 - Permanently saves with player username
 - Modsaving and personal vehicles spawn with mods applied
 - Auto modsave: Mod at a garage and it saves by default
 - preview vehicles before you buy
 - vehicle parking: save your vehicle where u want it
 - vehicle despawns when you leave the server
 - Built in vehicle security systems
 - Call your vehicle to you!
 - Full Vehicle Control at you fingertips!!

Essentially it is my XVM system but more universal for all servers and minimises the need for having empty unusable cars all over your server

 
--------------------=============================--------------------------------------
  tAxI's TVS Toolkit - INC Package for SA-MP Multiplayer Modification 
  of Grand Theft Auto - San Andreas.

  Copyright (C) 2007 Chris Johnstone (tAxI/Necrioss)

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program. If not, see <http://www.gnu.org/licenses/>.

------------------================================-------------------------------------

In Order to get this working you must put All of the files in the include directory of the download into your
"pawno/include" folder.

--------------=================================----------------

To use you must insert at the top of your script ---> #include <TVS>

insert under OnGameModeInit() OR if using in a filterscript OnFilterScriptInit() ---> TVS_OnGameModeInit();

insert under OnVehicleDeath(vehicleid,reason) ---> TVS_OnVehicleDeath(vehicleid);

insert under OnVehicleMod(vehicleid,componentid) ---> TVS_OnVehicleMod(vehicleid,componentid);

insert under OnVehicleRespray(vehicleid,color1,color2) ---> TVS_OnVehicleRespray(vehicleid,color1,color2);

insert under OnVehiclePaintjob(vehicleid,paintjobid) ---> TVS_OnVehiclePaintjob(vehicleid,paintjobid);

insert under OnPlayerDisconnect(playerid) ---> TVS_OnPlayerDisconnect(playerid);

insert under OnPlayerSelectedMenuRow(playerid,row) ---> TVS_OnPlayerSelectedMenuRow(playerid,row);

insert under OnPlayerStateChange(playerid, newstate, oldstate) ---> TVS_OnPlayerStateChange(playerid, newstate, oldstate);

insert under OnPlayerExitedMenu(playerid) ---> TVS_OnPlayerExitedMenu(playerid);


A list of availlable commands will appear on your commands list on the right hand side of your pawno window

If you have any problems Please contact me, <tAxI>, via the SA-MP forums @ http://forum.sa-mp.com

Enjoy!!!

tAxI/Necrioss <aka> Chris Johnstone.

++++++++++++++++__________________________+++++++++++++++++++

CURRENT COMMANDS LIST:

native TVS_OnGameModeInit();
native TVS_OnVehicleDeath(vehicleid);
native TVS_OnPlayerSelectedMenuRow(playerid,row);
native TVS_OnPlayerDisconnect(playerid);
native TVS_OnVehicleMod(vehicleid,componentid);
native TVS_OnVehicleRespray(vehicleid,color__1,color__2);
native TVS_OnVehiclePaintjob(vehicleid,paintjobid);
native TVS_OnPlayerStateChange(playerid, newstate, oldstate);

native TVS_OnPlayerCommandText(playerid, cmdtext[]);
native TVS_ShowPlayerBuyVehicleMenu(playerid);
native TVS_ShowPlayerManageVehicleMenu(playerid);

***commandtext and showplayerbuyvehiclemenu commands are interchangable:
e.g. if u want the commands default (/buycar & /managecar) simply use command text where indicated above, however to insert the menu showing routine into your own command etc simply remove the commandtext lines and use the showmenu command included in the code system

native TVS_RegisterPlayer(playerid); <<< Must be inserted into whatever register command you have for your server so when people register they are auto registered with the vehicle shop system!
native TVS_LoginPlayer(playerid); <<< Must be inserted under whatever login command you use or their vehicle will not spawn at all - note that for easy integration if someone is already registered and the login command is used it will register them automatically!
			
native CreateBuyableVehicle(vehicle_model, vehicle_cost, vehicle_name[20], vehicle_color_1, vehicle_color_2); <<< This adds a vehicle with the selected attributes to the vehicle purchasing menu system.


ENJOY!!!
cptnsausage is offline   Reply With Quote
Old 12/09/2008, 04:08 PM   #2
matrixismyname
Little Clucker
 
Join Date: Jan 2008
Posts: 36
Reputation: 0
Default Re: ***New*** tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

first .... This was really needed !! thank you
matrixismyname is offline   Reply With Quote
Old 12/09/2008, 04:13 PM   #3
BlackFoX
Huge Clucker
 
Join Date: Dec 2007
Posts: 227
Reputation: 10
Default Re: ***New*** tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

Really Nice :O
BlackFoX is offline   Reply With Quote
Old 12/09/2008, 04:16 PM   #4
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default Re: ***New*** tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

I know this compiles no problems but please report bugs or issues etc - it should work but thats what they said about the first interplanitery rocket after all...
cptnsausage is offline   Reply With Quote
Old 12/09/2008, 04:51 PM   #5
[eLg]Timmy
Big Clucker
 
Join Date: Jun 2008
Posts: 96
Reputation: 0
Default Re: ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

cant download it... when i click on your link i go to a webhosting site..

could you pls upload it somewher else?

EDIT: nvm found it
[eLg]Timmy is offline   Reply With Quote
Old 12/09/2008, 05:10 PM   #6
BlackFoX
Huge Clucker
 
Join Date: Dec 2007
Posts: 227
Reputation: 10
Default Re: ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

Copy the Link Manual ^^
BlackFoX is offline   Reply With Quote
Old 12/09/2008, 07:52 PM   #7
Jokel317
Little Clucker
 
Join Date: Jul 2008
Posts: 43
Reputation: 0
Default Re: ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

Trying to add it into my modified gamemode of LVDM and get these errors please help thanks!!!!!

D:\Program Files\Rockstar Games\Normal San Andreas\pawno\include\TVS_core/TVS_core.own(1853) : error 001: expected token: ";", but found "return"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(92) : warning 219: local variable "name" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(9 : error 035: argument type mismatch (argument 2)
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(9 : error 035: argument type mismatch (argument 2)
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(92) : warning 204: symbol is assigned a value that is never used: "name"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(147) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(191) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(195) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(369) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(369) : error 004: function "OnPlayerStateChange" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(370) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(371) : error 017: undefined symbol "playerid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : error 004: function "OnVehicleDeath" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(376) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(377) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : error 004: function "OnVehicleMod" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(383) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : error 004: function "OnVehiclePaintjob" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(389) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : error 004: function "OnVehicleRespray" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(395) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(401) : error 017: undefined symbol "playerid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(407) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(407) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(702) : warning 235: public function lacks forward declaration (symbol "SendPlayerFormattedText")
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(709) : warning 235: public function lacks forward declaration (symbol "SendAllFormattedText")

22 Errors.
Jokel317 is offline   Reply With Quote
Old 12/09/2008, 10:38 PM   #8
Street-Fighter
Little Clucker
 
Join Date: Aug 2008
Posts: 27
Reputation: 0
Default Re: ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

please new download link
Street-Fighter is offline   Reply With Quote
Old 12/09/2008, 11:19 PM   #9
[Jay]
Big Clucker
 
Join Date: Aug 2008
Posts: 84
Reputation: 0
Default Re: ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

so its basically a car ownership? Can ur car? will it respawn where u saved it? what will happen if the server restarts?
[Jay] is offline   Reply With Quote
Old 13/09/2008, 10:22 AM   #10
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default Re: ***New*** [INC] tAxI's Vehicle Shop/Menu with XVM Menu and Modsaving

Quote:
Originally Posted by Jokel317
Trying to add it into my modified gamemode of LVDM and get these errors please help thanks!!!!!

D:\Program Files\Rockstar Games\Normal San Andreas\pawno\include\TVS_core/TVS_core.own(1853) : error 001: expected token: ";", but found "return"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(92) : warning 219: local variable "name" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(9 : error 035: argument type mismatch (argument 2)
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(9 : error 035: argument type mismatch (argument 2)
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(92) : warning 204: symbol is assigned a value that is never used: "name"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(147) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(191) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(195) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(369) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(369) : error 004: function "OnPlayerStateChange" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(370) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(371) : error 017: undefined symbol "playerid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : error 004: function "OnVehicleDeath" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(376) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(377) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : error 004: function "OnVehicleMod" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(383) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : error 004: function "OnVehiclePaintjob" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(389) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : error 004: function "OnVehicleRespray" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(395) : error 017: undefined symbol "vehicleid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(401) : error 017: undefined symbol "playerid"
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(407) : warning 225: unreachable code
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(407) : warning 217: loose indentation
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(702) : warning 235: public function lacks forward declaration (symbol "SendPlayerFormattedText")
D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(709) : warning 235: public function lacks forward declaration (symbol "SendAllFormattedText")

22 Errors.
only 1 of those errorsare due to th TVS system - looks likeur using a very old version of LVDM! also make sure u are using the comands properly andin the corrct places

JAY: yesits carownership but i guess i've beenout ofthe sa-mp scene for a while so some peeps may notknow what my xvm is. Essentially its the most advanced vehicle ownership system currently availlable for download on the sa-mp forums and has been for almost a year now i recon...full menu control of all vehicle functions etc - if u want to see a full version ofit in action simpy download the tAxI Freeroam GM in my sig - the non streamer version is the one in this GM incude
cptnsausage 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] [FS]Weapon Menu + Player Menu + Vehicle Menu! [Good For Stunt Server] AlexHitman Filterscripts 4 27/07/2014 09:34 PM
[FilterScript] [FS] ShopSystem - Fully menu-based Vehicle and Ammunation-style Weapons Shop Darkimmortal Filterscripts 56 31/12/2010 12:25 AM
[FilterScript] [FS]Car Shop Menu snipe69 Filterscripts 35 19/08/2010 06:19 PM
Shop Menu Ver2.2 caribe88 Filterscripts 11 20/10/2009 04:20 PM
Menu trouble: Can't Enter Vehicle After Closing Menu Badger(new) Help Archive 4 17/05/2009 02:26 AM


All times are GMT. The time now is 10:52 AM.


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