Problem With Vehicles
#1

Well i made a great LSFMD system for the ZGaming gm and some cars are restricted for LSFMD but some are not im not sure why

CODES:::
Код:
	//LSFMD Vehicles
	FacInfo[5][fCars][1] = CreateVehicle(407, 1806.7339, -1763.9100, 13.7821, 272.0407, -1, -1, 100);
	FacInfo[5][fCars][2] = CreateVehicle(407, 1806.7289, -1755.0964, 13.7821, 272.0407, -1, -1, 100);
	FacInfo[5][fCars][3] = CreateVehicle(407, 1806.8380, -1746.7719, 13.7821, 272.0407, -1, -1, 100);
	FacInfo[5][fCars][4] = CreateVehicle(407, 1778.4980, -1764.1851, 13.7821, 453.6007, -1, -1, 100);
	FacInfo[5][fCars][5] = CreateVehicle(407, 1777.5295, -1755.5381, 13.7821, 453.6007, -1, -1, 100);
	FacInfo[5][fCars][6] = CreateVehicle(407, 1777.2538, -1746.4625, 13.7821, 453.6007, -1, -1, 100);
	FacInfo[5][fCars][7] = CreateVehicle(416, 1762.7291, -1756.4067, 13.6456, 177.6000, -1, -1, 100);
	FacInfo[5][fCars][8] = CreateVehicle(416, 1758.2643, -1756.2045, 13.6456, 177.4200, -1, -1, 100);
	FacInfo[5][fCars][9] = CreateVehicle(416, 1762.8743, -1748.9587, 13.6456, 177.6000, -1, -1, 100);
	FacInfo[5][fCars][10] = CreateVehicle(416, 1758.3555, -1748.5374, 13.6456, 177.4200, -1, -1, 100);
 	FacInfo[5][fCars][11] = CreateVehicle(416, 1750.6677, -1749.0270, 13.6456, 181.8000, -1, -1, 100);
	FacInfo[5][fCars][12] = CreateVehicle(416, 1750.8175, -1756.9426, 13.6456, 181.8000, -1, -1, 100);
	FacInfo[5][fCars][13] = CreateVehicle(563, 1772.9812, -1804.8644, 14.3068, 0.0000, -1, -1, 100);
	FacInfo[5][fCars][14] = CreateVehicle(563, 1757.4561, -1802.5206, 14.3028, 0.1000, -1, -1, 100);
MORE CODES:::
Код:
else if(IsLSFMDVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 5)
	    {
		    new Float:pos[3];
		    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
		    SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
		    SendClientMessage(playerid, COLOR_ORANGE, " This vehicle is restricted to the LSFMD faction.");
	    }
MORE CODES:::
Reply
#2

Arrays starts from 0, so it should be 0 - 13
Reply
#3

Ok FIxed it like u said now its this

CODE:
Код:
	FacInfo[5][fCars][0] = CreateVehicle(407,1806.7339,-1763.9100,13.7821,272.0407,3,1,1200);
	FacInfo[5][fCars][1] = CreateVehicle(407,1806.7289,-1755.0964,13.7821,272.0407,3,1,1200);
	FacInfo[5][fCars][2] = CreateVehicle(407,1806.8380,-1746.7719,13.7821,272.0407,3,1,1200);
	FacInfo[5][fCars][3] = CreateVehicle(407,1778.4980,-1764.1851,13.7821,453.6007,3,1,1200);
	FacInfo[5][fCars][4] = CreateVehicle(407,1777.5295,-1755.5381,13.7821,453.6007,3,1,1200);
	FacInfo[5][fCars][5] = CreateVehicle(407,1777.2538,-1746.4625,13.7821,453.6007,3,1,1200);
	FacInfo[5][fCars][6] = CreateVehicle(416,1762.7291,-1756.4067,13.6456,177.6000,3,1,1200);
	FacInfo[5][fCars][7] = CreateVehicle(416,1758.2643,-1756.2045,13.6456,177.4200,3,1,1200);
	FacInfo[5][fCars][8] = CreateVehicle(416,1762.8743,-1748.9587,13.6456,177.6000,3,1,1200);
	FacInfo[5][fCars][9] = CreateVehicle(416,1758.3555,-1748.5374,13.6456,177.4200,3,1,1200);
 	FacInfo[5][fCars][10] = CreateVehicle(416,1750.6677,-1749.0270,13.6456,181.8000,3,1,1200);
	FacInfo[5][fCars][11] = CreateVehicle(416,1750.8175,-1756.9426,13.6456,181.8000,3,1,1200);
	FacInfo[5][fCars][12] = CreateVehicle(563,1772.9812,-1804.8644,14.3068,0.0000,3,1,1200);
	FacInfo[5][fCars][13] = CreateVehicle(563,1757.4561,-1802.5206,14.3028,0.1000,3,1,1200);
BUT ITS STILL FUCKED UP i can enter some LSFMD vehicles without being LSFMD but i cant enter some of them
Reply
#4

Show me the code IsLSFMDVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)