[REL] vDialog - Vehicle spawning dialog - 0.2a
#1

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.
Reply
#2

Don't tested but looks bugless and usefull.
Reply
#3

Quote:
Originally Posted by Stas92
Don't tested but looks bugless and usefull.
Thankyou.
Reply
#4

wow nice man i made one like this for my server aswell nice to see someone else thought of it to
Reply
#5

Well done, Must have taken awhile.
Reply
#6

Very nice
Reply
#7

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.
Reply
#8

Nice and useful
Reply
#9

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
Reply
#10

didnt take long, i thought it would have taken hours adding them all good work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)