[Include] [INC] Vehicle Manager - 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)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Vehicle Manager (
/showthread.php?tid=60698)
[INC] Vehicle Manager -
-Sneaky- - 06.01.2009
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
Re: [INC] Vehicle Manager -
jlane9909 - 12.01.2009
nice ur pastebins deleted
Re: [INC] Vehicle Manager -
-Sneaky- - 12.01.2009
http://pawn.pastebin.com/f5d5dc3d3
New link