08.11.2011, 18:08
(
Последний раз редактировалось LiamM; 08.11.2011 в 21:24.
)
This is my first filterscript so please do not flame in your comments!
I apologize if someone else has already made a filterscript like this but if not, here it is! Very simple and very basic but it doe's what its meant too, enjoy! Any bugs found please leave a comment!
Car Saver 1.0 by LiamM
I know quite a few people that at one point and maybe still do use /save to add vehicles to there gamemode, simply by getting in a car and typing /save. Opening up the txt document and copying and pasting the code onto the OnGameModeInit. Here is an example of the code used
Many people like to do it this way as they can see and park precisely where they want the vehicle to be, but there is a downside to this method. Myself and probably others like me prefer to use AddStaticVehicleEx so they can add a respawn delay timer at the end! Which has to be done manually when doing /save.
So I thought i'd script a quick filterscript that doe's just that! So instead of this code appearing
This Code Appears
It is a very BASIC AND SIMPLE filterscript that most people would no doubt be able to make, but this saves you having to make it! I began using this for my own server but thought i'd finally get a bit of help fixing a few bugs that I dealt with and release it to the public!
Here are a couple of notes to do with the filterscript before downloading!
Click here for the ZCMD Pawn Include required to use this!
Download CarSaver 1.0!
More Updates coming soon, things such as being able to choose the car color so it isn't an out of sync color! Feel free to do it your self if you know how too!
The purpose of this script is to easily copy and paste added vehicles into your script without all the hassle.
I'd like to Thank:
Wesley221 for helping repair a old bug to do with saving the files to the txt document.
I know quite a few people that at one point and maybe still do use /save to add vehicles to there gamemode, simply by getting in a car and typing /save. Opening up the txt document and copying and pasting the code onto the OnGameModeInit. Here is an example of the code used
pawn Код:
AddStaticVehicle(562, 2339.2990, 2048.4421, 10.3351, 179.4682, -1, -1);
So I thought i'd script a quick filterscript that doe's just that! So instead of this code appearing
pawn Код:
AddStaticVehicle(562, 2339.2990, 2048.4421, 10.3351, 179.4682, -1, -1);
pawn Код:
AddStaticVehicleEx(562, 2339.2990, 2048.4421, 10.3351, 179.4682, -1, -1, 1000);
Here are a couple of notes to do with the filterscript before downloading!
- The default respawn limit is set to 1000 (1 Second) it can be changed by editing it in the Pwn file if you know what you are doing
- It requires the ZCMD include! The link will be below, ZCMD is used for the command you type to save the vehicles pos
- You will need to add a directory called "SavedVehicles" without the speech marks! It is also Cap sensitive I believe
- The command to save a vehicles position when in a vehicle is /saveveh
Click here for the ZCMD Pawn Include required to use this!
Download CarSaver 1.0!
More Updates coming soon, things such as being able to choose the car color so it isn't an out of sync color! Feel free to do it your self if you know how too!
The purpose of this script is to easily copy and paste added vehicles into your script without all the hassle.
I'd like to Thank:
Wesley221 for helping repair a old bug to do with saving the files to the txt document.
I apologize if someone else has already made a filterscript like this but if not, here it is! Very simple and very basic but it doe's what its meant too, enjoy! Any bugs found please leave a comment!