weird car spawning code -
Flatz - 22.12.2013
Hello everyone
I found good RP mod, but there's one problem with gang vehicles, I cant found the way how to add more vehicles to gang base. But for example LVPD, LSPD its easily - easy code.
For gangs have /grespawn or something and vehicles buying system for gangs thats why i dont understand anything.
I looking for help, maybe u guys can cut out gang vehicle buying system or remake them like LSPD, LVPD, FBI and others vehicles.
My RP mod:
http://www.megafileupload.com/en/fil...ate99-pwn.html
I want see something like this
example)
PHP код:
new ballascar[9];
vehicle spawn
PHP код:
//Ballas
ballascar[0] = AddStaticVehicleEx(421,2020.2743,-1142.7402,24.8026,269.5850,233,88,SPAWN_CARS); //
ballascar[1] = AddStaticVehicleEx(421,2028.1865,-1128.8131,24.5909,269.3274,233,88,SPAWN_CARS); //
ballascar[2] =AddStaticVehicleEx(491,2008.90002441,-1142.80004883,25.00000000,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[3] = AddStaticVehicleEx(491,2018.50000000,-1128.80004883,24.89999962,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[4] = AddStaticVehicleEx(491,2033.19995117,-1142.90002441,24.40999985,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[5] = AddStaticVehicleEx(421,2038.2279,-1128.7406,24.2974,269.5583,233,88,SPAWN_CARS); //
ballascar[6] = AddStaticVehicleEx(491,2049.0732,-1128.6858,23.8710,270.0690,233,88,SPAWN_CARS); //
ballascar[7] = AddStaticVehicleEx(541,2012.2783,-1110.6653,25.8537,179.0931,233,88,SPAWN_CARS); //
ballascar[8] = AddStaticVehicleEx(541,2012.1200,-1119.1237,25.8543,178.9539,233,88,SPAWN_CARS); //
Re: weird car spawning code -
TahaAsif12 - 22.12.2013
If you are trying to add more gang vehicles then change:
the value 9 to anything u want (like 20)
Then add more ballascar until u have reached the required value.
For example:
Код:
new ballascar[15];
ballascar[0] = AddStaticVehicleEx(421,2020.2743,-1142.7402,24.8026,269.5850,233,88,SPAWN_CARS); //
ballascar[1] = AddStaticVehicleEx(421,2028.1865,-1128.8131,24.5909,269.3274,233,88,SPAWN_CARS); //
ballascar[2] =AddStaticVehicleEx(491,2008.90002441,-1142.80004883,25.00000000,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[3] = AddStaticVehicleEx(491,2018.50000000,-1128.80004883,24.89999962,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[4] = AddStaticVehicleEx(491,2033.19995117,-1142.90002441,24.40999985,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[5] = AddStaticVehicleEx(421,2038.2279,-1128.7406,24.2974,269.5583,233,88,SPAWN_CARS); //
ballascar[6] = AddStaticVehicleEx(491,2049.0732,-1128.6858,23.8710,270.0690,233,88,SPAWN_CARS); //
ballascar[7] = AddStaticVehicleEx(541,2012.2783,-1110.6653,25.8537,179.0931,233,88,SPAWN_CARS); //
ballascar[8] = AddStaticVehicleEx(541,2012.1200,-1119.1237,25.8543,178.9539,233,88,SPAWN_CARS); //
ballascar[0] = AddStaticVehicleEx(421,2020.2743,-1142.7402,24.8026,269.5850,233,88,SPAWN_CARS); //
ballascar[9] = AddStaticVehicleEx(421,2028.1865,-1128.8131,24.5909,269.3274,233,88,SPAWN_CARS); //
ballascar[10] =AddStaticVehicleEx(491,2008.90002441,-1142.80004883,25.00000000,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[11] = AddStaticVehicleEx(491,2018.50000000,-1128.80004883,24.89999962,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[12] = AddStaticVehicleEx(491,2033.19995117,-1142.90002441,24.40999985,270.00000000,233,88,SPAWN_CARS); //Virgo
ballascar[13] = AddStaticVehicleEx(421,2038.2279,-1128.7406,24.2974,269.5583,233,88,SPAWN_CARS); //
ballascar[14] = AddStaticVehicleEx(491,2049.0732,-1128.6858,23.8710,270.0690,233,88,SPAWN_CARS); //
Hope i helped
Re: weird car spawning code -
Flatz - 22.12.2013
Look at this (how there add/delete/change models more cars):
PHP код:
//Gangs
new gGangCars[5][5];
new Float:gGangCarSlot[5][5][4] = {
{ //Ballas
{1999.3058,-1142.0822,25.2848,268.7538},
{2005.5760,-1129.2053,25.1319,90.2005},
{2013.6470,-1142.8596,24.9801,269.3301},
{1991.7986,-1119.4169,26.8909,270.1606},
{1992.7858,-1130.2555,25.3148,89.7975}
},
{ //Grove
{2481.9072,-1653.3868,13.2185,88.9954},
{2470.3342,-1666.8761,13.1353,298.0269},
{2471.3022,-1670.6198,13.1605,300.6299},
{2472.9883,-1674.5118,13.1705,303.5992},
{2475.1748,-1677.9551,13.1710,304.7424}
},
{ //Aztecas
{2180.7322,-1811.1013,13.3263,268.6125},
{2171.6680,-1811.2706,13.3234,266.4658},
{2190.3081,-1806.5250,13.3276,359.8308},
{2190.3096,-1797.0596,13.3384,358.6747},
{2179.8062,-1780.1222,13.1667,0.0585}
},
{ //Vagos
{2743.0969,-1163.9275,69.1648,0.9617},
{2742.7861,-1156.6842,69.1657,2.1795},
{2742.6472,-1147.4346,69.2406,0.1250},
{2742.6455,-1139.3926,69.3149,0.0081},
{2717.3364,-1141.9403,69.2320,0.6425}
},
{ //Rifa
{2732.2234,-1936.2267,13.3749,87.9128},
{2729.1311,-1972.0330,13.3747,91.0217},
{2728.6475,-1967.9152,13.3783,90.0126},
{2719.4963,-1957.6360,13.2384,358.2563},
{2719.7668,-1944.2588,13.2355,358.5551}
}
};
new gGangAccess[5][4];
new Float:gGangEnter[5][4] = {
{1999.9148,-1114.0554,27.1250,178.4333},//Ballas
{2486.4348,-1644.5369,14.0772,180.0},//Grove
{2185.8760,-1815.2269,13.5469,3.0872},//Aztec
{2756.1636,-1182.8036,69.4034,358.5783},//Vagos
{2736.6423,-1952.6158,13.5469,90.0}//Rifa
};
new gGangDorm[5][4];
new gGangDormLimit[5];
new gGangCode[5];
new Text3D:gGangDormText[5];
new TotalGz[5];
//Настройки для банд
new gGunAmount[7] = {70,180,200,280,300,380,350}; //SD,Deagle,MP5,Shotgun,M4,AK47,Rifle,Sniper Rifle
new gGunID[7] = {23,24,29,25,30,33,31};
new gGangCarModelID[15] = {412,419,422,474,475,482,491,492,517,534,536,566,567,575,576};
new gGangCarColors[5] = {242,86,2,6,53};
new gGangDormLevel[3][3] = {//
{15000,15000,5000},
{6000,6000,4000},
{10000,10000,7000}
};