06.03.2008, 06:11
[FS]CarExport
What is it?This is a filterscript that contains a CarExport-minigame.
It is highly customizable for rcon-admin.
Your Goal:
Regulary a random car from your gamemode will picked out, and a marker will appear above it.
The players will have to take this car to a specified location somewhere in San Andreas (Default behind WangCars (SF)).
The player who enters the checkpoint first, wins and will recieve the value of the car. (random and customizable).
How does it work:
- When a new game starts, the filterscript will make a loop and pick a random vehicle from your gamemode.
- The FS checks if the modelID of that vehicle is in the 'ExportableVehicles'-array.
- If no, a new random vehicle will be picked out.
- If yes, the FS checks if the picked vehicle is empty, if no, a new random vehicle will get picked out.
- If yes, a yellow marker will appear above that vehicle for all players.
- A random value will be calculated (Between the MinCarValue and MaxCarValue you have configured)
- If a player enters the vehicle, a checkpoint will appear that indicated the Export-location.
- If the player enters the checkpoint with the car within the timelimit, the player will earn the value of that vehicle.
- A new timer will start which will start a new game, with a new vehicle.
Instead of using all vehicles, you can also let the FS chose only custom vehicles.
Therefore you have to change the setting
Код:
new UseCustomVehicles = 0;
You can add custom vehicles at OnFilterScriptInit using:
Код:
AddExportVehicle(modelID, x, y, z, angle, color1, color2);
This Filterscript won't work if you have that option set to '1' but you don't have used AddExportVehicle.
Configuration:
Ingame you can change some settings of this game using a menu.
You can change:
- Minimum value of a export-car
- Maximum value of an export-car
- The time between two games
- Maximum duration of one game (Roundtime)
- Location of export-place
- Size of the checkpoint
- Do you want to save the settings in a file, yes or no
- Do you want to use custom vehicles, or do you want to use all vehicles in the server
- If you're going to use all vehicles in the server, you can add/remove certain model-id's from the array to prevent a non-accesable vehicle (like trailers), boats or planes will get chosen.
Commands:- /settings (Rcon-admin)
Screens:
Settings-Menu:
Download:
[V 1.2]
- CarExport.rar [V 1.2]
(Includes: pwn & amx file + dini.inc & dutils.inc)
[V 1.1]
[V 1.0]
Update-Log:
[V 1.1]
- Bug: If players fall of bike, OnPlayerExitVehicle won't get called: Fixed.
[V 1.2]
- Bug: If car gets destroyed during game, the game won't restart: Fixed
- Bug: If car falls in water during game, the checkpoint won't disappear: Fixed
Other:
Credits:
- Royal_Flush (Rksss): Idea (he asked me to make something like this )
- DracoBlue: Dini&Dutils
- =>Sandra<=: Rest of this FS
I know my English sucks, but i hope you understand all this information.
If you have any questions, suggestions or did you find a bug, please post them here.
If you're going to use this, please give me credits
I hope you will enjoy this CarExport-game
=>Sandra<=