Guest User

Untitled

a guest
May 31st, 2017
1,110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 19.47 KB | None | 0 0
  1. // -===================================================-
  2. // ####################################################
  3. // ####################################################
  4. // ###### StevenGustav - Freeroam Server Gamemode #####
  5. // ####################################################
  6. // ####################################################
  7. // -===================================================-
  8.  
  9. #define COLOR_GREY 0xAFAFAFAA
  10. #define COLOR_GREEN 0x33AA33AA
  11. #define COLOR_BRIGHTRED 0xFF0000AA
  12. #define COLOR_YELLOW 0xFFFF00AA
  13. #define COLOR_PINK 0xFF66FFAA
  14. #define COLOR_BLUE 0x3A47DEFF
  15. #define COLOR_TAN 0xBDB76BAA
  16. #define COLOR_PURPLE 0x800080AA
  17. #define COLOR_WHITE 0xFFFFFFAA
  18. #define COLOR_LIGHTBLUE 0x33CCFFAA
  19. #define COLOR_ORANGE 0xFF9900AA
  20. #define COLOR_INDIGO 0x4B00B0AA
  21. #define COLOR_BLACK 0x00000000
  22. #define COLOR_DARKGREY 0x696969FF
  23.  
  24. #include <a_samp>
  25.  
  26. #if defined FILTERSCRIPT
  27.  
  28. #pragma tabsize 0
  29.  
  30. public OnFilterScriptInit()
  31. {
  32.     print("\n--------------------------------------");
  33.     print(" SG-Freeroam Server ");
  34.     print("--------------------------------------\n");
  35.     return 1;
  36. }
  37.  
  38. public OnFilterScriptExit()
  39. {
  40.     return 1;
  41. }
  42.  
  43. #else
  44.  
  45. main()
  46. {
  47.     print("\n----------------------------------");
  48.     print(" SG-Freeroam Server ");
  49.     print("----------------------------------\n");
  50. }
  51.  
  52. #endif
  53.  
  54. public OnGameModeInit()
  55. {
  56.     // Don't use these lines if it's a filterscript
  57.     for(new i = 0; i < 312; i++)
  58.     {
  59.     AddPlayerClass(i,410.6863,2532.9053,19.1484,142.4334,0,0,0,0,0,0); // playerspawn
  60.     }
  61.     //Mapping and Vehicles
  62.     CreateObject(19129, 403.99963, 2443.17163, 15.49236,   0.00000, 0.00000, 0.00000);
  63.     CreateObject(19129, 393.18381, 2443.20361, 15.49236,   0.00000, 0.00000, 0.00000);
  64.     CreateObject(19129, 393.18381, 2443.20361, 15.49236,   0.00000, 0.00000, 0.00000);
  65.     CreateObject(19129, 416.11423, 2443.08496, 15.49236,   0.00000, 0.00000, 0.00000);
  66.     CreateObject(19129, 419.37088, 2463.21509, 15.48603,   0.00000, 0.00000, 0.00000);
  67.     CreateObject(19129, 393.37103, 2463.04346, 15.48603,   0.00000, 0.00000, 0.00000);
  68.     CreateObject(19129, 413.22226, 2463.03589, 15.48603,   0.00000, 0.00000, 0.00000);
  69.     CreateObject(16684, 101.17450, 2400.76733, 217.43260,   0.00000, 0.00000, 0.00000);
  70.     CreateObject(16684, 100.08610, 2505.90674, 217.43260,   0.00000, 0.00000, 0.00000);
  71.     CreateObject(16684, 99.22626, 2453.56982, 217.43260,   0.00000, 0.00000, 0.00000);
  72.     CreateObject(16684, 99.82460, 2349.00098, 217.43260,   0.00000, 0.00000, 0.00000);
  73.     CreateObject(16684, 332.55444, 2346.86353, 217.43260,   0.00000, 0.00000, 0.00000);
  74.     CreateObject(16684, 334.43445, 2398.62866, 217.43260,   0.00000, 0.00000, 0.00000);
  75.     CreateObject(16684, 332.85120, 2451.52319, 217.43260,   0.00000, 0.00000, 0.00000);
  76.     CreateObject(16684, 334.30051, 2503.73047, 217.43260,   0.00000, 0.00000, 0.00000);
  77.     CreateObject(4165, -84.31020, 2265.83765, 117.02019,   0.00000, 0.00000, 347.37650);
  78.     CreateObject(3852, 9.28331, 2244.30029, 126.99873,   0.00000, 0.00000, 253.70534);
  79.     CreateObject(979, 9.21947, 2254.90942, 126.43900,   0.00000, 0.00000, 262.15521);
  80.     CreateObject(979, 64.01063, 2257.62329, 122.17737,   0.00000, 0.00000, 311.16821);
  81.     CreateObject(979, 64.01063, 2257.62329, 122.17737,   0.00000, 0.00000, 311.16821);
  82.     CreateObject(979, 69.12370, 2250.51831, 122.17737,   0.00000, 0.00000, 301.10052);
  83.     CreateObject(979, 69.12370, 2250.51831, 122.17737,   0.00000, 0.00000, 301.10052);
  84.     CreateObject(979, 71.14312, 2242.31958, 122.17737,   0.00000, 0.00000, 268.87259);
  85.     CreateObject(979, 70.90059, 2235.35376, 122.17737,   0.00000, 0.00000, 268.87259);
  86.     CreateObject(979, 67.88044, 2227.77393, 122.17737,   0.00000, 0.00000, 230.83156);
  87.     CreateObject(979, 61.59558, 2221.47437, 122.17737,   0.00000, 0.00000, 220.75778);
  88.     CreateObject(979, 9.24136, 2255.10913, 124.20573,   0.00000, 0.00000, 262.15521);
  89.     CreateObject(979, 9.26339, 2255.31470, 125.32591,   0.00000, 0.00000, 262.21521);
  90.     CreateObject(979, 6.63041, 2237.80835, 126.43900,   0.00000, 0.00000, 262.15521);
  91.     CreateObject(979, 6.63041, 2237.80835, 124.20573,   0.00000, 0.00000, 262.15521);
  92.     CreateObject(979, 6.63041, 2237.80835, 125.32591,   0.00000, 0.00000, 262.21521);
  93.     CreateObject(3852, 10.41502, 2248.14893, 126.99873,   0.00000, 0.00000, 254.84923);
  94.     CreateObject(1696, -59.50026, 2259.41602, 117.84450,   0.00000, 0.00000, 75.46391);
  95.     CreateObject(19743, -149.47955, 2284.53174, 119.40632,   0.00000, 0.00000, 0.00000);
  96.     CreateObject(4165, -224.59308, 2297.00732, 121.28906,   0.00000, 0.00000, 347.61108);
  97.     CreateObject(1696, -149.82422, 2280.62329, 121.36243,   0.00000, 0.00000, 97.64449);
  98.     CreateObject(1632, -288.32315, 2311.31006, 122.29678,   0.00000, 0.00000, 76.05190);
  99.     CreateObject(19743, -297.44073, 2317.48364, 128.95149,   0.00000, 0.00000, 356.66553);
  100.     CreateObject(11011, -320.43436, 2319.09692, 134.88226,   0.00000, 0.00000, 70.09898);
  101.     CreateObject(1632, -429.48508, 2409.70874, 105.01433,   0.00000, 0.00000, 328.25586);
  102.     CreateObject(8171, -417.91156, 2357.05371, 107.45552,   0.00000, 0.00000, 67.77152);
  103.     CreateObject(8171, -359.72168, 2492.83936, 67.96587,   0.00000, 0.00000, 254.12608);
  104.     CreateObject(1632, -401.36041, 2466.20776, 107.79560,   18.00000, 0.00000, 0.00000);
  105.     CreateObject(11011, -407.40292, 2443.89453, 105.19183,   0.00000, 0.00000, 324.55353);
  106.     CreateObject(3852, -294.94669, 2468.58398, 66.72882,   20.00000, 0.00000, 69.00000);
  107.     CreateObject(11011, -137.77115, 2349.64160, 54.11441,   0.00000, 0.00000, 241.84035);
  108.     CreateObject(4165, -44.70510, 2297.37842, 56.71650,   0.00000, -11.00000, 330.00000);
  109.     CreateObject(16192, -264.98438, 2387.00781, 64.81250,   356.85840, 0.00000, 3.14159);
  110.     CreateObject(19743, 11.01302, 2275.76733, 123.56882,   0.00000, 0.00000, 241.67921);
  111.     CreateObject(19743, 10.78756, 2275.50024, 70.46212,   0.00000, 0.00000, 234.92473);
  112.     CreateObject(19743, 11.01302, 2275.76733, 75.25454,   0.00000, 0.00000, 241.67921);
  113.     CreateObject(19743, 11.01302, 2275.76733, 79.76695,   0.00000, 0.00000, 241.67921);
  114.     CreateObject(19743, 11.01302, 2275.76733, 84.24613,   0.00000, 0.00000, 241.67921);
  115.     CreateObject(19743, 11.01302, 2275.76733, 84.24613,   0.00000, 0.00000, 241.67921);
  116.     CreateObject(19743, 11.01302, 2275.76733, 89.09117,   0.00000, 0.00000, 241.67921);
  117.     CreateObject(19743, 11.01302, 2275.76733, 93.95583,   0.00000, 0.00000, 241.67921);
  118.     CreateObject(19743, 11.01302, 2275.76733, 98.84447,   0.00000, 0.00000, 241.67921);
  119.     CreateObject(19743, 11.01302, 2275.76733, 103.62634,   0.00000, 0.00000, 241.67921);
  120.     CreateObject(19743, 11.01302, 2275.76733, 108.65446,   0.00000, 0.00000, 241.67921);
  121.     CreateObject(19743, 11.01302, 2275.76733, 108.65446,   0.00000, 0.00000, 241.67921);
  122.     CreateObject(19743, 11.01302, 2275.76733, 113.67173,   0.00000, 0.00000, 241.67921);
  123.     CreateObject(19743, 11.01302, 2275.76733, 118.59940,   0.00000, 0.00000, 241.67921);
  124.     CreateObject(19746, 26.56523, 2271.82031, 126.99297,   0.00000, 0.00000, 246.62535);
  125.     CreateObject(19746, 17.23885, 2270.36865, 127.12430,   0.00000, 0.00000, 65.60780);
  126.     CreateObject(19746, 12.10795, 2278.18628, 127.19397,   0.00000, 0.00000, 244.83589);
  127.     CreateVehicle(562, 427.6521, 2407.5247, 217.7867, 89.7443, -1, -1, 100);
  128.     CreateVehicle(562, 426.9948, 2329.6785, 217.7867, 89.7443, -1, -1, 100);
  129.     CreateVehicle(562, 427.1009, 2335.4355, 217.7867, 89.7443, -1, -1, 100);
  130.     CreateVehicle(562, 427.0287, 2341.6104, 217.7867, 89.7443, -1, -1, 100);
  131.     CreateVehicle(562, 426.9461, 2347.5674, 217.7867, 89.7443, -1, -1, 100);
  132.     CreateVehicle(562, 426.9391, 2354.5225, 217.7867, 89.7443, -1, -1, 100);
  133.     CreateVehicle(562, 426.9360, 2362.7764, 217.7867, 89.7443, -1, -1, 100);
  134.     CreateVehicle(562, 427.3445, 2379.7361, 217.7867, 89.7443, -1, -1, 100);
  135.     CreateVehicle(562, 427.2170, 2386.5779, 217.7867, 89.7443, -1, -1, 100);
  136.     CreateVehicle(562, 428.5916, 2516.5222, 217.7867, 89.7443, -1, -1, 100);
  137.     CreateVehicle(562, 427.2569, 2393.2200, 217.7867, 89.7443, -1, -1, 100);
  138.     CreateVehicle(562, 427.4373, 2400.1682, 217.7867, 89.7443, -1, -1, 100);
  139.     CreateVehicle(562, 427.8880, 2414.8000, 217.7867, 89.7443, -1, -1, 100);
  140.     CreateVehicle(562, 427.2889, 2431.7991, 217.7867, 89.7443, -1, -1, 100);
  141.     CreateVehicle(562, 427.2608, 2440.1528, 217.7867, 89.7443, -1, -1, 100);
  142.     CreateVehicle(562, 427.1466, 2448.0615, 217.7867, 89.7443, -1, -1, 100);
  143.     CreateVehicle(562, 427.5203, 2456.6636, 217.7867, 89.7443, -1, -1, 100);
  144.     CreateVehicle(562, 427.5203, 2456.6636, 217.7867, 89.7443, -1, -1, 100);
  145.     CreateVehicle(562, 427.9155, 2466.2290, 217.7867, 89.7443, -1, -1, 100);
  146.     CreateVehicle(562, 427.9155, 2466.2290, 217.7867, 89.7443, -1, -1, 100);
  147.     CreateVehicle(562, 427.9428, 2488.1235, 217.7867, 89.7443, -1, -1, 100);
  148.     CreateVehicle(562, 428.0578, 2495.2734, 217.7867, 89.7443, -1, -1, 100);
  149.     CreateVehicle(562, 428.0578, 2495.2734, 217.7867, 89.7443, -1, -1, 100);
  150.     CreateVehicle(562, 428.2232, 2502.1475, 217.7867, 89.7443, -1, -1, 100);
  151.     CreateVehicle(562, 428.3003, 2508.8806, 217.7867, 89.7443, -1, -1, 100);
  152.     CreateVehicle(522, 56.2320, 2220.7876, 122.9160, 89.8582, -1, -1, 100);
  153.     CreateVehicle(522, 62.7789, 2253.3777, 122.9160, 142.2508, -1, -1, 100);
  154.     CreateVehicle(522, 63.5295, 2252.2156, 122.9160, 142.2508, -1, -1, 100);
  155.     CreateVehicle(522, 61.9093, 2254.4028, 122.9160, 142.2508, -1, -1, 100);
  156.     CreateVehicle(522, 61.2628, 2255.6284, 122.9160, 142.2508, -1, -1, 100);
  157.     CreateVehicle(522, 59.6798, 2257.6565, 122.9160, 142.2508, -1, -1, 100);
  158.     CreateVehicle(522, 64.8961, 2251.0657, 122.9160, 142.2508, -1, -1, 100);
  159.     CreateVehicle(522, 65.8917, 2249.7156, 122.9160, 142.2508, -1, -1, 100);
  160.     CreateVehicle(522, 67.1378, 2248.7537, 122.9160, 142.2508, -1, -1, 100);
  161.     CreateVehicle(522, 67.7054, 2246.6873, 122.9160, 142.2508, -1, -1, 100);
  162.     CreateVehicle(522, 67.2939, 2244.5217, 122.9160, 142.2508, -1, -1, 100);
  163.     CreateVehicle(522, 67.4780, 2242.7498, 122.9160, 142.2508, -1, -1, 100);
  164.     CreateVehicle(522, 67.0209, 2240.3118, 122.9160, 142.2508, -1, -1, 100);
  165.     CreateVehicle(522, 66.9725, 2238.0232, 122.9160, 142.2508, -1, -1, 100);
  166.     CreateVehicle(522, 66.9725, 2238.0232, 122.9160, 142.2508, -1, -1, 100);
  167.     CreateVehicle(522, 66.9313, 2236.0713, 122.9160, 142.2508, -1, -1, 100);
  168.     CreateVehicle(522, 66.9313, 2236.0713, 122.9160, 142.2508, -1, -1, 100);
  169.     CreateVehicle(522, 66.9354, 2233.7954, 122.9160, 142.2508, -1, -1, 100);
  170.     CreateVehicle(522, 66.9371, 2231.6235, 122.9160, 142.2508, -1, -1, 100);
  171.     CreateVehicle(522, 64.5138, 2230.1721, 122.9160, 89.8582, -1, -1, 100);
  172.     CreateVehicle(522, 63.4895, 2228.8477, 122.9160, 89.8582, -1, -1, 100);
  173.     CreateVehicle(522, 62.3311, 2227.3850, 122.9160, 89.8582, -1, -1, 100);
  174.     CreateVehicle(522, 61.1573, 2225.9023, 122.9160, 89.8582, -1, -1, 100);
  175.     CreateVehicle(522, 61.1573, 2225.9023, 122.9160, 89.8582, -1, -1, 100);
  176.     CreateVehicle(522, 60.0457, 2224.5142, 122.9160, 89.8582, -1, -1, 100);
  177.     CreateVehicle(522, 58.9353, 2223.1479, 122.9160, 89.8582, -1, -1, 100);
  178.     CreateVehicle(522, 57.6515, 2221.8889, 122.9160, 89.8582, -1, -1, 100);
  179.     CreateVehicle(522, 57.6515, 2221.8889, 122.9160, 89.8582, -1, -1, 100);
  180.     CreateVehicle(522, 60.6233, 2256.6470, 122.9160, 142.2508, -1, -1, 100);
  181.     CreateVehicle(510, 1968.8058, 1603.8164, 23.2281, 0.0000, -1, -1, 100);
  182.     CreateVehicle(510, 1965.8624, 1644.9558, 22.4234, 0.0000, -1, -1, 100);
  183.     CreateVehicle(510, 1967.2640, 1646.6622, 22.4234, 0.0000, -1, -1, 100);
  184.     CreateVehicle(510, 1974.4401, 1651.7084, 24.6395, 0.0000, -1, -1, 100);
  185.     CreateVehicle(510, 1974.4401, 1651.7084, 24.6395, 0.0000, -1, -1, 100);
  186.     CreateVehicle(510, 1962.3618, 1635.5594, 24.9486, 0.0000, -1, -1, 100);
  187.     CreateVehicle(510, 1964.4153, 1625.5967, 27.1077, 0.0000, -1, -1, 100);
  188.     CreateVehicle(510, 1964.4153, 1625.5967, 27.1077, 0.0000, -1, -1, 100);
  189.     CreateVehicle(510, 1964.6984, 1622.1324, 27.1077, 0.0000, -1, -1, 100);
  190.     CreateVehicle(510, 1964.6984, 1622.1324, 27.1077, 0.0000, -1, -1, 100);
  191.     CreateVehicle(510, 1962.7498, 1615.2906, 27.1077, 0.0000, -1, -1, 100);
  192.     CreateVehicle(510, 1975.0270, 1600.5009, 22.4186, 0.0000, -1, -1, 100);
  193.     CreateVehicle(510, 1966.0016, 1608.1984, 26.3863, 0.0000, -1, -1, 100);
  194.     CreateVehicle(487, 365.3704, 2537.3452, 17.1024, 0.0000, -1, -1, 100);
  195.     CreateVehicle(511, 417.7538, 2492.8354, 19.7275, 90.6834, -1, -1, 100);
  196.     CreateVehicle(511, 417.5456, 2514.8608, 19.7275, 90.6834, -1, -1, 100);
  197.     CreateVehicle(447, 377.0984, 2537.8672, 16.9480, 0.0000, -1, -1, 100);
  198.     CreateVehicle(557, 403.6370, 2531.4788, 17.1272, 178.3518, -1, -1, 100);
  199.     CreateVehicle(557, 403.6716, 2545.3940, 17.1272, 178.3518, -1, -1, 100);
  200.     CreateVehicle(557, 403.7107, 2538.3586, 17.1272, 178.3518, -1, -1, 100);
  201.     CreateVehicle(562, 398.7544, 2532.0510, 16.3100, 178.3853, -1, -1, 100);
  202.     CreateVehicle(562, 398.8716, 2546.1721, 16.3100, 178.3853, -1, -1, 100);
  203.     CreateVehicle(562, 398.8713, 2539.0288, 16.3100, 178.3853, -1, -1, 100);
  204.     CreateVehicle(562, 398.8713, 2539.0288, 16.3100, 178.3853, -1, -1, 100);
  205.     CreateVehicle(522, 395.0026, 2530.5288, 16.6647, 91.0660, -1, -1, 100);
  206.     CreateVehicle(522, 395.3730, 2546.9790, 16.6647, 91.0660, -1, -1, 100);
  207.     CreateVehicle(522, 395.3332, 2545.3669, 16.6647, 91.0660, -1, -1, 100);
  208.     CreateVehicle(522, 395.2083, 2543.7024, 16.6647, 91.0660, -1, -1, 100);
  209.     CreateVehicle(522, 395.2083, 2543.7024, 16.6647, 91.0660, -1, -1, 100);
  210.     CreateVehicle(522, 395.1592, 2542.1772, 16.6647, 91.0660, -1, -1, 100);
  211.     CreateVehicle(522, 395.0958, 2540.4219, 16.6647, 91.0660, -1, -1, 100);
  212.     CreateVehicle(522, 395.0709, 2538.6653, 16.6647, 91.0660, -1, -1, 100);
  213.     CreateVehicle(522, 395.0548, 2537.0938, 16.6647, 91.0660, -1, -1, 100);
  214.     CreateVehicle(522, 395.0347, 2535.4409, 16.6647, 91.0660, -1, -1, 100);
  215.     CreateVehicle(522, 395.0154, 2533.8586, 16.6647, 91.0660, -1, -1, 100);
  216.     CreateVehicle(522, 395.0154, 2533.8586, 16.6647, 91.0660, -1, -1, 100);
  217.     CreateVehicle(522, 394.9939, 2532.0474, 16.6647, 91.0660, -1, -1, 100);
  218.     return 1;
  219. }
  220.  
  221. public OnGameModeExit()
  222. {
  223.     return 1;
  224. }
  225.  
  226. public OnPlayerRequestClass(playerid, classid)
  227. {
  228.     SetPlayerPos(playerid, 2482.113525, 1266.363037, 10.812500);
  229.     SetPlayerFacingAngle(playerid, 267.734191);
  230.     SetPlayerCameraLookAt(playerid, 2482.113525, 1266.363037, 10.812500);
  231.     SetPlayerCameraPos(playerid, 2482.113525 + (10 * floatsin(-267.734191, degrees)), 1266.363037 + (10 * floatcos(-267.734191, degrees)), 10.812500);
  232.     return 1;
  233. }
  234.  
  235. public OnPlayerConnect(playerid)
  236. {
  237.     GameTextForPlayer(playerid, "~r~Welcome~n~Choose a Skin", 2000, 6);
  238.     return 1;
  239. }
  240.  
  241. public OnPlayerDisconnect(playerid, reason)
  242. {
  243.     return 1;
  244. }
  245.  
  246. public OnPlayerSpawn(playerid)
  247. {
  248.     return 1;
  249. }
  250.  
  251. public OnPlayerDeath(playerid, killerid, reason)
  252. {
  253.     return 1;
  254. }
  255.  
  256. public OnVehicleSpawn(vehicleid)
  257. {
  258.     return 1;
  259. }
  260.  
  261. public OnVehicleDeath(vehicleid, killerid)
  262. {
  263.     return 1;
  264. }
  265.  
  266. public OnPlayerText(playerid, text[])
  267. {
  268.     return 1;
  269. }
  270.  
  271. public OnPlayerCommandText(playerid, cmdtext[])
  272. {
  273.     if (strcmp("/cmds", cmdtext, true, 9999) == 0)
  274.     {
  275.         SendClientMessage(playerid, COLOR_WHITE , "Here is the list of all available commands.");
  276.         ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Commands",
  277.         "/respawn - respawn yourself\n\
  278.         /credits - show the credits\n\
  279.         /heal - fill up your health and armour\n\
  280.         /weapons - arm up yourself\n\
  281.         /stunt - teleport yourself to the stunt map\n\
  282.         /drift - teleport yourself to the drift arena\n\
  283.         /parkour - teleport yourself to the parkour map\n\
  284.         /v <vehicle id / name> <color one> <color two> (colors are optional)\n\
  285.         /carfix - fix your car",
  286.         "OK", "");
  287.         return 1;
  288.     }
  289.    
  290.     if (strcmp("/credits", cmdtext, true, 2222) == 0)
  291.     {
  292.         SendClientMessage(playerid, COLOR_WHITE , "Here are the credits:");
  293.         ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_MSGBOX, "Credits:",
  294.         "StevenLV (Love'of'Gustav) - Owner of GM\n\
  295.         and all others who helped me on Forum of SAMP.",
  296.         "OK", "");
  297.         return 1;
  298.     }
  299.    
  300.     if (strcmp("/stunt", cmdtext, true, 10) == 0)
  301.     {
  302.         SetPlayerPos(playerid, 57.9386,2237.7283,124.3677);
  303.         SendClientMessage (playerid, COLOR_WHITE , "You have been successfully teleported to the Stunt Arena.");
  304.         return 1;
  305.     }
  306.    
  307.     if (strcmp("/drift", cmdtext, true, 10) == 0)
  308.     {
  309.         SetPlayerPos(playerid, 400.0866,2423.1379,218.4167);
  310.         SendClientMessage (playerid, COLOR_WHITE , "You have been successfully teleported to the Drifting Arena.");
  311.         return 1;
  312.     }
  313.    
  314.     if (strcmp("/parkour", cmdtext, true, 10) == 0)
  315.     {
  316.         SetPlayerPos(playerid, 1947.7684,1623.4146,22.7679);
  317.         SendClientMessage (playerid, COLOR_WHITE , "You have been successfully teleported to the Parkour Area.");
  318.         return 1;
  319.     }
  320.    
  321.     if (strcmp("/respawn", cmdtext, true, 10) == 0)
  322.     {
  323.         SetPlayerPos(playerid, 410.6863,2532.9053,19.1484);
  324.         SendClientMessage (playerid, COLOR_GREY , "You have been successfully re-spawned.");
  325.         return 1;
  326.     }
  327.  
  328.     if (strcmp("/weapons", cmdtext, true, 10) == 0)
  329.     {
  330.         GivePlayerWeapon(playerid, 24, 500);
  331.         GivePlayerWeapon(playerid, 26, 500);
  332.         GivePlayerWeapon(playerid, 27, 500);
  333.         GivePlayerWeapon(playerid, 34, 500);
  334.         GivePlayerWeapon(playerid, 46, 1);
  335.         GivePlayerWeapon(playerid, 37, 9999);
  336.         SendClientMessage (playerid, COLOR_GREEN , "You have successfully got the powerfull weapons! Now rock and roll!");
  337.         return 1;
  338.     }
  339.     if (strcmp("/heal", cmdtext, true, 10) == 0)
  340.     {
  341.         SetPlayerHealth(playerid, 100);
  342.         SetPlayerArmour(playerid, 100);
  343.         SendClientMessage (playerid, COLOR_BRIGHTRED , "You have been successfully healed.");
  344.         return 1;
  345.     }
  346.     if (strcmp("/godmode", cmdtext, true, 10) == 0)
  347.     {
  348.         SetPlayerHealth(playerid, 9999);
  349.         SendClientMessage (playerid, COLOR_WHITE , "You are now god mode.");
  350.         return 1;
  351.     }
  352.     new vehicleid = GetPlayerVehicleID(playerid);
  353.     if (strcmp("/fixcar", cmdtext, true, 10) == 0)
  354.     {
  355.         RepairVehicle(vehicleid);
  356.         SendClientMessage (playerid, COLOR_PINK , "Your vehicle has been successfully repaired.");
  357.         return 1;
  358.     }
  359.     return 0;
  360. }
  361.  
  362. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  363. {
  364.     return 1;
  365. }
  366.  
  367. public OnPlayerExitVehicle(playerid, vehicleid)
  368. {
  369.     return 1;
  370. }
  371.  
  372. public OnPlayerStateChange(playerid, newstate, oldstate)
  373. {
  374.     return 1;
  375. }
  376.  
  377. public OnPlayerEnterCheckpoint(playerid)
  378. {
  379.     return 1;
  380. }
  381.  
  382. public OnPlayerLeaveCheckpoint(playerid)
  383. {
  384.     return 1;
  385. }
  386.  
  387. public OnPlayerEnterRaceCheckpoint(playerid)
  388. {
  389.     return 1;
  390. }
  391.  
  392. public OnPlayerLeaveRaceCheckpoint(playerid)
  393. {
  394.     return 1;
  395. }
  396.  
  397. public OnRconCommand(cmd[])
  398. {
  399.     return 1;
  400. }
  401.  
  402. public OnPlayerRequestSpawn(playerid)
  403. {
  404.     return 1;
  405. }
  406.  
  407. public OnObjectMoved(objectid)
  408. {
  409.     return 1;
  410. }
  411.  
  412. public OnPlayerObjectMoved(playerid, objectid)
  413. {
  414.     return 1;
  415. }
  416.  
  417. public OnPlayerPickUpPickup(playerid, pickupid)
  418. {
  419.     return 1;
  420. }
  421.  
  422. public OnVehicleMod(playerid, vehicleid, componentid)
  423. {
  424.     return 1;
  425. }
  426.  
  427. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  428. {
  429.     return 1;
  430. }
  431.  
  432. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  433. {
  434.     return 1;
  435. }
  436.  
  437. public OnPlayerSelectedMenuRow(playerid, row)
  438. {
  439.     return 1;
  440. }
  441.  
  442. public OnPlayerExitedMenu(playerid)
  443. {
  444.     return 1;
  445. }
  446.  
  447. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  448. {
  449.     return 1;
  450. }
  451.  
  452. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  453. {
  454.     return 1;
  455. }
  456.  
  457. public OnRconLoginAttempt(ip[], password[], success)
  458. {
  459.     return 1;
  460. }
  461.  
  462. public OnPlayerUpdate(playerid)
  463. {
  464.     return 1;
  465. }
  466.  
  467. public OnPlayerStreamIn(playerid, forplayerid)
  468. {
  469.     return 1;
  470. }
  471.  
  472. public OnPlayerStreamOut(playerid, forplayerid)
  473. {
  474.     return 1;
  475. }
  476.  
  477. public OnVehicleStreamIn(vehicleid, forplayerid)
  478. {
  479.     return 1;
  480. }
  481.  
  482. public OnVehicleStreamOut(vehicleid, forplayerid)
  483. {
  484.     return 1;
  485. }
  486.  
  487. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  488. {
  489.     return 1;
  490. }
  491.  
  492. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  493. {
  494.     return 1;
  495. }
Add Comment
Please, Sign In to add comment