[FilterScript] [FS]CarExport-Game [V 1.2] <<<< Bugfix
#1

[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;
to '1'
You can add custom vehicles at OnFilterScriptInit using:
Код:
AddExportVehicle(modelID, x, y, z, angle, color1, color2);
Note:
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<=
Reply
#2

lol nice release i will try it
Reply
#3

Looks nice..

lmao @ Command doesn't exist (Lekker puh :P)
Reply
#4

nice work. too many scripts a week :P
Reply
#5

It looks nice, i will use it in my server thx sandra
Reply
#6

looks nice, gonna test. Also gonna rip apart the code to find out HOW to put a arrow on top of a car
Reply
#7

Thank you all

Quote:
Originally Posted by blewert
looks nice, gonna test. Also gonna rip apart the code to find out HOW to put a arrow on top of a car
Код:
SetVehicleParamsForPlayer(playerid, vehicleID, arrow, lock);
Reply
#8

ahh thanks sandra

really helped me a lot now
Reply
#9

Awsome stuff!!! I really like this one.!
Reply
#10

Cool!
Reply
#11

Want a mirror?
Reply
#12

Nice work.

May I suggest using OnPlayerStateChange instead of OnPlayerExitVehicle though... OnPlayerExitVehicle isnt fully accurate, theres no support if you fall of bikes.
Reply
#13

Quote:
Originally Posted by ЧРrаgуnЧ
Want a mirror?
Sure

Quote:
Originally Posted by Pro
Nice work.

May I suggest using OnPlayerStateChange instead of OnPlayerExitVehicle though... OnPlayerExitVehicle isnt fully accurate, theres no support if you fall of bikes.
I didn't think about that :P I will fix that.
Reply
#14

Ok Great
Reply
#15

Done :P

Please redownload!
Reply
#16

Reply
#17

Quote:
Originally Posted by ЧРrаgуnЧ
Thank you very much!
Reply
#18

very nice, but only 1 prob, i don't see the checkpoint, when i re- enter my vehicle, i suddenly see it (if i am near it, or else i won\'t )

but still 9.5/10

Reply
#19

Another bug: when you use a tp while the yellow icon is on your map it will disappear, and you won't be able to know which vehicle it is.
Reply
#20

Quote:
Originally Posted by Royal_Flush
very nice, but only 1 prob, i don't see the checkpoint, when i re- enter my vehicle, i suddenly see it (if i am near it, or else i won\'t )
I think it's caused by a checkpoint-streamer in your own gamemode

Quote:
Originally Posted by Royal_Flush
Another bug: when you use a tp while the yellow icon is on your map it will disappear, and you won't be able to know which vehicle it is.
I tested this FS with several gamemodes, but the marker never disapeared when i teleport.
Check the code in your own 40.000-lines Nitro's Freeroam script.
Maybe the problem is there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)