[REL] vDialog - Vehicle spawning dialog - 0.2a -
Donny_k - 18.09.2009
About
It's a tool for spawning vehicles ingame using a dialog, it's broken into catagories like Airplanes and Sports etc, each one is the same as you will find it on the wiki under the same catagory etc.
Usage
Just add the code to a filterscript and compile it, name it whatever you like, I've named it 'vdialog.pwn' but that doesn't matter, a compiled version is also available. Add the name of your filterscript to your server cfg and while ingame type - '/vdialog' to activate the dialog, you can then scroll and select the one you want from whichever catagory which will spawn the vehicle at your position and place you inside it (by default).
Download
Source ->
Pastebin
Filterscript source -> (
pwn) - (
amx)(old rc compile)
Screens
Notes
Dilaog id: 3434 to 3449
Amx will always be compiled with the latest server build although the screenshots are from the previous builds.
Please report bugs if you find any - thanks to Abhishek for reporting the "Sparrow" bug.
For a list of vehicles names/models and information go
here.
Update log
In 0.1b I've added a compile option for entering vehicles you create, by default it is now switched on.
In 0.1c I've added a "Back" option to each dialog list so you can go back to the main list (catagory).
Fixed some planes spawning in the floor, I've added two units to the z axis.
In 0.1d I've included a compile option for spawn messages and fixed some key issues (thanks ******, I've not read that key page before).
In 0.1e I've rewritten most of the script, optimised it so it's easier to read, added a compile option to ignore virtual worlds and now the vehicles are linked to the players interior when spawned.
In 0.1f I've added a few more compile options/configs, added vehicle activation for the dialog with a compile option and an extra spawn message, the vehicle is now created directly at your position also and the angle is fixed (no longer + 90).
In 0.2a I've removed key activation and made it command activated only (/vdialog), vehicles now have a default 'respawn_delay' of ten minutes instead of around 18 hours (lmao, my bad!!) and vehicles which are created by the dialog (only the dialog) will by default be destroyed when they respawn (requested) but there is a compile option to control this.
Re: [REL] vDialog - Vehicle spawning dialog -
Stas92 - 18.09.2009
Don't tested but looks bugless and usefull.
Re: [REL] vDialog - Vehicle spawning dialog -
Donny_k - 18.09.2009
Quote:
Originally Posted by Stas92
Don't tested but looks bugless and usefull.
|
Thankyou.
Re: [REL] vDialog - Vehicle spawning dialog -
shady91 - 18.09.2009
wow nice man i made one like this for my server aswell nice to see someone else thought of it to
Re: [REL] vDialog - Vehicle spawning dialog -
V1ceC1ty - 18.09.2009
Well done, Must have taken awhile.
Re: [REL] vDialog - Vehicle spawning dialog -
[IB]Scorcher - 18.09.2009
Very nice
Re: [REL] vDialog - Vehicle spawning dialog -
Donny_k - 18.09.2009
Thankyou guys.
@V1ceC1ty:
About half an hour I think, matching up the id with the name was the hardest part. The majority of the code was just copy & paste then correct the model array but yes it did seem to take a while for a small script.
Re: [REL] vDialog - Vehicle spawning dialog -
Mach37 - 18.09.2009
Nice and useful
Re: [REL] vDialog - Vehicle spawning dialog -
madman227 - 18.09.2009
I think its a very good althought ive added a vehicle destroy system and link Vehicle To Interior now its perfect for my server.
Thanks MadMan
Re: [REL] vDialog - Vehicle spawning dialog -
V1ceC1ty - 18.09.2009
didnt take long, i thought it would have taken hours adding them all
good work