19.10.2010, 10:21
i got one gm there are no errors in that gm when i click on compile the pawno crashes could any one help me please
Code
this is full code
Code
Код:
#include <a_samp> #include <TruckingMissions> enum TruckingMissionInfo { MissionName[200], bool:UseTrailerCheck, MissionPay, Float:loadx, Float:loady, Float:loadz, Float:unloadx, Float:unloady, Float:unloadz, } new TruckingMissionRandom[][TruckingMissionInfo] = { // {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz} /* KEY: ** "Mission Text" = The text the player will see when he/she is doing the mission! ** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer! ** MissionPay = The amount the player will recive for doing there mission! ** loadx, loady, and loadz = The loading coordinates of the loading checkpoint! ** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint! */ {"We need a load of Holy Water from LVA Freight Depot to LVA Church", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203}, {"We need a load of Junk Car Parts from LVA Freight Depot to Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203}, {"We need a load of Drills From LS Dock Warehouse 2 To Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985}, {"We need a load of Top Secret Devices From Randolf Industrial Estate To Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504}, {"We need a load of Boxes From LV Depot To SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334}, {"We need a load of Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396}, {"We need a load of Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445}, {"We need a load of Landing Gears From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443}, {"We need a load of Oxegen Canisters From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537}, {"We need a load of Radars From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537}, main() { print("\n----------------------------------"); print(" Trucking Server\n"); print("----------------------------------\n"); } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Trucking/driving/missions"); //_-_-_-_-Change this if you want_-_-_-_-// SendRconCommand("mapname Crazy Hell "); SendRconCommand("hostname Hell's Angel's Trucking Server (0.3b)"); SendRconCommand("modename v0.0.1"); SendRconCommand("weburl www.hellangels.co.cc"); //_-_-_-_-PlayerClass_-_-_-_-// AddPlayerClass(16,1708.2423,986.9780,10.8203,76.6057,0,0,0,0,0,0); // AddPlayerClass(67,2812.4558,911.8265,10.7500,268.9407,0,0,0,0,0,0); // AddPlayerClass(133,-2186.8062,-212.2756,36.5156,276.5892,0,0,0,0,0,0); // AddPlayerClass(157,-499.0545,-505.2448,25.5234,94.3304,0,0,0,0,0,0); // AddPlayerClass(179,-72.2594,-1126.0658,1.0781,76.3533,0,0,0,0,0,0); // AddPlayerClass(181,2134.3069,-2158.5654,13.5469,249.3310,0,0,0,0,0,0); // //-_-_-_End Of Player Class_-_-_-_// //objects CreateObject(5112,2936.197265625,-1958.0688476563,6.25,0,0,0); CreateObject(5112,3080.6958007813,-1958.0428466797,6.25,0,0,0); CreateObject(5112,3233.1323242188,-1958.0546875,6.25,0,0,0); CreateObject(5112,3384.1000976563,-1958.0362548828,6.25,0,0,0); CreateObject(5112,3535.4604492188,-1958.1494140625,6.25,0,0,0); CreateObject(5112,3680.2158203125,-1958.1612548828,6.25,0,0,0); CreateObject(5112,3829.3715820313,-1958.1810302734,6.25,0,0,0); CreateObject(5145,3959.2055664063,-1901.923828125,0.26378631591797,0,0,0); CreateObject(5184,3811.1899414063,-1806.9571533203,29.649993896484,0,0,180); CreateObject(5184,3812.6337890625,-1892.7583007813,29.399993896484,0,0,1.9945068359375); CreateObject(5184,3811.8159179688,-1868.9151611328,28.899993896484,0,0,181.99401855469); CreateObject(3689,3820.5021972656,-1809.0211181641,18.753711700439,0,0,0); CreateObject(3707,3768.8588867188,-1874.0847167969,18.523086547852,0,0,0); CreateObject(3755,3865.4189453125,-1864.6309814453,16.231666564941,0,0,180); CreateObject(5309,3865.7836914063,-1899.3605957031,13.641693115234,0,0,0); CreateObject(7019,3949.9885253906,-1925.5786132813,14.330154418945,0,0,0); CreateObject(3578,3962.9753417969,-1878.5802001953,11.514381408691,0,0,90); CreateObject(3578,3962.974609375,-1878.580078125,12.264381408691,0,0,90); CreateObject(3578,3962.6442871094,-1936.3754882813,12.264381408691,0,0,90); CreateObject(3578,3962.6435546875,-1936.375,13.014381408691,0,0,90); CreateObject(3620,3798.6608886719,-1913.5465087891,23.612619400024,0,0,0); CreateObject(10830,4021.9831542969,-1987.1022949219,18.951999664307,0,0,44); CreateObject(10831,4027.2387695313,-1822.6650390625,15.663994789124,0,0,0); CreateObject(5313,3956.24609375,-1816.0770263672,23.734321594238,0,0,0); CreateObject(7495,4013.1765136719,-1897.8447265625,14.32693862915,0,0,0); //End OF objects// AddStaticVehicle(403,2861.2800292969,937.35540771484,11.449999809265,90,-1,-1); AddStaticVehicle(403,2861.5532226563,933.11383056641,11.449999809265,90,-1,-1); AddStaticVehicle(403,2861.8271484375,928.87316894531,11.449999809265,90,-1,-1); AddStaticVehicle(403,2862.0849609375,924.8818359375,11.449999809265,90,-1,-1); AddStaticVehicle(515,2861.779296875,920.45599365234,11.903720855713,90,-1,-1); AddStaticVehicle(515,2862.1086425781,915.71667480469,11.903720855713,90,-1,-1); AddStaticVehicle(515,2862.4204101563,911.22680664063,11.903720855713,90,-1,-1); AddStaticVehicle(515,2862.7666015625,906.23876953125,11.903720855713,90,-1,-1); AddStaticVehicle(514,2832.4946289063,978.59484863281,11.449674606323,180,-1,-1); AddStaticVehicle(514,2836.2534179688,978.54650878906,11.449674606323,180,-1,-1); AddStaticVehicle(514,2840.01171875,978.49755859375,11.449674606323,180,-1,-1); AddStaticVehicle(514,2843.7705078125,978.44873046875,11.449674606323,180,-1,-1); AddStaticVehicle(482,2833.3776855469,940.80462646484,11,0,-1,-1); AddStaticVehicle(482,2830.6154785156,940.83087158203,11,0,-1,-1); AddStaticVehicle(482,2827.0854492188,941.12731933594,11,0,-1,-1); AddStaticVehicle(482,2824.3020019531,941.31982421875,11,0,-1,-1); AddStaticVehicle(482,2820.7944335938,941.36505126953,11,0,-1,-1); AddStaticVehicle(578,2813.3530273438,899.18426513672,11.507797241211,0,-1,-1); AddStaticVehicle(578,2809.8188476563,899.11547851563,11.507797241211,0,-1,-1); AddStaticVehicle(578,2806.0366210938,899.07769775391,11.507797241211,0,-1,-1); AddStaticVehicle(578,2802.0063476563,899.07019042969,11.507797241211,0,-1,-1); AddStaticVehicle(578,2797.9760742188,899.06237792969,11.507797241211,0,-1,-1); AddStaticVehicle(435,2870.826171875,924.73291015625,11.803198814392,90,-1,-1); AddStaticVehicle(435,2870.974609375,928.7294921875,11.803198814392,90,-1,-1); AddStaticVehicle(435,2870.8918457031,933.23553466797,11.803198814392,90,-1,-1); AddStaticVehicle(435,2870.7902832031,937.24176025391,11.803198814392,90,-1,-1); AddStaticVehicle(435,2871.4152832031,920.46636962891,11.803198814392,90,-1,-1); AddStaticVehicle(435,2871.73828125,915.70062255859,11.803198814392,90,-1,-1); AddStaticVehicle(435,2871.8303222656,911.44396972656,11.803198814392,90,-1,-1); AddStaticVehicle(435,2872.1440429688,906.42834472656,11.803198814392,90,-1,-1); AddStaticVehicle(435,2832.544921875,989.47448730469,11.803198814392,180,-1,-1); AddStaticVehicle(435,2836.3022460938,989.49896240234,11.803198814392,180,-1,-1); AddStaticVehicle(435,2840.3083496094,989.54168701172,11.803198814392,180,-1,-1); AddStaticVehicle(435,2844.0656738281,989.56701660156,11.803198814392,180,-1,-1); AddStaticVehicle(456,2832.2348632813,898.12139892578,11.007797241211,0,-1,-1); AddStaticVehicle(456,2836.0178222656,898.01196289063,11.007797241211,0,-1,-1); AddStaticVehicle(456,2839.7751464844,898.15124511719,11.007797241211,0,-1,-1); AddStaticVehicle(456,2843.283203125,898.26403808594,11.007797241211,0,-1,-1); AddStaticVehicle(456,2846.7919921875,898.37731933594,11.007797241211,0,-1,-1); AddStaticVehicle(456,2850.5495605469,898.51647949219,11.007797241211,0,-1,-1); AddStaticVehicle(456,1681.0671386719,1041.2723388672,11.0703125,0,-1,-1); AddStaticVehicle(456,1677.7806396484,1041.3806152344,11.0703125,0,-1,-1); AddStaticVehicle(456,1674.4352919922,1041.2408447266,11.0703125,0,-1,-1); AddStaticVehicle(456,1670.9895019531,1041.3195800781,11.0703125,0,-1,-1); AddStaticVehicle(456,1667.7034912109,1041.4284667969,11.0703125,0,-1,-1); AddStaticVehicle(414,1664.7110595703,1041.2944335938,10.97031211853,0,-1,-1); AddStaticVehicle(414,1661.9215087891,1041.4626464844,10.97031211853,0,-1,-1); AddStaticVehicle(414,1658.6649169922,1041.3228759766,10.97031211853,0,-1,-1); AddStaticVehicle(414,1655.3782958984,1041.4313964844,10.97031211853,0,-1,-1); AddStaticVehicle(414,1652.3403320313,1041.5695800781,10.97031211853,0,-1,-1); AddStaticVehicle(482,1651.9052734375,1028.7640380859,11.0703125,0,-1,-1); AddStaticVehicle(482,1655.4052734375,1028.8251953125,11.0703125,0,-1,-1); AddStaticVehicle(482,1658.6596679688,1028.6323242188,11.0703125,0,-1,-1); AddStaticVehicle(482,1661.6591796875,1028.6845703125,11.0703125,0,-1,-1); AddStaticVehicle(482,1664.9135742188,1028.4916992188,11.0703125,0,-1,-1); AddStaticVehicle(482,1668.1635742188,1028.548828125,11.0703125,0,-1,-1); AddStaticVehicle(482,1671.1630859375,1028.6015625,11.0703125,0,-1,-1); AddStaticVehicle(482,1674.1674804688,1028.404296875,11.0703125,0,-1,-1); AddStaticVehicle(482,1677.9169921875,1028.4702148438,11.0703125,0,-1,-1); AddStaticVehicle(482,1680.6713867188,1028.2680664063,11.0703125,0,-1,-1); AddStaticVehicle(515,1681.181640625,986.57849121094,11.974033355713,0,-1,-1); AddStaticVehicle(515,1677.3572998047,986.54699707031,11.974033355713,0,-1,-1); AddStaticVehicle(515,1673.236328125,986.70947265625,11.974033355713,0,-1,-1); AddStaticVehicle(515,1669.1672363281,986.62683105469,11.974033355713,0,-1,-1); AddStaticVehicle(435,1664.6231689453,987.91680908203,11.873511314392,0,-1,-1); AddStaticVehicle(435,1661.0946044922,987.69195556641,11.873511314392,0,-1,-1); AddStaticVehicle(435,1657.7589111328,987.76232910156,11.873511314392,0,-1,-1); AddStaticVehicle(435,1654.4239501953,987.83264160156,11.873511314392,0,-1,-1); AddStaticVehicle(578,-2170.5122070313,-220.87509155273,36.0703125,268,-1,-1); AddStaticVehicle(578,-2170.4956054688,-216.84378051758,36.0703125,267.99499511719,-1,-1); AddStaticVehicle(578,-2170.2307128906,-212.78251647949,36.0703125,267.99499511719,-1,-1); AddStaticVehicle(578,-2169.9360351563,-208.96919250488,36.0703125,267.99499511719,-1,-1); AddStaticVehicle(578,-2170.009765625,-204.96948242188,36.0703125,267.99499511719,-1,-1); AddStaticVehicle(515,-2103.5075683594,-197.6435638916,36.474033355713,90,-1,-1); AddStaticVehicle(515,-2114.3334960938,-197.61155700684,36.474033355713,90,-1,-1); AddStaticVehicle(515,-2103.0268554688,-202.85218811035,36.474033355713,90,-1,-1); AddStaticVehicle(515,-2114.1313476563,-203.02416992188,36.474033355713,90,-1,-1); AddStaticVehicle(514,-2103.3266601563,-207.39587402344,36.019989013672,90,-1,-1); AddStaticVehicle(514,-2114.6494140625,-207.28999328613,36.019989013672,90,-1,-1); AddStaticVehicle(514,-2103.3100585938,-211.42561340332,36.019989013672,90,-1,-1); AddStaticVehicle(514,-2114.6628417969,-211.56748962402,36.019989013672,90,-1,-1); AddStaticVehicle(403,-2114.1877441406,-216.20706176758,36.020313262939,90,-1,-1); AddStaticVehicle(403,-2103.4113769531,-216.44171142578,36.020313262939,90,-1,-1); AddStaticVehicle(403,-2103.2990722656,-220.71942138672,36.020313262939,90,-1,-1); AddStaticVehicle(403,-2114.1206054688,-220.98266601563,36.020313262939,90,-1,-1); AddStaticVehicle(435,-2132.1696777344,-260.84237670898,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2127.8566894531,-261.02127075195,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2124.0397949219,-261.2663269043,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2120.0078125,-261.23046875,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2115.9418945313,-261.04449462891,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2111.8754882813,-260.85797119141,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2108.0435902344,-260.72869873047,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2103.9858398438,-260.54254150391,36.373512268066,0,-1,-1); AddStaticVehicle(435,-2099.8623046875,-260.59936523438,36.373512268066,0,-1,-1); AddStaticVehicle(482,-2132.4243164063,-116.37313842773,35.5703125,0,-1,-1); AddStaticVehicle(482,-2129.4138183594,-116.32592773438,35.5703125,0,-1,-1); AddStaticVehicle(482,-2126.4030761719,-116.27807617188,35.5703125,0,-1,-1); AddStaticVehicle(482,-2123.6411132813,-116.2548828125,35.5703125,0,-1,-1); AddStaticVehicle(482,-2120.8793945313,-116.232421875,35.5703125,0,-1,-1); AddStaticVehicle(482,-2118.0930175781,-116.45874023438,35.5703125,0,-1,-1); AddStaticVehicle(482,-2115.5803222656,-116.46020507813,35.5703125,0,-1,-1); AddStaticVehicle(482,-2112.8188476563,-116.4375,35.5703125,0,-1,-1); AddStaticVehicle(482,-2112.7492675781,-122.20874023438,35.5703125,0,-1,-1); AddStaticVehicle(482,-2115.5102539063,-122.23046875,35.5703125,0,-1,-1); AddStaticVehicle(482,-2118.2709960938,-122.2529296875,35.5703125,0,-1,-1); AddStaticVehicle(482,-2120.7834472656,-122.25073242188,35.5703125,0,-1,-1); AddStaticVehicle(482,-2123.7932128906,-122.29711914063,35.5703125,0,-1,-1); AddStaticVehicle(482,-2126.5544433594,-122.31958007813,35.5703125,0,-1,-1); AddStaticVehicle(482,-2129.8371582031,-122.14233398438,35.5703125,0,-1,-1); AddStaticVehicle(482,-2132.8469238281,-122.18872070313,35.5703125,0,-1,-1); AddStaticVehicle(515,-473.97799682617,-475.2571105957,26.677158355713,0,-1,-1); AddStaticVehicle(515,-478.97692871094,-475.17749023438,26.677158355713,0,-1,-1); AddStaticVehicle(515,-484.22592163086,-475.09344482422,26.677158355713,0,-1,-1); AddStaticVehicle(515,-489.22497558594,-475.01342773438,26.677158355713,0,-1,-1); AddStaticVehicle(514,-494.6575012207,-474.77490234375,26.223112106323,0,-1,-1); AddStaticVehicle(514,-499.44686889648,-475.20559692383,26.223112106323,0,-1,-1); AddStaticVehicle(514,-504.18585205078,-474.88790893555,26.223112106323,0,-1,-1); AddStaticVehicle(514,-508.92541503906,-474.57073974609,26.223112106323,0,-1,-1); AddStaticVehicle(403,-514.44677734375,-474.42199707031,26.223438262939,0,-1,-1); AddStaticVehicle(403,-519.74346923828,-474.48559570313,26.223438262939,0,-1,-1); AddStaticVehicle(403,-435.64624023438,-474.94549560547,26.223438262939,0,-1,-1); AddStaticVehicle(403,-529.62670898438,-474.85202026367,26.223438262939,0,-1,-1); AddStaticVehicle(435,-520.13830566406,-499.23321533203,26.162803649902,0,-1,-1); AddStaticVehicle(435,-525.49029541016,-497.68637084961,26.576637268066,0,-1,-1); AddStaticVehicle(435,-529.70056152344,-497.71398925781,26.576637268066,0,-1,-1); AddStaticVehicle(435,-534.82501220703,-498.26226806641,26.576637268066,0,-1,-1); AddStaticVehicle(435,-538.60748291016,-498.23968505859,26.576637268066,0,-1,-1); AddStaticVehicle(435,-543.13354492188,-498.11376953125,26.576637268066,0,-1,-1); AddStaticVehicle(435,-547.41131591797,-498.02227783203,26.576637268066,0,-1,-1); AddStaticVehicle(435,-551.51098632813,-498.46020507813,26.576637268066,0,-1,-1); AddStaticVehicle(435,-557.4990234375,-498.08862304688,26.576637268066,0,-1,-1); AddStaticVehicle(435,-562.23974609375,-497.79391479492,26.576637268066,0,-1,-1); AddStaticVehicle(435,-565.98193359375,-497.56088256836,26.576637268066,0,-1,-1); AddStaticVehicle(435,-569.73962402344,-497.57797241211,26.576637268066,0,-1,-1); AddStaticVehicle(456,-468.87689208984,-520.81530761719,25.76784324646,0,-1,-1); AddStaticVehicle(456,-472.23806762695,-520.72277832031,25.76784324646,0,-1,-1); AddStaticVehicle(482,-469.54376220703,-495.47729492188,25.76784324646,92,-1,-1); AddStaticVehicle(482,-469.51834106445,-497.84805297852,25.76784324646,91.99951171875,-1,-1); AddStaticVehicle(482,-469.41143798828,-500.45547485352,25.76784324646,91.99951171875,-1,-1); AddStaticVehicle(482,-469.54132080078,-503.14440917969,25.76784324646,91.99951171875,-1,-1); AddStaticVehicle(482,-469.67120361328,-505.83288574219,25.76784324646,91.99951171875,-1,-1); AddStaticVehicle(482,-469.80108642578,-508.52136230469,25.76784324646,91.99951171875,-1,-1); AddStaticVehicle(456,-78.004264831543,-1108.1759033203,1.328125,162,-1,-1); AddStaticVehicle(456,-74.431289672852,-1109.3146972656,1.328125,161.99890136719,-1,-1); AddStaticVehicle(456,-70.619873046875,-1110.529296875,1.328125,161.99890136719,-1,-1); AddStaticVehicle(456,-67.046435047852,-1111.6682128906,1.328125,161.99890136719,-1,-1); AddStaticVehicle(515,-60.986499786377,-1130.9918212891,2.2318458557129,70,-1,-1); AddStaticVehicle(515,-62.331848144531,-1134.7587890625,2.2318458557129,69.999328613281,-1,-1); AddStaticVehicle(515,-63.760669708252,-1138.7618408203,2.2318458557129,69.993896484375,-1,-1); AddStaticVehicle(515,-62.683765411377,-1143.9254150391,2.2318458557129,69.993896484375,-1,-1); AddStaticVehicle(435,-51.167015075684,-1134.83984375,2.1313240528107,70,-1,-1); AddStaticVehicle(435,-52.65975189209,-1138.6258544922,2.1313240528107,69.999328613281,-1,-1); AddStaticVehicle(435,-54.15193939209,-1142.4110107422,2.1313240528107,69.993896484375,-1,-1); AddStaticVehicle(435,-52.792770385742,-1147.2540283203,2.1313240528107,71.993896484375,-1,-1); AddStaticVehicle(482,-81.560340881348,-1136.6220703125,1.328125,0,-1,-1); AddStaticVehicle(482,-84.443939208984,-1135.7973632813,1.328125,0,-1,-1); AddStaticVehicle(514,2113.7702636719,-2160.3725585938,14.246549606323,180,-1,-1); AddStaticVehicle(514,2117.4354140625,-2160.5263671875,14.246549606323,180,-1,-1); AddStaticVehicle(514,2121.3061523438,-2160.4321289063,14.246549606323,180,-1,-1); AddStaticVehicle(514,2125.060546875,-2160.5859375,14.246549606323,180,-1,-1); AddStaticVehicle(435,2113.5424804688,-2150.21484375,14.600073814392,180,-1,-1); AddStaticVehicle(435,2117.5419921875,-2150.25390625,14.600073814392,180,-1,-1); AddStaticVehicle(435,2121.2919921875,-2150.2905273438,14.600073814392,180,-1,-1); AddStaticVehicle(435,2125.0419921875,-2150.3266601563,14.600073814392,180,-1,-1); AddStaticVehicle(482,2134.7646484375,-2166.8283691406,13.804370880127,0,-1,-1); AddStaticVehicle(482,2137.7097167969,-2164.5048828125,13.804370880127,0,-1,-1); AddStaticVehicle(482,2140.3918457031,-2161.6877441406,13.804370880127,0,-1,-1); AddStaticVehicle(482,2140.3918457031,-2161.6877441406,13.804370880127,0,-1,-1); AddStaticVehicle(403,3915.8657226563,-1998.6021728516,12.290036201477,0,-1,-1); AddStaticVehicle(403,3921.2583007813,-1998.5010986328,12.290036201477,0,-1,-1); AddStaticVehicle(403,3926.4072265625,-1998.3460693359,12.290036201477,0,-1,-1); AddStaticVehicle(514,3937.0773925781,-1998.2034912109,12.442512512207,0,-1,-1); AddStaticVehicle(514,3941.5727539063,-1998.4250488281,12.442512512207,0,-1,-1); AddStaticVehicle(514,3946.080078125,-1998.3969726563,12.442512512207,0,-1,-1); AddStaticVehicle(514,3932.0356445313,-1998.2434082031,12.442512512207,0,-1,-1); AddStaticVehicle(515,3954.9963378906,-1998.6241455078,12.896456718445,0,-1,-1); AddStaticVehicle(515,3960.0034179688,-1998.6208496094,12.896456718445,0,-1,-1); AddStaticVehicle(515,3965.2478027344,-1998.8790283203,12.896456718445,0,-1,-1); AddStaticVehicle(515,3950.1440429688,-1998.6145019531,12.896456718445,0,-1,-1); AddStaticVehicle(435,3965.0688476563,-2009.3623046875,11.97119140625,0,-1,-1); AddStaticVehicle(435,3960.5727539063,-2009.1975097656,11.97119140625,0,-1,-1); AddStaticVehicle(435,3955.3273925781,-2009.0050048828,11.97119140625,0,-1,-1); AddStaticVehicle(435,3949.814453125,-2009.3032226563,11.97119140625,0,-1,-1); AddStaticVehicle(435,3945.818359375,-2009.15625,11.97119140625,0,-1,-1); AddStaticVehicle(435,3941.5725097656,-2009.0006103516,11.97119140625,0,-1,-1); AddStaticVehicle(435,3937.0766601563,-2008.8352050781,11.97119140625,0,-1,-1); AddStaticVehicle(435,3932.0810546875,-2008.6518554688,11.97119140625,0,-1,-1); AddStaticVehicle(435,3926.5864257813,-2008.4499511719,11.97119140625,0,-1,-1); AddStaticVehicle(435,3921.5908203125,-2008.2661132813,11.97119140625,0,-1,-1); AddStaticVehicle(435,3915.8464355469,-2008.0550537109,11.97119140625,0,-1,-1); ShowPlayerMarkers(1); ShowNameTags(1); AllowAdminTeleport(1); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0xFFFF00AA, "Welcome to >>> Hell's Angel's Trucking Server(0.3b) <<<"); SendClientMessage(playerid, 0x33CCFFAA, "[Cmds] Type /cmds for the list of all available commands!"); M_OnPlayerConnect(playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { M_OnPlayerDisconnect(playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/detach", true)) { new var0 = 0; var0 = GetPlayerVehicleID(playerid); DetachTrailerFromVehicle(var0); SendClientMessage(playerid, 0x375FFFFF, "Your trailer is Detached"); return 1; } if(!strcmp(cmdtext, "/flip", true)) { new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0; if(IsPlayerInAnyVehicle(playerid)) { SetCameraBehindPlayer(playerid); } GetPlayerPos(playerid, var0, var1, var2); SetVehiclePos(GetPlayerVehicleID(playerid), var0, var1, var2); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); return 1; } if(!strcmp(cmdtext, "/repair", true)) { if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!"); } RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!"); return 1; } if(!strcmp(cmdtext, "/kill", true)) { ForceClassSelection(playerid); SetPlayerHealth(playerid, 0.0); return 1; } if(!strcmp(cmdtext, "/reclass", true)) { ForceClassSelection(playerid); SetPlayerHealth(playerid, 0.0); return 1; } if(!strcmp(cmdtext, "/cmds", true)) { SendClientMessage(playerid, 0xAA3333AA, "/detach, /flip, /repair, /kill, /reclass, /work, /stopwork"); return 1; } if(!strcmp("/work", cmdtext, true)) { new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid)); if (pvehiclemodel == 403 || pvehiclemodel == 514 || pvehiclemodel == 515) { new string[200]; new rand = random(sizeof(TruckingMissionRandom)); CreatePlayerMission(playerid, TruckingMissionRandom[rand][UseTrailerCheck], TruckingMissionRandom[rand][MissionPay], TruckingMissionRandom[rand][loadx],TruckingMissionRandom[rand][loady], TruckingMissionRandom[rand][loadz], TruckingMissionRandom[rand][unloadx],TruckingMissionRandom[rand][unloady], TruckingMissionRandom[rand][unloadz]); format(string, sizeof(string), "You are doing mission: %s", TruckingMissionRandom[rand][MissionName]); SendClientMessage(playerid, 0x00FF00FF, string); } else { SendClientMessage(playerid, 0xFF0000AA, "Im sorry but this mission requires that you use a vehicle that can pull a semi trailer Ex: Roadtrain with an Artict1!"); } return 1; } if(!strcmp("/stopwork", cmdtext, true)) { CancelPlayersCurrentMission(playerid); } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); TogglePlayerClock(playerid,0); return 1; } public OnPlayerEnterCheckpoint(playerid) { M_OnPlayerEnterCheckpoint(playerid); return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { M_OnPlayerEnterRaceCheckpoint(playerid); return 1; } public OnPlayerFinishMission(playerid) { SendClientMessage(playerid, 0x00FF00FF, "You have delivered the load!"); return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); } public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); return 1; }