06.06.2009, 04:17
pawn Код:
/* File Cars */
/******************************************************/
/* Script created by Lavamike */
/* Dini created by DracoBlue */
/* Whoever made IsVehicleConnected */
/* If I missed anyone please let me know! */
/******************************************************/
/* File Cars */
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:
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. |