SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 31/03/2012, 01:09 AM   #1
zDevon
Huge Clucker
 
Join Date: Jan 2012
Location: Charlotte, NC (USA)
Posts: 321
Reputation: 31
Default Devon's Vehicle Commands [YCMD]

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!
zDevon is offline   Reply With Quote
Old 31/03/2012, 01:43 AM   #2
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: Wigan, England
Posts: 2,898
Reputation: 220
Default Re: Devon's Vehicle Commands [YCMD]

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

SA-MP Server
Luis' Fun Box - Coming Soon (PM me for more information)
---------------------------------
YouTube
YouTube | Twitter
Videos uploaded daily

Luis- is offline   Reply With Quote
Old 31/03/2012, 01:47 AM   #3
zDevon
Huge Clucker
 
Join Date: Jan 2012
Location: Charlotte, NC (USA)
Posts: 321
Reputation: 31
Default Re: Devon's Vehicle Commands [YCMD]

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.
zDevon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
YCMD help :$ FireCat Scripting Help 14 13/12/2011 08:00 PM
Commands Ycmd TheBluec0de Scripting Help 17 13/09/2011 12:39 PM
[Tutorial] Ehab1911's Vehicle Controling commands [Helpful for some people] Ehab1911 Tutorials 3 12/12/2010 06:38 PM
Build, vehicle tools ? Commands ? [swe]Busk Help Archive 1 26/04/2009 01:39 AM


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.