Need Vehicle positions for my Lan rp server
#1

Well i am not a well scripter but umm, can some one give me some new cars for sf and lv from /scriptfiles/cfg/cars.cfg ? i need them because i dont know how to add them my self. Using GTA RP game mode (unmodified!)
Reply
#2

c mon guys i need them! my server needs cars!
Reply
#3

wait what, u need cars?
umm just use samp debug or a samp server, and type /save when in a car
Reply
#4

ok , like this:

i go into a Toursimo -> drive to sf -> type /save -> and i added a new car?
Reply
#5

Yes, but now just go to your saved positions file and copy it to your pawno.
Reply
#6

the /save command will add a (script-)line to the file "Grand Theft Auto San Andreas\savedpositions.txt"...
you WILL find this file there if it didnt already exist there, so dont worry about fiddling around with any texteditor...
if you are on foot, and type "/save EmeraldIsleFront", then this will be created:
Code:
AddPlayerClass(187,2127.6599,2363.9883,10.8203,242.7945,0,0,0,0,0,0); // EmeraldIsleFront
... the playerclass 187 will be of coz differ from this one here, the weapons (last 6 numbers for weaponid and ammo each) aswell.

if youre in any (sultan here) vehicle and type "/save EmeraldIsleFrontSultan":
Code:
AddStaticVehicle(560,2114.6313,2355.2100,10.3768,112.8766,1,1); // EmeraldIsleFrontSultan
...will be added. the colors (,1,1) are both white, as you will find them applied to most vehicles in the upcoming FS ^^

all you need to do, is to copy-n-paste those lines into your gamemode below the OnGameModeInit(), OR
into FS below OnFilterScriptInit()

i prefer to add cars into a FS, so i can modify it while playing, i know, there are better solutions, but a FS always can be used by all other scripters like you not using some strange systems, so iam glad i can give you a simple, but working example:
Code:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define CarsMaximum 50
new CarsUsed=0;
new Veh[CarsMaximum];
public OnFilterScriptInit()
{
	new c=1;
	//VEHICLES
		//LOS SANTOS
			//Highest SkyScraper
	Veh[c]=AddStaticVehicle(488,1554.9250,-1366.0380,329.6352,1.0638,1,1);c++; // LS_SkyScraper1Roof_SanMaverick1
	Veh[c]=AddStaticVehicle(488,1535.4080,-1365.0869,329.6288,359.8693,1,1);c++; // LS_SkyScraper1Roof_SanMaverick2
	Veh[c]=AddStaticVehicle(487,1528.9988,-1357.9536,329.6360,278.4571,1,1);c++; // LS_SkyScraper1Roof_Maverick1
	Veh[c]=AddStaticVehicle(487,1530.7854,-1349.0416,329.6349,235.6700,1,1);c++; // LS_SkyScraper1Roof_Maverick2
	Veh[c]=AddStaticVehicle(487,1557.7360,-1349.1145,329.6372,115.9586,1,1);c++; // LS_SkyScraper1Roof_Maverick3
	Veh[c]=AddStaticVehicle(487,1559.9283,-1358.0702,329.6335,82.0040,1,1);c++; // LS_SkyScraper1Roof_Maverick4
	Veh[c]=AddStaticVehicle(497,1549.9564,-1342.6866,329.6367,157.9909,1,1);c++; // LS_SkyScraper1Roof_CopMaverick1
	Veh[c]=AddStaticVehicle(497,1539.5828,-1342.8000,329.6396,204.6208,1,1);c++; // LS_SkyScraper1Roof_CopMaverick2
		//LAS VENTURAS
		  //Police Department Garage
				//Cop Cars
	Veh[c]=AddStaticVehicle(598,2282.2095,2459.1992,10.5652,181.3152,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_1
	Veh[c]=AddStaticVehicle(598,2277.9392,2459.1672,10.5666,179.5653,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_2
	Veh[c]=AddStaticVehicle(598,2273.5657,2459.1255,10.5665,179.5133,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_3
	Veh[c]=AddStaticVehicle(598,2269.0244,2459.0950,10.5666,179.8454,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_4
	Veh[c]=AddStaticVehicle(598,2282.1626,2476.8855,10.5672,180.5977,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_5
	Veh[c]=AddStaticVehicle(598,2277.7712,2476.8875,10.5669,179.6667,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_6
	Veh[c]=AddStaticVehicle(598,2273.4702,2476.8845,10.5668,179.6535,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_7
	Veh[c]=AddStaticVehicle(598,2269.1008,2476.8530,10.5667,180.2442,0,1);c++; // LV_PD_Garage1st_Floor_Police_Car_8
		    //Bikes (HPV)
	Veh[c]=AddStaticVehicle(523,2295.6235,2456.8401,10.3875,49.3894,1,1);c++; // LV_PD_Garage1st_Floor_HPV1
	Veh[c]=AddStaticVehicle(523,2295.7444,2459.3193,10.3901,47.3361,1,1);c++; // LV_PD_Garage1st_Floor_HPV2
	Veh[c]=AddStaticVehicle(523,2295.7351,2461.6682,10.3889,48.9064,1,1);c++; // LV_PD_Garage1st_Floor_HPV3
	Veh[c]=AddStaticVehicle(523,2295.7197,2464.0151,10.3889,49.4121,1,1);c++; // LV_PD_Garage1st_Floor_HPV4
			//Verdant Meadows
	Veh[c]=AddStaticVehicle(476,389.2494,2439.0781,17.2092,312.8261,16,6);c++; // VM_Hangar_Rustler1
	Veh[c]=AddStaticVehicle(476,420.0579,2439.4749,17.2036,45.8535,16,6);c++; // VM_Hangar_Rustler2
	Veh[c]=AddStaticVehicle(487,344.8171,2534.3115,16.9418,271.7185,1,1);c++; // VM_Maverick1
	Veh[c]=AddStaticVehicle(487,345.2932,2546.1318,16.9368,269.5476,1,1);c++; // VM_Maverick2
	Veh[c]=AddStaticVehicle(497,380.5576,2534.4417,16.7328,89.3739,0,7);c++; // VM_CopMaverick1
	Veh[c]=AddStaticVehicle(497,380.5282,2546.4324,16.7165,90.9907,0,7);c++; // VM_CopMaverick2
	Veh[c]=AddStaticVehicle(425,365.2290,2537.2068,17.2161,179.4791,1,1);c++; // VM_Hunter
	Veh[c]=AddStaticVehicle(513,268.5141,2533.3757,17.2894,225.4718,0,3);c++; // VM_StuntPlane1
	Veh[c]=AddStaticVehicle(513,256.5274,2532.7163,17.2869,220.3992,0,6);c++; // VM_StuntPlane2
	Veh[c]=AddStaticVehicle(513,245.2784,2532.2852,17.2881,218.3797,0,7);c++; // VM_StuntPlane3
			//Hunter Quarry
	Veh[c]=AddStaticVehicle(515,823.6879,868.4892,13.3407,292.0724,1,1);c++; // HunterQuarryTruck
	Veh[c]=AddStaticVehicle(435,814.8445,864.9974,12.6759,289.5405,1,1);c++; // HunterQuarryTrailer
	CarsUsed=c;
	return 1;
}
public OnFilterScriptExit()
{
  for(new c=1;c<CarsUsed;c++)
  {
    DestroyVehicle(Veh[c]);
  }
  return 1;
}
#endif
btw, each line is using an array to store the cars in, that way to modify each line shouldnt be hard, the c++; behind each line will count up the variable c, which is used to count the "real" used cars.. i guess thats all, hf adding tons of cars ^^
Reply
#7

yay ^^ thanks man but umm... any lists of color ids?

and another question (i dont want to make a topic for this):

how do i spawn new propertys? (using GTARP source)
Reply
#8

https://sampwiki.blast.hk/wiki/ColorID
erm. spawning (creation of) properties in-game?
well, my system is bugged, i wont show you this, there are plenty of filterscripts/includes around here too ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)