[FilterScript] Devon's Vehicle Commands [YCMD] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Devon's Vehicle Commands [YCMD] (
/showthread.php?tid=329992)
Devon's Vehicle Commands [YCMD] -
zDevon - 31.03.2012
Introduction
This is my first filterscript, weighing in at a mere 145 lines. It is a quick and easy way to get out of having to script vehicle-controlling commands for your beginning roleplay (or whatever else type of server may require these commands) server. I've only been scripting for a little over a month, but I use the commands myself and have found them quite reliable. The commands are scripted in Ycmd and include the following:
- /engine - Turn on and off your vehicle's engine.
- /lock - Lock and unlock your vehicle's doors.
- /lights - Turn on and off your vehicle's lights.
- /hood - Open and close your vehicle's hood/bonnet.
- /trunk - Open and close your vehicle's trunk/boot.
RequirementsInstallation- Download the DVC.rar and YCMD.
- Place the YCMD file in your pawno/includes folder.
- Place DVC.pwn and DVC.amx in your server directory/filterscripts.
- Open your server.cfg and add "DVC" after the word "filterscripts" (one space).
- If you do not already have it, open your script and add ManualVehicleEngineAndLights(); under your OnGameModeInit callback.
- Run your server, and try out the commands!
Media
A screen showing what you will get on use of /engine. The same applies for the other commands, though obviously with the respective text:
http://i.imgur.com/n7Xhp.png
Changelog- Version 1.0 - Initial Release
Known Bugs (1)- /lock currently only works when inside of a vehicle. Using the command and exiting the vehicle would cause yourself to be locked out of the vehicle.
Download- MediaFire: http://www.mediafire.com/?a585lo84kjjqdai
- Pastebin: http://pastebin.com/yep1WMj0
Enjoy! Please post any feedback you may have, criticism included!
Re: Devon's Vehicle Commands [YCMD] -
Luis- - 31.03.2012
Hi Devon, it's Luis from RRP. This is a pretty good filterscript, good information on how to get it working. Good job!
Re: Devon's Vehicle Commands [YCMD] -
zDevon - 31.03.2012
Quote:
Originally Posted by -Luis
Hi Devon, it's Luis from RRP. This is a pretty good filterscript, good information on how to get it working. Good job!
|
Hi Luis! It's my first, thanks a lot.