#include #include #include #define COLOR_WHITE 0xFFFFFFAA #define COLOR_YELLOW 0xFFFF00AA #define LIGHT_BLUE 0x33CCFFAA new backlift; new sidelift; new backhatch; new Carrier[17]; new CarrierS[14]; new NGVehicles[21]; new Range; new RangeGuy[6]; new control[MAX_PLAYERS]; new controlspeed[MAX_PLAYERS]; new controldistance[MAX_PLAYERS]; new ControlTimer[MAX_PLAYERS]; forward ControlCam(playerid); forward RedoRange(); forward RedoRange2(); new canmove; public OnFilterScriptInit() { sidelift = CreateObject(3114, 231.916656, 4615.134277, 17.269205, 0.0000, 0.0000, 0.0000); // Side Lift Up backhatch = CreateObject(3113, 180.344864, 4600.390137, 2.516232, 0.0000, 0.0000, 0.0000); // Back Hatch Closed backlift = CreateObject(3115, 189.694626, 4599.983398, 17.483730, 0.0000, 0.0000, 0.0000); // Back Lift Up Carrier[0] = CreateObject(10771, 288.665771, 4600.003418, 6.032381, 0.0000, 0.0000, 0.0000, 300); Carrier[1] = CreateObject(11145, 225.782196, 4600.015137, 4.754915, 0.0000, 0.0000, 0.0000, 300); Carrier[2] = CreateObject(11149, 282.526093, 4594.805176, 12.487646, 0.0000, 0.0000, 0.0000, 300); Carrier[3] = CreateObject(11146, 279.620544, 4600.541016, 12.893089, 0.0000, 0.0000, 0.0000, 300); Carrier[4] = CreateObject(10770, 291.858917, 4592.397949, 39.171509, 0.0000, 0.0000, 0.0000, 300); Carrier[5] = CreateObject(10772, 290.014313, 4599.787598, 17.833616, 0.0000, 0.0000, 0.0000, 300); Carrier[6] = CreateObject(1671, 354.860748, 4589.442383, 11.234554, 0.0000, 0.0000, 175.3254, 300); Carrier[7] = CreateObject(925, 304.330383, 4589.067383, 11.735489, 0.0000, 0.0000, 0.0000, 300); Carrier[8] = CreateObject(930, 301.851654, 4588.497070, 11.131838, 0.0000, 0.0000, 0.0000, 300); Carrier[9] = CreateObject(930, 301.856079, 4589.598145, 11.181837, 0.0000, 0.0000, 0.0000, 300); Carrier[10] = CreateObject(964, 300.513062, 4589.303711, 10.705961, 0.0000, 0.0000, 177.4217, 300); Carrier[11] = CreateObject(964, 299.024902, 4589.362793, 10.698584, 0.0000, 0.0000, 177.4217, 300); Carrier[12] = CreateObject(1271, 305.058319, 4591.442871, 11.048584, 0.0000, 0.0000, 359.1406, 300); Carrier[13] = CreateObject(1431, 303.009491, 4591.383789, 11.253574, 0.0000, 0.0000, 0.0000, 300); Carrier[14] = CreateObject(2567, 297.100800, 4591.239746, 12.558563, 0.0000, 0.0000, 91.1003, 300); Carrier[15] = CreateObject(3576, 301.050110, 4593.777344, 12.198634, 0.0000, 0.0000, 0.0000, 300); Carrier[16] = CreateObject(3633, 304.567841, 4593.262207, 11.173386, 0.0000, 0.0000, 0.0000, 300); CarrierS[0] = CreateDynamicObject(3267, 320.358582, 4592.519043, 21.567169, 0.0000, 0.0000, 0.0000); CarrierS[1] = CreateDynamicObject(11237, 291.557526, 4592.407715, 39.065594, 0.0000, 0.0000, 0.0000); CarrierS[2] = CreateDynamicObject(3395, 354.861725, 4590.989746, 10.797120, 0.0000, 0.0000, 88.0403); CarrierS[3] = CreateDynamicObject(1671, 356.571838, 4588.612793, 11.234554, 0.0000, 0.0000, 134.9316); CarrierS[4] = CreateDynamicObject(3393, 358.360016, 4588.834961, 10.797121, 0.0000, 0.0000, 0.0000); CarrierS[5] = CreateDynamicObject(3277, 320.391876, 4592.538086, 21.514416, 0.0000, 0.0000, 164.0483); NGVehicles[0] = AddStaticVehicleEx(520,248.0794,3594.3105,11.5239,2.7183,0,0,30000); // hydra 1 NGVehicles[1] = AddStaticVehicleEx(520,237.9068,3594.1855,11.5200,359.5102,0,0,30000); // hydra2 NGVehicles[2] = AddStaticVehicleEx(520,227.9109,3594.4126,11.5253,357.3820,0,0,30000); // hydra3 NGVehicles[3] = AddStaticVehicleEx(430,199.3280,3591.4453,-0.6940,90.6359,0,110,30000); // Cop boat NGVehicles[4] = AddStaticVehicleEx(430,200.1194,3596.4458,-0.7851,91.4565,0,110,30000); // Cop boat 2 NGVehicles[5] = AddStaticVehicleEx(595,201.8044,3609.0137,0.2197,92.5798,112,20,30000); // predator NGVehicles[6] = AddStaticVehicleEx(595,204.8774,3603.1533,-0.2992,89.2164,112,20,30000); // predator2 NGVehicles[7] = AddStaticVehicleEx(539,221.6902,3609.5674,2.8996,89.0397,0,110,30000); // vortex 1 NGVehicles[8] = AddStaticVehicleEx(539,221.7372,3603.2832,2.9000,91.7202,0,110,30000); // vortex 2 NGVehicles[9] = AddStaticVehicleEx(425,251.1378,3595.0029,19.5374,38.5798,0,0,30000); // hunterondeck1 NGVehicles[10] = AddStaticVehicleEx(425,239.3769,3595.5366,19.5370,34.9381,0,0,30000); // hunterondeck2 NGVehicles[11] = AddStaticVehicleEx(425,227.2570,3595.8970,19.5330,36.2626,0,0,30000); // hunterondeck3 NGVehicles[12] = AddStaticVehicleEx(548,339.1287,3592.5342,19.5370,318.6580,0,0,30000); // cargoondeck4 NGVehicles[13] = AddStaticVehicleEx(548,350.7022,3592.5835,19.5370,322.3175,0,0,30000); // cargoondeck5 NGVehicles[14] = AddStaticVehicleEx(548,362.1107,3592.6118,19.5370,323.1028,0,0,30000); // cargoondeck6 NGVehicles[15] = AddStaticVehicleEx(548,373.5303,3592.8457,19.5370,324.9776,0,0,30000); // cargoondeck7 NGVehicles[16] = AddStaticVehicleEx(417,213.0728,3592.1421,20.4642,269.6004,1,1,30000); // Leviathan NGVehicles[17] = AddStaticVehicleEx(417,384.6175,3592.6875,19.3947,90.9128,43,0,30000); // Leviathan NGVehicles[18] = AddStaticVehicleEx(520,351.6037,3607.6841,12.5242,88.6799,0,0,30000); // Hydra NGVehicles[19] = AddStaticVehicleEx(520,351.6037,3597.3706,12.5242,88.6799,0,0,30000); // Hydra NGVehicles[20] = AddStaticVehicleEx(583,308.3741,3591.9722,11.7993,266.5796,1,1,30000); // Caddy for(new x;x 0) { if(canmove == 1) return 1; else canmove = 1; new distance = controldistance[playerid]; new speed = controlspeed[playerid]; new Float:XA[17], Float:YA[17], Float:ZA[17]; new Float:XB[14], Float:YB[14], Float:ZB[14]; new Float:XC[3], Float:YC[3], Float:ZC[3]; for(new x;x 0) { if(canmove == 1) return 1; else canmove = 1; new distance = controldistance[playerid]; new speed = controlspeed[playerid]; new Float:XA[17], Float:YA[17], Float:ZA[17]; new Float:XB[14], Float:YB[14], Float:ZB[14]; new Float:XC[3], Float:YC[3], Float:ZC[3]; for(new x;x 20 && rand[x] < 60) model[x] = 1584; else if(rand[x] > 60 && rand[x] <= 100) model[x] = 1583; } for(new x;x