[Include] [INC] Vehicle Manager
#1

Hi.

Some weeks ago I threw this INC together, I've taken parts from Simon's Debug, 0.2.1 server pack and a command made by DragSta and came up with "Sneaky's Vehicle Manager" - I hardly take any credit for this.. anyways!..

Normally, you would go into debug mode, or join your server and start adding cars with /save, then goto savedpositions.txt, place them in your gamemode etc etc.

This INC allows you to add vehicles to your gamemode easely, without using the 'normal way', now you can simply add vehicles to your gamemode by going in them, parking them and typing /iaddvehicle.

Commands:


/iaddvehicle <add a vehicle to your gamemode, vehicle will save in vehicles.ini in your scriptfiles folder>
/ivehicle <spawn a vehicle modelid/name>
/iload <load vehicles from file>
/ihelp <view some info>

Quote:
Originally Posted by inc setup
Setup:

Put OnVehSysInit() under OnGameModeInit()
Put OnVehSysExit() under OnGameModeExit()

Add:

dcmd(iaddvehicle,11,cmdtext);
dcmd(ivehicle,8,cmdtext);
dcmd(iload,5,cmdtext);
dcmd(ihelp,5,cmdtext);

under OnPlayerCommandText()
Only pastebin, so you will need to copy & paste it into a new txt document, save it as (all files) vehsys.inc and put it inside your includes folder. Also don't forget todo

pawn Code:
#include <vehsys>
// or whatever you named it
(NO MIRRORS PLEASE)

http://pawn.pastebin.com/f5d5dc3d3
Reply
#2

nice ur pastebins deleted
Reply
#3

http://pawn.pastebin.com/f5d5dc3d3

New link
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)