[FilterScript] Vehicle Adder *With Color!* [0.3b]
#1

Vehicle Spawner, Killer, and Saver *With Color Changer!*
I know a lot of people use Dynamic Vehicle Adder but I saw that system and felt like upgrading it, so to speak.

Features:
  • ZCMD Fast command Processing - Credits to Zeex
  • Sscanf 2.0 /Sscanf plugin - Credits to ******
  • Spawn Vehicles By Name (A bit slow at the moment)
  • Change Color of Vehicle by player ID or the one you are in
  • Destroy Car by Vehicle ID or the one you are in
What's Included:
  • zcmd.inc
  • sscanf2.inc
  • sscanf.dll
  • CarAdder.pwn
  • CarAdder.amx
Installation/Usage
Installation can be a bit tricky if you are a basic user so follow these instructions carefully!

First, extract the .rar file to your Server directory. If asked if you want to overwrite zcmd, sscanf2, or sscanf.dll you can say No because it means you already have them.

Second, open your server.cfg and add this somewhere on a new line:
Код:
 plugins sscanf
If you already have other plugins just add sscanf to the end of the line.

Third, you need to choose where you want the vehicles to load. If you want them to load only when you load the filterscript, skip to the next step. If you want to load the vehicles with your gamemode, add the following to your GM:
pawn Код:
#include <zcmd>
#include <sscanf2>
#include "../include/gl_common.inc"

#define CAR_FILE "AddedCars.txt"

public OnGamemodeInit()
{
     LoadStaticVehiclesFromFile(CAR_FILE);
}
If you want it to load with the filterscript, but load each time, add this to your server.cfg:
Код:
 filterscripts CarAdder
Again, if you already have filterscripts just add this to the end of the line.

Thats it! Start your server and if you want to manually load the script do so now.

I hope this works for everyone and you find it useful! It's my first release :O be nice. I am open for suggestions or notifications of bugs.
Reply
#2

Just what i needed. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)