SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/06/2009, 04:17 AM   #1
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default [FS] File Cars - Vehicle File Storing System!

pawn Code:
/*            File Cars          */
/******************************************************/
/*       Script created by Lavamike      */
/*       Dini created by DracoBlue       */
/*      Whoever made IsVehicleConnected     */
/*    If I missed anyone please let me know!   */
/******************************************************/
/*            File Cars          */

Requirements: dini, prior scripting knowledge

I originally made this for my server but I felt like releasing it


Basically this contains all the information to load/unload cars from a file in the folder: YourSAMPserverDIRECTORY\scriptfiles\Vehicles\

This is really aimed towards people who are fairly good at scripting and can figure out how to use it, there won't be much support for it unless I made an error somewhere.


Enjoy!


Download from Pastebin: http://pawn.pastebin.com/f3747283a


Quote:
Originally Posted by Lavamike
Quote:
Originally Posted by eXchainZ-FoReVeR
What can we do with this File Cars?
It allows you to very very easily edit cars without all the fuss.

I was too lazy to make a converter to convert your current script created cars but I will do that soon unless someone else does first.


Anyway, this is mainly aimed towards 24/7 servers, with this you can in-game edit cars details, without having to go into the script, find the thing oyu need to change and go in and out of game and such to test colors and get models and whatnot.


Say you want to change the location of a car you can make a command to simply get in the car you want to change and make a /setcarpos command or whatever you want to name it, and have the server get your new location and angle, save it to the file, then respawn the car. Now you have the car saved forever there, without having to restart your server or do much work at all!


On my server I have made commands to respawn, delete, setcolor, setmodel, setcarpos, setcar, etc.

I can do all those things without going through the script and messing with the AddStaticVehicle and such

You can also create cars. I haven't included my commands but they aren't that hard to make. My setcar will cloan a car if you are in one that's already stored as a file and set it to the current location and everything.



One main idea is to keep the carid ingame synced with the fileid.
lavamike is offline   Reply With Quote
Old 06/06/2009, 07:05 AM   #2
yezizhu
Gangsta
 
yezizhu's Avatar
 
Join Date: Nov 2007
Location: Shenzhen,China
Posts: 640
Reputation: 2
Default Re: [FS] File Cars - Vehicle File Storing System!

If you can make more things that can store in file,that's the better.
Anyway,very nive scripr^^
yezizhu is offline   Reply With Quote
Old 06/06/2009, 06:08 PM   #3
eXchainZ-FoReVeR
Huge Clucker
 
Join Date: Jan 2009
Posts: 294
Reputation: 0
Default Re: [FS] File Cars - Vehicle File Storing System!

What can we do with this File Cars?
eXchainZ-FoReVeR is offline   Reply With Quote
Old 06/06/2009, 06:35 PM   #4
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: [FS] File Cars - Vehicle File Storing System!

Quote:
Originally Posted by eXchainZ-FoReVeR
What can we do with this File Cars?
It allows you to very very easily edit cars without all the fuss.

I was too lazy to make a converter to convert your current script created cars but I will do that soon unless someone else does first.


Anyway, this is mainly aimed towards 24/7 servers, with this you can in-game edit cars details, without having to go into the script, find the thing oyu need to change and go in and out of game and such to test colors and get models and whatnot.


Say you want to change the location of a car you can make a command to simply get in the car you want to change and make a /setcarpos command or whatever you want to name it, and have the server get your new location and angle, save it to the file, then respawn the car. Now you have the car saved forever there, without having to restart your server or do much work at all!


On my server I have made commands to respawn, delete, setcolor, setmodel, setcarpos, setcar, etc.

I can do all those things without going through the script and messing with the AddStaticVehicle and such

You can also create cars. I haven't included my commands but they aren't that hard to make. My setcar will cloan a car if you are in one that's already stored as a file and set it to the current location and everything.



One main idea is to keep the carid ingame synced with the fileid.
lavamike is offline   Reply With Quote
Old 07/06/2009, 05:12 AM   #5
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 2,629
Reputation: 410
Default Re: [FS] File Cars - Vehicle File Storing System!

Quote:
Originally Posted by Lavamike
Quote:
Originally Posted by eXchainZ-FoReVeR
What can we do with this File Cars?
It allows you to very very easily edit cars without all the fuss.

I was too lazy to make a converter to convert your current script created cars but I will do that soon unless someone else does first.
I could make a .exe for it? I'm bored out of my mind.
__________________
[HiC]TheKiller is offline   Reply With Quote
Old 07/06/2009, 06:27 AM   #6
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: [FS] File Cars - Vehicle File Storing System!

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by Lavamike
Quote:
Originally Posted by eXchainZ-FoReVeR
What can we do with this File Cars?
It allows you to very very easily edit cars without all the fuss.

I was too lazy to make a converter to convert your current script created cars but I will do that soon unless someone else does first.
I could make a .exe for it? I'm bored out of my mind.
I guess it could be made with a program like that

I once made it (but I deleted it ) with pawn coding

I use AddStaticVehicleEx or whatever it is, I just replaced that with like AddStaticVehicleFileEx and made a stock that took all the information given and formatted it into a .ini file
lavamike is offline   Reply With Quote
Old 07/06/2009, 07:28 AM   #7
Kirkmaster10
Huge Clucker
 
Join Date: Feb 2008
Posts: 213
Reputation: 2
Default Re: [FS] File Cars - Vehicle File Storing System!

To be honest, i dont think editing a car is hard?

Your choice.
Kirkmaster10 is offline   Reply With Quote
Old 07/06/2009, 07:32 AM   #8
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: [FS] File Cars - Vehicle File Storing System!

Quote:
Originally Posted by HarryKirkby
To be honest, i dont think editing a car is hard?

Your choice.
It's not hard, but I prefer this in the long run. As you can permanentlyedit cars from in game.
lavamike is offline   Reply With Quote
Old 29/06/2009, 04:00 PM   #9
Sin-
Big Clucker
 
Join Date: Jan 2009
Posts: 77
Reputation: 0
Default Re: [FS] File Cars - Vehicle File Storing System!

don't work
Sin- is offline   Reply With Quote
Old 30/06/2009, 07:49 AM   #10
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 2,629
Reputation: 410
Default Re: [FS] File Cars - Vehicle File Storing System!

Quote:
Originally Posted by -StanD-
don't work
I think you should be more specific. Does the code not work? Whats wrong?
__________________
[HiC]TheKiller 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
[Linux SQL] libmysqlclient.so.15: cannot open shared object file: No such file nutzkung69 Server Support 14 18/01/2013 10:44 AM
Failed (plugins/whirlpool: cannot open shared object file: No such file or direc shotyoudie Server Support 1 19/03/2010 12:20 AM
loading cars from file xCoder Help Archive 7 15/09/2009 01:28 AM
Saving cars in file?? CAR Help Archive 14 19/08/2009 07:48 AM


All times are GMT. The time now is 07:42 AM.


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