27.06.2014, 08:52
(
Последний раз редактировалось AiRaLoKa; 28.06.2014 в 01:14.
)
hi all, i got a gangwar system where it have 51 vehicle inside it. Inside of the gangwar minigame(virtual world id 1), the vehicle loaded perfectly. but in the normal mode(virtual world id 0) all of this vehicle is stuck at coordinate 0 (on blueberry accress) and it's make all of player that near this location got a huge lag :/
this is my vehicle code
hope there is somebody can help
EDIT: nevermind. i got a fix
this is my vehicle code
pawn Код:
//
new GangWarVehicle[51];
GangWarVehicle[0] = AddStaticVehicleEx(468,2517.0923,-1665.5867,13.9631,280.3533,86,86,60); //Grove Sanchez
GangWarVehicle[1] = AddStaticVehicleEx(468,2509.4646,-1686.4004,13.5660,285.4393,86,86,60); //Grove Sanchez
GangWarVehicle[2] = AddStaticVehicleEx(445,2473.6372,-1697.8290,13.5177,1.0866,86,86,60);
GangWarVehicle[3] = AddStaticVehicleEx(575,2443.3516,-1642.4734,13.4571,183.4249,86,86,60);
GangWarVehicle[4] = AddStaticVehicleEx(481,2469.1960,-1679.3096,13.5078,34.6136,86,86,60);
GangWarVehicle[5] = AddStaticVehicleEx(549,2465.5662,-1659.4576,13.2820,173.0849,86,86,60);
GangWarVehicle[6] = AddStaticVehicleEx(571,2046.7430,-1153.0674,23.6713,149.9042,149,149,60);//Ballas Kart
GangWarVehicle[7] = AddStaticVehicleEx(482,2051.0967,-1104.9609,24.4637,261.7653,149,149,60);//Ballas Burrito
GangWarVehicle[8] = AddStaticVehicleEx(426,2088.4131,-1140.9553,25.5337,93.6587,149,149,60); //Ballas Premier
GangWarVehicle[9] = AddStaticVehicleEx(468,2085.0549,-1169.7894,24.7436,101.0472,149,149,60);//Ballas Sanchez
GangWarVehicle[10] = AddStaticVehicleEx(462,1731.2743,-2118.4089,13.5469,273.3441,2,2,60); //Aztecas Faggio
GangWarVehicle[11] = AddStaticVehicleEx(426,1772.6855,-2096.9241,13.5469,180.6199,2,2,60); //Aztecas Premier
GangWarVehicle[12] = AddStaticVehicleEx(481,1781.0490,-2120.1587,13.5543,36.9153,2,2,60); //Aztecas BMX
GangWarVehicle[13] = AddStaticVehicleEx(468,1772.4618,-2126.6189,13.5469,1.3401,2,2,60); //Aztecas Sanchez
GangWarVehicle[14] = AddStaticVehicleEx(467,1744.8762,-2127.0918,13.5469,1.0501,2,2,60); //Aztecas Sanchez
GangWarVehicle[15] = AddStaticVehicleEx(548,2796.4939,-2533.1824,15.6290,35.1404,123,123,60); //Army helicopter
GangWarVehicle[16] = AddStaticVehicleEx(482,2743.5833,-2432.0427,13.6558,271.8728,123,123,60); //Army Burrito
GangWarVehicle[17] = AddStaticVehicleEx(433,2783.7788,-2455.1973,13.6346,92.0178,123,123,60); //Army Barracks
GangWarVehicle[18] = AddStaticVehicleEx(470,2781.1699,-2494.1875,13.6584,94.1713,123,123,60); //Army Patriot
GangWarVehicle[19] = AddStaticVehicleEx(470,2779.3494,-2417.6169,13.6357,93.0206,123,123,60); //Army Patriot 2
GangWarVehicle[20] = AddStaticVehicleEx(509,1513.3544,-1459.0214,9.5000,61.9242,144,144,60); //Homeless Bike
GangWarVehicle[21] = AddStaticVehicleEx(509,1524.8473,-1466.0374,9.5000,262.4595,144,144,60); //Homeless Bike 2
GangWarVehicle[22] = AddStaticVehicleEx(509,1531.6079,-1479.0797,9.5000,212.6390,144,144,60); //Homeless Bike 3
GangWarVehicle[23] = AddStaticVehicleEx(605,1546.2607,-1447.3174,13.5469,91.9787,144,144,60); //Homeless Sadler Shit
GangWarVehicle[24] = AddStaticVehicleEx(605,1518.1926,-1446.7938,13.5391,88.2186,144,144,60); //Homeless Sadler Shit 2
GangWarVehicle[25] = AddStaticVehicleEx(468,2052.1475,-1120.8099,24.6144,185.0834,149,149,60); //Ballas Sanchez 2
GangWarVehicle[26] = AddStaticVehicleEx(463,2229.6780,-1156.0314,25.8289,99.1160,6,6,60); //Vagos Harley
GangWarVehicle[27] = AddStaticVehicleEx(402,2206.6548,-1160.7007,25.7288,270.8234,6,6,60); //Vagos Buffalo
GangWarVehicle[28] = AddStaticVehicleEx(462,2204.7893,-1177.2104,25.7266,278.3444,6,6,60); //Vagos Faggio
GangWarVehicle[29] = AddStaticVehicleEx(467,2216.9783,-1166.2582,25.7266,277.5309,6,6,60); //Vagos Oceanic
GangWarVehicle[30] = AddStaticVehicleEx(426,2228.9045,-1174.0719,25.7266,93.2892,6,6,60); //Vagos Premier
GangWarVehicle[31] = AddStaticVehicleEx(409,1244.9901,-2038.0645,59.8554,359.9445,0,0,60); //Russia Mafia Stretch
GangWarVehicle[32] = AddStaticVehicleEx(603,1275.8123,-2043.6215,59.0516,86.7152,0,0,60); //Russia Mafia Phoenix
GangWarVehicle[33] = AddStaticVehicleEx(589,1273.6080,-2010.8278,59.0310,86.0885,0,0,60); //Russia Mafia Club
GangWarVehicle[34] = AddStaticVehicleEx(522,1245.0911,-2009.8823,59.8460,84.5218,0,0,60); //Russia Mafia NRG
GangWarVehicle[35] = AddStaticVehicleEx(487,1116.9241,-2052.8875,74.4297,353.2542,0,0,60); //Russia Mafia Maverick
GangWarVehicle[36] = AddStaticVehicleEx(489,1087.8462,-2089.3826,63.0096,11.3809,0,0,60); //Russia Mafia Rancher
GangWarVehicle[37] = AddStaticVehicleEx(427,1530.5262,-1644.8586,5.8906,163.2572,0,1,60); //Police
GangWarVehicle[38] = AddStaticVehicleEx(596,1538.3192,-1645.1719,5.8906,186.1309,0,1,60);
GangWarVehicle[39] = AddStaticVehicleEx(601,1544.4866,-1655.0143,5.8906,78.8249,0,1,60);
GangWarVehicle[40] = AddStaticVehicleEx(528,1545.1759,-1663.1255,5.8906,93.6966,0,1,60);
GangWarVehicle[41] = AddStaticVehicleEx(596,1543.0840,-1671.7590,5.8906,272.6117,0,1,60); //LSPD
GangWarVehicle[42] = AddStaticVehicleEx(490,1544.6141,-1680.0588,5.8906,78.9698,0,0,60); //RAncher
GangWarVehicle[43] = AddStaticVehicleEx(596,1529.4587,-1683.5077,5.8906,271.8166,0,1,60); //LSPD
GangWarVehicle[44] = AddStaticVehicleEx(490,1559.1385,-1712.0742,5.8906,356.2491,0,0,60); //Rancher
GangWarVehicle[45] = AddStaticVehicleEx(523,1586.2781,-1667.4971,5.8916,281.2167,0,1,60); //HPV
GangWarVehicle[46] = AddStaticVehicleEx(523,1585.5500,-1671.9799,5.8922,277.3117,0,1,60); //HPV
GangWarVehicle[47] = AddStaticVehicleEx(523,1543.5601,-1605.5293,13.3828,277.9393,0,1,60); //HPV
GangWarVehicle[48] = AddStaticVehicleEx(596,1546.1725,-1614.7092,13.3828,269.7926,0,1,60); //LSPD
GangWarVehicle[49] = AddStaticVehicleEx(490,1603.6260,-1605.2371,13.5028,96.2042,0,0,60); //FBI Rancher
GangWarVehicle[50] = AddStaticVehicleEx(596,1601.8486,-1611.7362,13.4854,87.4308,0,1,60); //HPV
for(new r; r < 51; r++)
{
SetVehicleVirtualWorld(GangWarVehicle[r],1);
}
EDIT: nevermind. i got a fix