[FilterScript] Devon's Vehicle Commands [YCMD]
#1

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
  1. Download the DVC.rar and YCMD.
  2. Place the YCMD file in your pawno/includes folder.
  3. Place DVC.pwn and DVC.amx in your server directory/filterscripts.
  4. Open your server.cfg and add "DVC" after the word "filterscripts" (one space).
  5. If you do not already have it, open your script and add ManualVehicleEngineAndLights(); under your OnGameModeInit callback.
  6. 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
  1. MediaFire: http://www.mediafire.com/?a585lo84kjjqdai
  2. Pastebin: http://pastebin.com/yep1WMj0
Enjoy! Please post any feedback you may have, criticism included!
Reply
#2

Hi Devon, it's Luis from RRP. This is a pretty good filterscript, good information on how to get it working. Good job!
Reply
#3

Quote:
Originally Posted by -Luis
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)