//------hamy-GAME MODE-------GM3-b3-v1------------3-5-08 #include #include #include #include #include //-----------------------------------------------------------------------[SERVERTIME]--------- //----------------------------------------------------------------------- enum pizzaposition { Float:pzX, Float:pzY, Float:pzZ } enum towtruckposition { Float:ttX, Float:ttY, Float:ttZ, Float:ttAngle } enum xoomerposition { Float:xoSize, Float:xoX, Float:xoY, Float:xoZ } #define COLOR_CYAN 0x00FFFFAA #define PIZZA_BONUS 200 #define PIZZA_MAX_CASH 1000 #define PIZZA_MIN_CASH 500 #define TOWTRUCK_BONUS 500 #define TOWTRUCK_MAX_CASH 2000 #define TOWTRUCK_MIN_CASH 1000 #define XOOMER_BONUS 500 #define XOOMER_MAX_CASH 2000 #define XOOMER_MIN_CASH 1000 #define XOOMER_MAX_ESTACIONES 100 new pizzadestination[100][pizzaposition]; new Pizzerias[20][pizzaposition]; new archpizzadestination[]="PizzaBoy1.txt"; new archPizzerias[]="PizzaBoy2.txt"; new contadorPIZZA[MAX_PLAYERS]; new playerInMiniMissionPIZZA[MAX_PLAYERS]; new avisado1[MAX_PLAYERS]; new cantidadpizzadestination; new cantidadPizzerias; new Rotos[100][towtruckposition]; new archRotos[]="TowTruck.txt"; new playerInMiniMissionTRUCK[MAX_PLAYERS]; new contadorTRUCK[MAX_PLAYERS]; new avisado2[MAX_PLAYERS]; new cantidadRotos; new enganchado[MAX_PLAYERS]; new EDS[XOOMER_MAX_ESTACIONES][xoomerposition]; new archFuelDestinations[]="FuelDestinations.txt"; new playerInMiniMissionXOOMER[MAX_PLAYERS]; new CantEstaciones; new contadorXoomer[MAX_PLAYERS]; new destXOOMER[MAX_PLAYERS]; new avisado3[MAX_PLAYERS]; new linea[255]; forward terminarMissionXoomer(playerid); forward terminarMissionPIZZA(playerid); forward terminarMissionTRUCK(playerid); forward cerrarRoto(); forward enganchador(); new randomcarids[] = { 576, 566, 579, 500, 445, 401, 527, 542, 546, 516, 426, 560, 529, 602, 418 }; //-----------------------------------------------------------------------[TIMESHIFT]------ //----------------------------------------------------------------------- giveRandomCarId() { return randomcarids[random(sizeof(randomcarids))]; } //----------------------------------------------------------------------- main() { print("\n----------------------------------"); print(" Hamode by hamyshank"); print("----------------------------------\n"); } //----------------------------------------------------------------------- public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Hamode-RPG"); UsePlayerPedAnims(); AddPlayerClass(101,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(10,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(12,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(13,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(136,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(14,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(142,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(143,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(144,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(15,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(151,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(156,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(168,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(169,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(17,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(170,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(180,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(182,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(54,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(183,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(184,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(263,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(75,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(186,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(185,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(188,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(19,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(216,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(20,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); AddPlayerClass(205,2619.2175,2341.5200,10.8128,176.7036, 0, 0, 0, 0, 0, 0); //---------------------------------------------------------------------------------------------------------[SpecialCars]---- AddStaticVehicle(448,2074.8767,2226.4680,10.3915,146.9250,-1,-1); // LV-PizzaBoyBike-someplace-1 AddStaticVehicle(448,2632.4346,1842.3779,10.4176,315.9887,-1,-1); // LV-PizzaBoyBike-someplace-2 AddStaticVehicle(448,2751.0728,2477.0771,10.6622,162.7576,-1,-1); // LV-PizzaBoyBike-mallnearspawn-3 AddStaticVehicle(525,1059.8984,1917.6726,10.6998,178.9653,-1,-1); // LV-towtruckspot-1 AddStaticVehicle(525,1700.2649,999.4533,10.6961,92.0195,-1,-1); // LV-towtruckspot-2 AddStaticVehicle(515,1091.4285,1235.4114,11.8291,358.4628,0,0); // LV-nearXoomer-RoadTrain-5 AddStaticVehicle(515,1085.0098,1235.6321,11.8410,358.4683,0,0); // LV-nearXoomer-RoadTrain-6 AddStaticVehicle(515,1077.8127,1235.7039,11.8456,358.6557,0,0); // LV-nearXoomer-RoadTrain-7 AddStaticVehicle(515,1070.6401,1235.9536,11.8480,359.5840,0,0); // LV-nearXoomer-RoadTrain-8 AddStaticVehicle(515,1063.5813,1236.2078,11.8549,359.6758,0,0); // LV-nearXoomer-RoadTrain-9 AddStaticVehicle(514,1049.0133,1312.5012,10.9164,265.8574,3,3); // LS industrial-tankertruck-1 AddStaticVehicle(514,1049.0640,1317.3707,10.9157,265.2605,1,1); // LS industrial-tankertruck-2-XOOMER=514=TankerTruck AddStaticVehicle(514,1049.2323,1322.7131,10.9159,266.5298,2,2); // LS industrial-tankertruck-3 AddStaticVehicle(598,2310.0325,2449.3357,10.6953,153.2276,-1,-1); // LV-POLICECAR-1 AddStaticVehicle(598,2277.9343,2425.2427,10.6951,132.4740,-1,-1); // LV-POLICECAR-2 AddStaticVehicle(598,2418.3774,1112.4685,10.6896,219.5182,-1,-1); // LV-POLICECAR-3 AddStaticVehicle(598,2417.9314,1102.9336,10.6935,226.2100,-1,-1); // LV-POLICECAR-4 AddStaticVehicle(515,2845.5696,898.5410,11.7718,0.0275,0,0); // LV-truck-1-- AddStaticVehicle(515,2839.5134,898.6458,11.7784,0.9374,0,0); // LV-truck-2---------RoadTrain 1234 AddStaticVehicle(515,2833.7107,898.6043,11.7917,0.7273,0,0); // LV-truck-3-- AddStaticVehicle(515,2804.0007,966.1238,11.7683,179.8206,0,0); // LV-truck-4 AddStaticVehicle(522,2615.2656,2328.5811,10.3912,190.5716,-1,-1); // LV-HardRock-nrg-1 AddStaticVehicle(521,2551.7761,2246.5513,10.3909,254.5045,-1,-1); // LV-NearHardRock-FCR900-1 AddStaticVehicle(521,2445.9497,1949.0726,10.2257,219.1065,-1,-1); // LV-ConstructionSpot-FCR900-2 AddStaticVehicle(414,2346.3420,2738.1584,10.9141,270.2040,-1,-1); // LV-nearrocketfuelplace-Mule-1 AddStaticVehicle(414,2367.8130,2756.4705,10.9141,178.4864,-1,-1); // LV-nearrocketfuelplace-Mule-2 AddStaticVehicle(414,2345.8599,2747.5754,10.9140,270.4723,-1,-1); // LV-nearrocketfuelplace-Mule-3 AddStaticVehicle(414,2261.9236,2770.7935,10.9142,89.5582,-1,-1); // LV-nearrocketfuelplace-Mule-4 AddStaticVehicle(578,2358.4241,2766.6790,11.4480,178.9370,-1,-1); // LV-nearrocketfuelplace-DFT30-1 //-------------------------------------------------------------------------------------------------------[RegularCars]------ AddStaticVehicle(giveRandomCarId(),2609.8484,2326.5925,10.3851,172.7687,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2638.4434,2317.7368,10.3783,94.7714,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2611.0452,2262.6675,10.5287,88.7150,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2592.4497,2278.9805,10.4469,269.2208,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2592.5952,2275.3027,10.5258,90.2217,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2582.8591,2279.1050,10.5256,270.4407,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2592.4343,2267.9031,10.5248,90.1875,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2611.4287,2258.5022,10.5192,269.5479,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2582.5264,2271.8447,10.5928,88.8132,-1,-1); // LV-HardRock- AddStaticVehicle(giveRandomCarId(),2808.8245,2256.5640,10.4747,269.5693,-1,-1); // LVgeneral2 AddStaticVehicle(giveRandomCarId(),2811.2280,2151.5569,10.4743,284.7148,-1,-1); // LVgeneral3 AddStaticVehicle(giveRandomCarId(),2803.3555,1982.0747,10.4790,266.0277,-1,-1); // LVgeneral4 AddStaticVehicle(giveRandomCarId(),2578.6008,1989.6953,10.4807,89.5923,-1,-1); // LVgeneral5 AddStaticVehicle(giveRandomCarId(),2578.2415,1982.0920,10.4693,89.5202,-1,-1); // LVgeneral6 AddStaticVehicle(giveRandomCarId(),2581.7085,1967.1392,10.4733,180.6992,-1,-1); // LVgeneral7 AddStaticVehicle(giveRandomCarId(),2069.1438,2225.7251,10.6953,331.3217,-1,-1); // LV-pizzaspot-regular-1 AddStaticVehicle(giveRandomCarId(),2104.1313,2043.0834,10.6953,89.0229,-1,-1); // LV-regular-mall-1 AddStaticVehicle(giveRandomCarId(),2186.0959,1978.7863,10.6953,270.3529,-1,-1); // LV-regular-diner-1 AddStaticVehicle(giveRandomCarId(),2074.8821,1589.3762,10.5469,181.0070,-1,-1); // LV-regular-roadside-1 AddStaticVehicle(giveRandomCarId(),2039.5200,1532.1195,10.5469,1.0343,-1,-1); // LV-regular-roadside-2 AddStaticVehicle(giveRandomCarId(),1891.4778,1762.4373,10.5654,75.0932,-1,-1); // LV-regular-roadside-3 AddStaticVehicle(giveRandomCarId(),2414.7686,2330.7661,10.6953,90.7628,-1,-1); // LV-regular-roadside-4 AddStaticVehicle(giveRandomCarId(),2339.3730,2121.2288,10.5571,180.4625,-1,-1); // LV-regular-roadside-5 AddStaticVehicle(giveRandomCarId(),2360.0972,2097.2695,10.5469,357.8922,-1,-1); // LV-regular-roadside-6 AddStaticVehicle(giveRandomCarId(),2405.1648,1667.6854,10.6953,180.7023,-1,-1); // LV-regular-roadside-7 AddStaticVehicle(giveRandomCarId(),2408.7727,1658.7170,10.6952,0.7674,-1,-1); // LV-regular-roadside-8 AddStaticVehicle(giveRandomCarId(),2386.2273,1658.5758,10.6953,179.3093,-1,-1); // LV-regular-roadside-9 AddStaticVehicle(giveRandomCarId(),2469.7246,1629.2102,10.6953,181.0034,-1,-1); // LV-regular-roadside-10 AddStaticVehicle(giveRandomCarId(),2557.8894,1412.2891,10.6991,237.5475,-1,-1); // LV-regular-roadside-11 AddStaticVehicle(giveRandomCarId(),2572.4312,1215.4703,10.6953,180.9210,-1,-1); // LV-regular-roadside-12 AddStaticVehicle(giveRandomCarId(),2493.5093,1239.0205,10.6976,0.3155,-1,-1); // LV-regular-roadside-13 AddStaticVehicle(giveRandomCarId(),2403.7192,1023.3677,10.6953,271.6282,-1,-1); // LV-regular-roadside-14 AddStaticVehicle(giveRandomCarId(),2485.8569,936.2276,10.7029,0.3513,-1,-1); // LV-regular-roadside-15 AddStaticVehicle(giveRandomCarId(),2553.6709,1037.3964,10.6954,110.1126,-1,-1); // LV-regular-roadside-16 AddStaticVehicle(giveRandomCarId(),2554.8267,1031.2731,10.6953,115.9846,-1,-1); // LV-regular-roadside-17 AddStaticVehicle(giveRandomCarId(),2554.1165,1024.8475,10.6954,92.3395,-1,-1); // LV-regular-roadside-18HOG AddStaticVehicle(giveRandomCarId(),2161.8181,1006.6578,10.6608,89.2687,-1,-1); // LV-regular-roadside-19 AddStaticVehicle(giveRandomCarId(),2176.6743,987.9885,10.6916,182.8404,-1,-1); // LV-regular-roadside-20 AddStaticVehicle(giveRandomCarId(),2172.4211,1013.2923,10.6953,89.7440,-1,-1); // LV-regular-roadside-21 AddStaticVehicle(giveRandomCarId(),1690.0132,1306.4163,10.6939,173.9795,-1,-1); // LV-regular-roadside-22 AddStaticVehicle(giveRandomCarId(),1599.7419,1839.5492,10.6953,180.0097,-1,-1); // LV-regular-roadside-23 AddStaticVehicle(giveRandomCarId(),1984.0470,2096.4451,10.6953,93.6006,-1,-1); // LV-regular-roadside-24 AddStaticVehicle(giveRandomCarId(),1981.6880,2086.5383,10.6953,0.0719,-1,-1); // LV-regular-roadside-25 AddStaticVehicle(giveRandomCarId(),1053.0817,1916.8500,10.6953,179.3421,-1,-1); // LV-regular-roadside-26 AddStaticVehicle(giveRandomCarId(),2818.8745,969.5160,10.6250,0.8711,-1,-1); // LV-nearRoadTrain-general-1 AddStaticVehicle(giveRandomCarId(),2810.1860,897.6555,10.6327,179.3864,-1,-1); // LV-nearRoadTrain-general-2 AddStaticVehicle(giveRandomCarId(),1414.6678,711.7629,10.6953,90.0819,-1,-1); // LV-general-1 AddStaticVehicle(giveRandomCarId(),1413.0337,717.2500,10.6953,89.3042,-1,-1); // LV-general-2 AddStaticVehicle(giveRandomCarId(),1413.0573,742.8065,10.6953,90.7129,-1,-1); // LV-general-3 AddStaticVehicle(giveRandomCarId(),2806.3540,2309.8357,10.6953,178.9760,-1,-1); // LV-general-1 AddStaticVehicle(giveRandomCarId(),2781.2227,2440.5222,10.6953,314.0146,-1,-1); // LV-general-2 AddStaticVehicle(giveRandomCarId(),2495.3701,2356.2568,4.0860,270.7162,-1,-1); // LV-regular-4 AddStaticVehicle(giveRandomCarId(),2242.7776,2234.2490,10.6525,228.2526,-1,-1); // LV-regular-5 AddStaticVehicle(giveRandomCarId(),2156.2302,2226.6084,10.6953,132.0351,-1,-1); // LV-regular-6 AddStaticVehicle(giveRandomCarId(),2155.0967,2186.5845,10.5469,357.9674,-1,-1); // LV-regular-7 AddStaticVehicle(giveRandomCarId(),2104.1692,2085.7422,10.6953,90.4569,-1,-1); // LV-regular-8 AddStaticVehicle(giveRandomCarId(),2104.4949,2079.1094,10.6953,269.6811,-1,-1); // LV-regular-9 AddStaticVehicle(giveRandomCarId(),1964.0297,1800.7186,12.6187,0.5163,-1,-1); // LV-regular-10 AddStaticVehicle(giveRandomCarId(),2119.1680,1930.0317,10.5469,0.0384,-1,-1); // LV-regular-11 AddStaticVehicle(giveRandomCarId(),2034.8195,1906.6230,12.0526,187.3018,-1,-1); // LV-regular-12 AddStaticVehicle(giveRandomCarId(),2035.5613,1929.1809,12.0465,352.7048,-1,-1); // LV-regular-13 AddStaticVehicle(giveRandomCarId(),2035.5031,1899.2960,11.9899,183.0760,-1,-1); // LV-regular-14 AddStaticVehicle(giveRandomCarId(),2118.9297,1922.2721,10.5469,359.9641,-1,-1); // LV-regular-15 AddStaticVehicle(giveRandomCarId(),2220.4009,1822.2714,10.6951,4.7003,-1,-1); // LV-regular-16 AddStaticVehicle(giveRandomCarId(),2199.9421,1821.9248,10.6953,0.1227,-1,-1); // LV-regular-17 AddStaticVehicle(giveRandomCarId(),2196.1660,1822.0415,10.6953,0.9393,-1,-1); // LV-regular-18 AddStaticVehicle(giveRandomCarId(),1980.9938,2058.9944,10.6264,357.5288,-1,-1); // LV-regular-19 AddStaticVehicle(giveRandomCarId(),1985.3297,2059.0503,10.6953,359.3382,-1,-1); // LV-regular-20 AddStaticVehicle(giveRandomCarId(),1992.6610,2059.1699,10.6953,0.4419,-1,-1); // LV-regular-21 AddStaticVehicle(giveRandomCarId(),2249.0105,2007.5989,10.6945,184.2812,-1,-1); // LV-regular-22 AddStaticVehicle(giveRandomCarId(),2246.1880,2038.1862,10.6953,90.6605,-1,-1); // LV-regular-23 AddStaticVehicle(giveRandomCarId(),2235.6836,2042.7224,10.6953,90.5409,-1,-1); // LV-regular-24 AddStaticVehicle(giveRandomCarId(),2486.0564,1725.6052,10.6953,89.2261,-1,-1); // LV-regular-25 AddStaticVehicle(giveRandomCarId(),1881.8883,960.5989,10.6951,90.0360,-1,-1); // LV-regular-26 AddStaticVehicle(giveRandomCarId(),1883.6267,1180.2555,10.7031,0.4602,-1,-1); // LV-regular-27 AddStaticVehicle(giveRandomCarId(),1843.8247,1177.5431,10.7164,89.7226,-1,-1); // LV-regular-28 AddStaticVehicle(giveRandomCarId(),1844.2272,1171.1223,10.7166,270.2493,-1,-1); // LV-regular-29 AddStaticVehicle(giveRandomCarId(),1529.4518,1019.5756,10.6953,179.4628,-1,-1); // LV-regular-30 AddStaticVehicle(giveRandomCarId(),1674.4585,998.7404,10.6953,358.5244,-1,-1); // LV-regular-31 AddStaticVehicle(giveRandomCarId(),1668.1647,989.1252,10.6953,359.6752,-1,-1); // LV-regular-32 AddStaticVehicle(giveRandomCarId(),1674.6226,1038.7823,10.6946,0.4939,-1,-1); // LV-regular-33 AddStaticVehicle(giveRandomCarId(),1022.2024,1358.7032,10.6953,358.1718,-1,-1); // LV-regular-34 AddStaticVehicle(giveRandomCarId(),1026.4971,1358.7611,10.6953,357.9523,-1,-1); // LV-regular-35 AddStaticVehicle(giveRandomCarId(),2118.6646,2729.5422,10.4292,88.1092,0,0); // LV-regular-gasstation-1 AddStaticVehicle(giveRandomCarId(),2167.4939,2754.2649,10.4294,270.9398,0,0); // LV-regular-gasstation-2 AddStaticVehicle(giveRandomCarId(),2141.7410,2795.9053,10.4310,89.0563,0,0); // LV-regular-gasstation-3 AddStaticVehicle(giveRandomCarId(),2099.2668,2671.4600,10.4276,271.1606,0,0); // LV-regular-neargastation-1 AddStaticVehicle(giveRandomCarId(),1579.4531,2615.9592,10.4209,181.6481,0,0); // LV-regular-neighborhood-1 AddStaticVehicle(giveRandomCarId(),1488.9463,2840.2441,10.4296,179.9812,0,0); // LV-regular-golfcourse-1 AddStaticVehicle(giveRandomCarId(),1484.0117,2840.2412,10.4301,180.0377,0,0); // LV-regular-golfcourse-2 AddStaticVehicle(giveRandomCarId(),1460.6365,2839.1533,10.4309,179.7666,0,0); // LV-regular-golfcourse-3 AddStaticVehicle(giveRandomCarId(),1452.1958,2680.9678,10.4287,89.5058,0,0); // LV-regular-trainstation-1 AddStaticVehicle(giveRandomCarId(),1403.3984,2674.7026,10.4291,211.5011,0,0); // LV-regular-trainstation-2 AddStaticVehicle(giveRandomCarId(),1087.9950,2375.1833,10.4302,180.3469,0,0); // LV-regular-neardesert-1 AddStaticVehicle(giveRandomCarId(),1023.4592,2238.2546,10.4309,267.9395,0,0); // LV-regular-neardesert-2 AddStaticVehicle(giveRandomCarId(),972.0231,2167.4536,10.4358,102.6228,0,0); // LV-regular-neardesert-3 AddStaticVehicle(giveRandomCarId(),1052.6482,2142.7852,10.4290,359.5658,0,0); // LV-regular-neardesert-4 AddStaticVehicle(giveRandomCarId(),1131.2805,2086.2974,10.4297,239.7691,0,0); // LV-regular-neardesert-5 AddStaticVehicle(giveRandomCarId(),1131.5203,2091.4785,10.4293,237.7551,0,0); // LV-regular-neardesert-6 AddStaticVehicle(giveRandomCarId(),1116.1444,2072.6731,10.4301,180.6993,0,0); // LV-regular-neardesert-7 AddStaticVehicle(giveRandomCarId(),1092.5471,1727.5234,10.4295,179.5135,0,0); // LV-regular-stadium-1 AddStaticVehicle(giveRandomCarId(),1083.9523,1726.8693,10.4302,178.9883,0,0); // LV-regular-stadium-2 AddStaticVehicle(giveRandomCarId(),1026.2382,1726.3735,10.4298,179.6507,0,0); // LV-regular-stadium-3 //-----------------------------------------------------------------------[OBJECTS]--------------------------------- CreateObject(3171, -315.00, 830.00, 13.20, 0.00, 0.00, 0.00); //----------------------------------------------------------------------- new File:filePizza; new lineaPizza[255]; filePizza = fopen(archpizzadestination,io_readwrite); new jPIZZA=0; new idxPIZZA; while ((fread(filePizza,lineaPizza,sizeof(lineaPizza),false))&&(jPIZZA<25)) { idxPIZZA = 0; pizzadestination[jPIZZA][pzX] = floatstr(strtok(lineaPizza,idxPIZZA)); pizzadestination[jPIZZA][pzY] = floatstr(strtok(lineaPizza,idxPIZZA)); pizzadestination[jPIZZA][pzZ] = floatstr(strtok(lineaPizza,idxPIZZA)); jPIZZA++; } cantidadpizzadestination=jPIZZA; fclose(filePizza); format(lineaPizza,sizeof(lineaPizza),"Total destinations loaded: %d", cantidadpizzadestination); print(lineaPizza); filePizza = fopen(archPizzerias,io_readwrite); jPIZZA=0; while ((fread(filePizza,lineaPizza,sizeof(lineaPizza),false))&&(jPIZZA<25)) { idxPIZZA = 0; Pizzerias[jPIZZA][pzX] = floatstr(strtok(lineaPizza,idxPIZZA)); Pizzerias[jPIZZA][pzY] = floatstr(strtok(lineaPizza,idxPIZZA)); Pizzerias[jPIZZA][pzZ] = floatstr(strtok(lineaPizza,idxPIZZA)); jPIZZA++; } cantidadPizzerias=jPIZZA; fclose(filePizza); format(lineaPizza,sizeof(lineaPizza),"Total pizzeria loaded: %d", cantidadPizzerias); print(lineaPizza); for (new i=0;i=0)&&(avisado1[playerid]==-1)) { GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to get a pizza bike",5000,4); avisado1[playerid]=SetTimerEx("terminarMissionPIZZA",10000,0,"%d",playerid); } } if (newstate==PLAYER_STATE_DRIVER) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525) { if (avisado2[playerid]==-1) { GameTextForPlayer(playerid,"~w~Press ~b~KEY number 2~n~~w~to start ~r~TowTruck~n~~w~Minimission",3000,5);//SetTimerEx("MandarMensaje",5500,0,"%d",playerid); } else { KillTimer(avisado2[playerid]); avisado2[playerid]=-1; } } } if (newstate==PLAYER_STATE_ONFOOT) { if ((playerInMiniMissionTRUCK[playerid]>0)&&(avisado2[playerid]==-1)) { GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to get a TowTruck",5000,4); avisado2[playerid]=SetTimerEx("terminarMissionTRUCK",10000,0,"%d",playerid); } } if (newstate==PLAYER_STATE_DRIVER) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 514) { if (avisado3[playerid]==-1) { GameTextForPlayer(playerid,"~w~Press ~b~Key number 2~n~~w~to start ~r~Xoomer~n~~w~Minimission",3000,5);//SetTimerEx("MandarMensaje",5500,0,"%d",playerid); } else { KillTimer(avisado3[playerid]); avisado3[playerid]=-1; } } } if (newstate==PLAYER_STATE_ONFOOT) { if ((playerInMiniMissionXOOMER[playerid]!=0)&&(avisado3[playerid]==-1)) { GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to get a Tanker Truck",5000,4); avisado3[playerid]=SetTimerEx("terminarMissionXoomer",10000,0,"%d",playerid); } } return 1; } //----------------------------------------------------------------------- public OnPlayerEnterCheckpoint(playerid) { return 1; } //----------------------------------------------------------------------- public OnPlayerLeaveCheckpoint(playerid) { return 1; } //----------------------------------------------------------------------- public OnPlayerEnterRaceCheckpoint(playerid) { if (playerInMiniMissionPIZZA[playerid]!=-1) { if (playerInMiniMissionPIZZA[playerid]==0) { GameTextForPlayer(playerid,"~r~Pizza ~w~delivered!~n~ Quick! go to nearest ~r~ pizzeria~w~~n~ more work to do!",3000,3); new cash=(random(PIZZA_MAX_CASH-PIZZA_MIN_CASH)+PIZZA_MIN_CASH); GivePlayerMoney(playerid,cash); pizzeriaAcasa(playerid); contadorPIZZA[playerid]++; } else { if ((((contadorPIZZA[playerid]/5)*5)==contadorPIZZA[playerid])&&(contadorPIZZA[playerid]!=0)) { new string[255]; format(string,sizeof(string),"You get a ~r~BONUS ~w~ every 5 pizzas!.~n~You delivered %d pizzas your bonus is ~n~~b~$%d",contadorPIZZA[playerid],contadorPIZZA[playerid]*PIZZA_BONUS); GameTextForPlayer(playerid,string,5000,3); } else { GameTextForPlayer(playerid,"~w~Quick deliver this~n~~r~pizza",3000,3); } casaApizzeria(playerid); } } if (playerInMiniMissionTRUCK[playerid]!=-1) { if (enganchado[playerid]==0) { if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); new mid = GetVehicleModel(vehicleid); if (mid == 525) { if (IsTrailerAttachedToVehicle(vehicleid)) { DetachTrailerFromVehicle(vehicleid); } AttachTrailerToVehicle(playerInMiniMissionTRUCK[playerid],vehicleid); GameTextForPlayer(playerid,"~w~Tow away the ~r~Wrecked Vehicle ~n~ ~w~with the ~r~TowTruck ~n~ ~w~ to the ~r~Paint & Spray",3000,4); SetPlayerRaceCheckpoint(playerid,0,1960.0590,2162.1296,10.8203,1960.0590,2162.1296,10.8203,5.0); enganchado[playerid]=1; } else { GameTextForPlayer(playerid,"~w~You need a~r~TowTruck",3000,4); } } else { GameTextForPlayer(playerid,"~w~You need a ~r~TowTruck",3000,4); } return 1; } if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); new mid = GetVehicleModel(vehicleid); if ((mid == 525)&&(IsTrailerAttachedToVehicle(vehicleid))&&(GetVehicleTrailer(vehicleid)==playerInMiniMissionTRUCK[playerid])) { enganchado[playerid]=0; contadorTRUCK[playerid]++; new cash=(random(TOWTRUCK_MAX_CASH-TOWTRUCK_MIN_CASH)+TOWTRUCK_MIN_CASH); GivePlayerMoney(playerid,cash); DestroyVehicle(playerInMiniMissionTRUCK[playerid]); playerInMiniMissionTRUCK[playerid]=-1; crearAutoRoto(playerid); if ((((contadorTRUCK[playerid]/5)*5)==contadorTRUCK[playerid])&&(contadorTRUCK[playerid]!=0)) { new string[255]; format(string,sizeof(string),"You get a ~r~BONUS ~w~ every 5 cars!.~n~You towed away %d cars your Bonus is ~n~~b~$%d",contadorTRUCK[playerid],contadorTRUCK[playerid]*TOWTRUCK_BONUS); GivePlayerMoney(playerid,contadorTRUCK[playerid]*TOWTRUCK_BONUS); GameTextForPlayer(playerid,string,3000,3); } else { GameTextForPlayer(playerid,"~w~Mission complete! Here is your cash!. ~n~Go get the other ~r~Wrecked Vehicle ~w~to the ~r~Paint & Spray",5000,3); } } } } if (playerInMiniMissionXOOMER[playerid]==-1) { if (IsPlayerInAnyVehicle(playerid)) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 514) { if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { DetachTrailerFromVehicle(GetPlayerVehicleID(playerid)); } GameTextForPlayer(playerid,"~w~The ~r~tank ~w~its filled.~n~take it to the ~r~gas station",3000,4); ProximaEstacion(playerid); } else { GameTextForPlayer(playerid,"~w~You need a ~r~truck",3000,4); } } else { GameTextForPlayer(playerid,"~w~You need a ~r~truck",3000,4); } return 1; } if (playerInMiniMissionXOOMER[playerid]!=0) { if (IsPlayerInAnyVehicle(playerid)) { if ((GetVehicleModel(GetPlayerVehicleID(playerid)) == 514) &&(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) &&(GetVehicleTrailer(GetPlayerVehicleID(playerid))==playerInMiniMissionXOOMER[playerid])) { contadorXoomer[playerid]++; new cash=(random(XOOMER_MAX_CASH-XOOMER_MIN_CASH)+XOOMER_MIN_CASH); GivePlayerMoney(playerid,cash); DestroyVehicle(playerInMiniMissionXOOMER[playerid]); playerInMiniMissionXOOMER[playerid]=-1; Refineria(playerid); if ((((contadorXoomer[playerid]/5)*5)==contadorXoomer[playerid])&&(contadorXoomer[playerid]!=0)) { new string[255]; format(string,sizeof(string),"You get a ~r~BONUS ~w~ every 5 times!.~n~You made %d delivers, your bonus is ~n~~b~$%d",contadorXoomer[playerid],contadorXoomer[playerid]*XOOMER_BONUS); GameTextForPlayer(playerid,string,5000,3); } else { GameTextForPlayer(playerid,"~w~Fuel delivered! Here is your cash!. ~n~Go back to the ~r~refinery",5000,3); } } } } return 1; } //----------------------------------------------------------------------- public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } //----------------------------------------------------------------------- public OnRconCommand(cmd[]) { return 1; } //----------------------------------------------------------------------- public OnObjectMoved(objectid) { return 1; } //----------------------------------------------------------------------- public OnPlayerObjectMoved(playerid, objectid) { return 1; } //----------------------------------------------------------------------- public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } //----------------------------------------------------------------------- public OnPlayerSelectedMenuRow(playerid, row) { return 1; } //----------------------------------------------------------------------- public OnPlayerExitedMenu(playerid) { return 1; } public cerrarRoto() { for (new i=0;i