Advertisement
Guest User

sdad

a guest
Jun 22nd, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.28 KB | None | 0 0
  1. #include <a_samp>
  2. #include <sscanf2>
  3. #include <streamer>
  4. #include <zcmd>
  5.  
  6.  
  7. #define COLOR_RED 0xFF0000FF
  8. #define COLOR_GREEN 0x00FF00FF
  9. #define COLOR_AQUA 0xFFFF00
  10. #define COLOR_LIGHTGREEN 0xFF6600
  11. #define COLOR_BLUE 0x0099FF
  12.  
  13.  
  14.  
  15. main()
  16. {
  17. print("\n----------------------------------");
  18. print(" Server is loading...");
  19. print("----------------------------------\n");
  20. }
  21. new KillSpree[MAX_PLAYERS];
  22. new string[128], pname[24], kname[24];
  23. new gate;
  24. new God[MAX_PLAYERS] = 0;
  25. public OnGameModeInit()
  26. {
  27. gate = CreateObject(980,2107.3999000,1384.5000000,12.5000000,0.0000000,0.0000000,180.0000000); //object(airportgate) (1)
  28. SetGameModeText("Test");
  29. AddPlayerClass(17, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  30. AddPlayerClass(20, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  31. AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  32. AddPlayerClass(25, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  33. AddPlayerClass(37, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  34. AddPlayerClass(46, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  35. CreateObject(984,2087.5000000,1389.7000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (1)
  36. CreateObject(984,2087.5000000,1389.7000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (2)
  37. CreateObject(984,2087.5000000,1389.7000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (3)
  38. CreateObject(984,2087.5000000,1402.5000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (4)
  39. CreateObject(984,2087.5000000,1402.5000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (5)
  40. CreateObject(984,2087.5000000,1402.5000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (6)
  41. CreateObject(984,2087.5000000,1415.3000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (7)
  42. CreateObject(984,2087.5000000,1415.3000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (8)
  43. CreateObject(984,2087.5000000,1415.3000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (9)
  44. CreateObject(2774,2088.2000000,1422.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (1)
  45. CreateObject(3666,2087.6001000,1421.9000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (1)
  46. CreateObject(2774,2088.2000000,1384.0000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (2)
  47. CreateObject(8674,2092.6001000,1383.3000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence02_lvs) (1)
  48. CreateObject(2774,2098.2000000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (4)
  49. CreateObject(2774,2116.6001000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (5)
  50. CreateObject(8674,2122.5000000,1383.3000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence02_lvs) (2)
  51. CreateObject(2774,2126.8999000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (6)
  52. CreateObject(984,2134.0000000,1383.4000000,11.2000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (10)
  53. CreateObject(984,2134.0000000,1383.4000000,12.5000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (11)
  54. CreateObject(984,2134.0000000,1383.4000000,13.8000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (13)
  55. CreateObject(984,2146.8000000,1383.4000000,11.2000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (14)
  56. CreateObject(984,2146.8000000,1383.4000000,12.5000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (15)
  57. CreateObject(984,2146.8000000,1383.4000000,13.8000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (16)
  58. CreateObject(2774,2154.0000000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (7)
  59. CreateObject(2774,2164.3999000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (8)
  60. CreateObject(967,2113.8999000,1381.7000000,9.8000000,0.0000000,0.0000000,180.0000000); //object(bar_gatebox01) (1)
  61. CreateObject(3749,2107.3999000,1385.2000000,15.6000000,0.0000000,0.0000000,0.0000000); //object(clubgate01_lax) (1)
  62. CreateObject(8210,2116.8000000,1423.5000000,12.9000000,0.0000000,0.0000000,180.0000000); //object(vgsselecfence12) (1)
  63. CreateObject(2774,2144.8999000,1423.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (9)
  64. CreateObject(8659,2165.1001000,1399.4000000,10.8000000,0.0000000,0.0000000,268.0000000); //object(shbbyhswall11_lvs) (1)
  65. CreateObject(8659,2165.1001000,1399.4000000,12.8000000,0.0000000,0.0000000,267.9950000); //object(shbbyhswall11_lvs) (6)
  66. CreateObject(8659,2165.1001000,1399.4000000,14.7000000,0.0000000,0.0000000,267.9950000); //object(shbbyhswall11_lvs) (7)
  67. CreateObject(2774,2165.8999000,1413.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (10)
  68. CreateObject(8674,2158.5000000,1383.5000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence02_lvs) (4)
  69. CreateObject(3598,2158.7000000,1427.9000000,12.3000000,0.0000000,0.0000000,0.0000000); //object(hillhouse01_la) (1)
  70. CreateObject(2774,2165.8999000,1422.6000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (12)
  71. CreateObject(974,2165.6001000,1416.4000000,12.6000000,0.0000000,0.0000000,270.0000000); //object(tall_fence) (1)
  72. CreateObject(974,2165.6001000,1423.0000000,12.6000000,0.0000000,0.0000000,270.0000000); //object(tall_fence) (2)
  73. CreateObject(1238,2066.8999000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (1)
  74. CreateObject(1238,2067.6001000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (2)
  75. CreateObject(1238,2068.3000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (3)
  76. CreateObject(1238,2069.0000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (4)
  77. CreateObject(1238,2069.8000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (5)
  78. CreateObject(1238,2070.5000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (6)
  79. CreateObject(1238,2071.2000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (7)
  80. CreateObject(1238,2071.8999000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (8)
  81. CreateObject(1238,2072.6001000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (9)
  82. CreateObject(1238,2073.3000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (10)
  83. CreateObject(1238,2074.1001000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (11)
  84. CreateObject(1238,2074.8000000,1401.1000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (12)
  85. CreateObject(1238,2075.7000000,1401.1000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (13)
  86. CreateObject(1238,2076.6001000,1401.1000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (14)
  87. CreateObject(1215,2067.1001000,1400.1000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (1)
  88. CreateObject(1215,2068.8999000,1400.2000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (2)
  89. CreateObject(1215,2071.5000000,1400.3000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (3)
  90. CreateObject(1215,2073.8000000,1400.1000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (4)
  91. CreateObject(1215,2075.6001000,1400.0000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (5)
  92. CreateObject(1571,2079.0000000,1394.9000000,11.0000000,0.0000000,0.0000000,270.0000000); //object(cj_noodle_1) (1)
  93. CreateObject(1228,2068.3000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (1)
  94. CreateObject(1228,2070.8000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (2)
  95. CreateObject(1228,2073.3000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (3)
  96. CreateObject(1228,2075.5000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (4)
  97. CreateObject(1237,2066.5000000,1404.3000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (1)
  98. CreateObject(1237,2066.5000000,1408.0000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (2)
  99. CreateObject(1237,2066.5000000,1413.3000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (3)
  100. CreateObject(1237,2066.5000000,1417.0000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (4)
  101. CreateObject(1237,2066.5000000,1410.5000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (5)
  102. CreateObject(1282,2066.8000000,1406.0000000,10.4000000,0.0000000,0.0000000,180.0000000); //object(barrierm) (1)
  103. CreateObject(1282,2067.0000000,1402.5000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (2)
  104. CreateObject(1282,2066.6001000,1409.2000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (3)
  105. CreateObject(1282,2066.7000000,1412.0000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (4)
  106. CreateObject(1282,2066.6001000,1415.0000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (5)
  107. CreateObject(1423,2068.3000000,1417.0000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (1)
  108. CreateObject(1423,2071.1001000,1416.9000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (2)
  109. CreateObject(1423,2073.8999000,1416.8000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (3)
  110. CreateObject(1423,2076.7000000,1416.7000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (4)
  111. CreateObject(1238,2067.3999000,1415.9000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (15)
  112. CreateObject(1238,2068.2000000,1415.8000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (16)
  113. CreateObject(1238,2069.0000000,1415.8000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (17)
  114. CreateObject(1238,2069.8000000,1415.7000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (18)
  115. CreateObject(1238,2070.7000000,1415.7000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (19)
  116. CreateObject(1238,2071.5000000,1415.7000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (20)
  117. CreateObject(1238,2072.5000000,1415.6000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (21)
  118. CreateObject(1238,2073.6001000,1415.6000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (22)
  119. CreateObject(1238,2074.7000000,1415.5000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (23)
  120. CreateObject(1238,2076.0000000,1415.5000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (24)
  121. CreateObject(1238,2077.0000000,1415.4000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (25)
  122. CreateObject(1435,2077.5000000,1402.6000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (1)
  123. CreateObject(1435,2077.6001000,1404.6000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (2)
  124. CreateObject(1435,2077.6001000,1406.5000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (3)
  125. CreateObject(1435,2077.6001000,1408.2000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (4)
  126. CreateObject(1435,2077.6001000,1410.0000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (5)
  127. CreateObject(1435,2077.6001000,1411.9000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (6)
  128. CreateObject(1435,2077.6001000,1413.8000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (7)
  129. CreateObject(1435,2077.6001000,1415.8000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (8)
  130. CreateObject(854,2068.8999000,1412.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (1)
  131. CreateObject(854,2068.8999000,1412.0000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (2)
  132. CreateObject(854,2069.7000000,1412.5000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (3)
  133. CreateObject(854,2069.8000000,1411.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (4)
  134. CreateObject(854,2069.2000000,1411.3000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (5)
  135. CreateObject(854,2069.8999000,1411.1000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (6)
  136. CreateObject(854,2069.1001000,1410.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (7)
  137. CreateObject(854,2069.8000000,1410.6000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (8)
  138. CreateObject(854,2069.2000000,1409.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (9)
  139. CreateObject(854,2070.0000000,1409.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (10)
  140. CreateObject(854,2069.3000000,1408.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (11)
  141. CreateObject(854,2070.1001000,1408.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (12)
  142. CreateObject(854,2069.3000000,1407.9000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (13)
  143. CreateObject(854,2070.3000000,1407.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (14)
  144. CreateObject(854,2069.2000000,1407.1000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (15)
  145. CreateObject(854,2070.1001000,1406.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (16)
  146. CreateObject(3594,2074.2000000,1410.3000000,10.3000000,0.0000000,0.0000000,340.0000000); //object(la_fuckcar1) (1)
  147. CreateObject(3593,2071.2000000,1406.0000000,10.1000000,0.0000000,0.0000000,320.0000000); //object(la_fuckcar2) (1)
  148. CreateObject(3461,2070.8000000,1406.2000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (1)
  149. CreateObject(3461,2074.3999000,1409.6000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (2)
  150. CreateObject(3461,2069.7000000,1409.4000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (3)
  151. CreateObject(3461,2068.5000000,1407.6000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (4)
  152. CreateObject(3864,2075.0000000,1403.3000000,15.8000000,0.0000000,0.0000000,330.0000000); //object(ws_floodlight) (1)
  153. CreateObject(16023,2060.7000000,1400.2000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(des_trxingsign02) (1)
  154. CreateObject(1318,2057.8999000,1402.7000000,12.7000000,90.0000000,180.0000000,90.0000000); //object(arrow) (1)
  155. //VEHICLES - POLICE*************************************************************************
  156. CreateVehicle(597,2107.2219,1398.0138,10.6034,1.8529,0,1,5000); //
  157. CreateVehicle(597,2113.5083,1398.2826,10.5983,2.5971,0,1,5000); //
  158. CreateVehicle(427,2119.9900,1397.3726,10.9712,2.3053,0,1,5000); //
  159. CreateVehicle(541,2129.5852,1398.6177,10.4367,4.0603,0,0,5000); //
  160. CreateVehicle(541,2139.1060,1398.4567,10.4587,0.2019,0,0,5000); //
  161. CreateVehicle(597,2145.4314,1398.2661,10.5897,358.4324,0,1,5000); //
  162. CreateVehicle(598,2148.6848,1408.2065,10.7663,180.9715,0,1,5000); //
  163. CreateVehicle(598,2139.2874,1409.2712,10.6552,174.0817,0,1,5000); //
  164. CreateVehicle(541,2129.9336,1409.3942,10.4642,180.6670,0,1,5000); //
  165. CreateVehicle(490,2104.0244,1409.1675,10.9481,181.8539,0,1,5000); //
  166. //VEHICLES - POLICE*************************************************************************
  167. //VEHICLES MISCELLANIOUS********************************************************************
  168. CreateVehicle(597,2090.5127,1387.3590,10.5975,97.3056,0,1,5000); //
  169. //VEHICLES MISCELLANIOUS********************************************************************
  170. // 3D TEXT **********************************************************************************
  171. Create3DTextLabel("Fast-Food - To eat here - \n/fastfood",0xFFFFFF,2077.2600,1395.0649,10.6719,35,0,0);
  172. Create3DTextLabel("To open this gate - \n/lvo",0xFFFFFF,2106.7258,1383.9319,10.7840,35,0,0);
  173. Create3DTextLabel("To close this gate - \n/lvc",0xFFFFFF,2105.1899,1384.5117,10.8203,35,0,0);
  174. Create3DTextLabel("Car dealership - \nGo to pickup to buy cars.",0xFFFFFF,2188.7417,1526.8927,10.7980,35,0,0);
  175. Create3DTextLabel("/cdealer",0xFFFFFF,2205.3245,1508.5833,11.0547,25,0,0);
  176. Create3DTextLabel("Bike dealership - \nGo to pickup to buy bikes.",0xFFFFFF,1859.8086,1263.5361,10.8203,25,0,0);
  177. Create3DTextLabel("Bike dealership - \nGo to pickup to buy bikes.",0xFFFFFF,1888.5582,1105.5961,10.8203,25,0,0);
  178. Create3DTextLabel("/bdealer",0xFFFFFF,1896.5121,1169.4155,10.8203,25,0,0);
  179. // 3D TEXT **********************************************************************************
  180. // PICKUPS **********************************************************************************
  181. CreatePickup(1239,1,2205.3245,1508.5833,11.0547,0);
  182. CreatePickup(1239,1,1896.5121,1169.4155,10.8203,0);
  183. // PICKUPS **********************************************************************************
  184.  
  185. return 1;
  186. }
  187. CMD:bdealer(playerid, params[])
  188. {
  189. if(!IsPlayerInRangeOfPoint(playerid, 20, 1896.5121,1169.4155,10.8203)) return SendClientMessage(playerid, COLOR_RED, "You're not near bike dealership parking lot.");
  190. ShowPlayerDialog(playerid, 20326, DIALOG_STYLE_LIST, "Bike Dealer", "Faggio(5,000$)\nBF-400(7,000$)\nPCJ-600(10,000$)\nFCR-900(15,000$)\nSanchez(17,000$)\nNRG-500(25,000$)", "Accept", "Decline");
  191. return 1;
  192. }
  193. CMD:cdealer(playerid, params[])
  194. {
  195. if(!IsPlayerInRangeOfPoint(playerid, 20, 2205.3245,1508.5833,11.0547)) return SendClientMessage(playerid, COLOR_RED, "You're not near car dealership parking lot.");
  196. ShowPlayerDialog(playerid, 20326, DIALOG_STYLE_LIST, "Car Dealer", "Jester(25,000$)\nBullet(50,000$)\nCheetah(65,000$)\nInfernus(70,000$)\nMaverick(95,000$)\nSwat-Tank(110,000$)", "Accept", "Decline");
  197. return 1;
  198. }
  199. CMD:selltampa(playerid, params[])
  200. {
  201. if (GetVehicleModel(GetPlayerVehicleID(playerid)) != 549) return SendClientMessage(playerid, COLOR_RED, "You're not in tampa!");
  202. DestroyVehicle(GetPlayerVehicleID(playerid));
  203. GivePlayerMoney(playerid, 2000);
  204. SendClientMessage(playerid, COLOR_AQUA, "You found tampa! Congratulations! You earn 2000$!");
  205. return 1;
  206. }
  207. CMD:help(playerid, params[])
  208. {
  209. SendClientMessage(playerid, COLOR_RED, "--------------------------HELP--------------------------");
  210. SendClientMessage(playerid, COLOR_LIGHTGREEN, "This is a help dialog. Here you can see lots of helpful stuff, as you will be needing it in game.");
  211. SendClientMessage(playerid, COLOR_LIGHTGREEN, "We have few commands, which of course will be updated as this help dialog will be. Commands are:");
  212. SendClientMessage(playerid, COLOR_LIGHTGREEN, "/weapons, /bank, /pursuit, /fv, /god, /fastfood. You can see everywhere where you can use theese commands.");
  213. SendClientMessage(playerid, COLOR_LIGHTGREEN, "Hacking/Cheating on this server isn't allowed, if you do so you will be banned from this server.");
  214. SendClientMessage(playerid, COLOR_LIGHTGREEN, "Tampa is a very rare car all around the map. If you find it enter it, and use selltampa to get rewards");
  215. SendClientMessage(playerid, COLOR_LIGHTGREEN, "If you want to buy yourself a car, go to the truck on the map. If you want to buy a bike go to yellow circle on the map");
  216. SendClientMessage(playerid, COLOR_LIGHTGREEN, "We hope this help dialog was helpful, if not, contact admins for any further questions.");
  217. SendClientMessage(playerid, COLOR_RED, "--------------------------HELP--------------------------");
  218. return 1;
  219. }
  220. CMD:fv(playerid, params[])
  221. {
  222. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You're not in a vehicle.");
  223. SendClientMessage(playerid, COLOR_GREEN, "Vehicle fixed.");
  224. RepairVehicle(GetPlayerVehicleID(playerid));
  225. return 1;
  226. }
  227. CMD:god(playerid, params[])
  228. {
  229. if(God[playerid] == 1)
  230. {
  231. SendClientMessage(playerid, COLOR_RED, "You've disabled God Mode");
  232. SetPlayerHealth(playerid, 100);
  233. SetPlayerArmour(playerid, 100);
  234. God[playerid] = 0;
  235. return 1;
  236. }
  237. else if(God[playerid] == 0)
  238. {
  239. SendClientMessage(playerid, COLOR_GREEN, "You have enabled God Mode.");
  240. God[playerid] = 1;
  241. SetPlayerArmour(playerid, 9999999);
  242. SetPlayerHealth(playerid, 9999999);
  243. return 1;
  244. }
  245. return 1;
  246. }
  247. CMD:fastfood(playerid, params[])
  248. {
  249. if(IsPlayerInRangeOfPoint(playerid, 4, 2075.3000488281,1394,10.699999809265))
  250. {
  251. ShowPlayerDialog(playerid, 20328, DIALOG_STYLE_LIST, "Fast-Food shop.", "Hamburger(100$)\nHotDog(150$)\nPie(200$)\nBigMomma Burger(500$)", "I'll take this one.", "No thanks.");
  252. }
  253. else
  254. {
  255. SendClientMessage(playerid, 0xAA3333AA, "You're not near Fast-Food stand!");
  256. }
  257. return 1;
  258. }
  259. CMD:pursuit(playerid, params[])
  260. {
  261. new light = CreateObject(18646,2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);
  262. new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
  263. if (vehmodel == 541 || vehmodel == 560)
  264. {
  265. SendClientMessage(playerid, 0x2641FEAA, "You've put police light. Go get him!");
  266. AttachObjectToVehicle(light, GetPlayerVehicleID(playerid), 0, 0, 0.7, 0, 0, 0);
  267. }
  268. else
  269. {
  270. SendClientMessage(playerid, 0xAA3333AA, "You're not in police pursuit vehicle!");
  271. }
  272. return 1;
  273. }
  274. CMD:weapons(playerid, params[])
  275. {
  276. ShowPlayerDialog(playerid, 20322, DIALOG_STYLE_LIST, "Take a look at my other 44's", "9mm pistol(1000$)\nDesert Eagle(2000$)\nShotgun(2600$)\nUzi(3000$)\nMP5(3600$)\nAK-47(4500$)\nM4(5000$)\nFlamethrower(10000$)\nHeat Seeking RPG(15000$)", "Accept", "Decline");
  277. return 1;
  278. }
  279. CMD:bank(playerid, params[])
  280. {
  281. ShowPlayerDialog(playerid, 20324, DIALOG_STYLE_LIST, "Bank. Take as much money as you want", "Small cash(10,000$\nBig cash($100,000$)", "Holy mother!", "No!");
  282. return 1;
  283. }
  284. CMD:lvo(playerid, params[])
  285. {
  286. if(!IsPlayerInRangeOfPoint(playerid, 15, 2106.7258,1383.9319,10.7840)) return SendClientMessage(playerid, COLOR_RED, "You're not near LVPD gates!");
  287. MoveObject(gate,2107.3999000,1384.5000000,1.5,3);
  288. SendClientMessage(playerid, 0x99FFFF, "[LVPD]Welcome, sir!");
  289. return 1;
  290. }
  291. CMD:lvc(playerid, params[])
  292. {
  293. if(!IsPlayerInRangeOfPoint(playerid, 15, 2106.7258,1383.9319,10.7840)) return SendClientMessage(playerid, COLOR_RED, "You're not near LVPD gates!");
  294. MoveObject(gate,2107.3999000,1384.5000000,12.5000000,3);
  295. SendClientMessage(playerid, 0x99FFFF, "[LVPD]Closing the gate!");
  296. return 1;
  297. }
  298.  
  299. public OnGameModeExit()
  300. {
  301. return 1;
  302. }
  303.  
  304. public OnPlayerRequestClass(playerid, classid)
  305. {
  306. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  307. SetPlayerCameraPos(playerid,1961.8137,1342.7563,15.3746);
  308. SetPlayerCameraLookAt(playerid,1958.3783, 1343.1572, 15.3746);
  309. return 1;
  310. }
  311.  
  312. public OnPlayerConnect(playerid)
  313. {
  314. new string[254];
  315. new playername[MAX_PLAYER_NAME];
  316. GetPlayerName(playerid, playername, sizeof(playername));
  317. format(string, sizeof(string), "%s has connected to the server",playername);
  318. SendClientMessageToAll(0x99FFFF, string);
  319. GameTextForPlayer(playerid, "Dobrodosao, uzivaj!",5000,5);
  320. SetPlayerMapIcon(playerid,12,2205.3245,1508.5833,11.0547,51,0,MAPICON_LOCAL);
  321. SetPlayerMapIcon(playerid,13,1896.5121,1169.4155,10.8203,56,0,MAPICON_LOCAL);
  322. return 1;
  323. }
  324.  
  325. public OnPlayerDisconnect(playerid, reason)
  326. {
  327. return 1;
  328. }
  329. public OnPlayerSpawn(playerid)
  330.  
  331. {
  332. return 1;
  333. }
  334.  
  335. public OnPlayerDeath(playerid, killerid, reason)
  336. {
  337. if(God[playerid] == 1)
  338. {
  339. God[playerid] = 0;
  340. return 1;
  341. }
  342. GetPlayerName(playerid,killerid,reason);
  343. GetPlayerName(killerid,pname,sizeof(pname);
  344. GetPlayerName(playerid,kname,sizeof(kname);
  345. KillSpree[playerid] = 0;
  346. KillSpree[killerid] = ++;
  347. switch(KillSpree[killerid];
  348. }
  349. case 3:
  350. {
  351. format(string, sizeof(string), "%s is on killing spree with %d kills", pname, kname, KillSpree[killerid]);
  352. SetPlayerScore(killerid, GetPlayerScore(killerid) + 5);
  353. GivePlayerMoney(killerid, 1000);
  354. SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're on killing spree! You got +5 score and +1000$");
  355. }
  356. case 4:
  357. {
  358. format(string, sizeof(string), "%s is on rampage! with %d kills", pname, KillSpree[killerid]);
  359. SetPlayerScore(killerid, GetPlayerScore(killerid) + 10);
  360. GivePlayerMoney(killerid, 1500);
  361. SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're on rampage! You got +10 score and +1500$");
  362. }
  363. case 5:
  364. {
  365. format(string, sizeof(string), "%s is avenging! with %d kills", pname, KillSpree[killerid]);
  366. SetPlayerScore(killerid, GetPlayerScore(killerid) + 15);
  367. GivePlayerMoney(killerid, 2000);
  368. SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're avenging! You got +15 score and +2000$");
  369. }
  370. case 6:
  371. {
  372. format(string, sizeof(string), "%s is godlike! with %d kills", pname, KillSpree[killerid]);
  373. SetPlayerScore(killerid, GetPlayerScore(killerid) + 20);
  374. GivePlayerMoney(killerid, 3000);
  375. SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're godlike! You got +20 score and +3000$");
  376. }
  377. case 7:
  378. {
  379. format(string, sizeof(string), "%s is legendary! with %d kills", pname, KillSpree[killerid]);
  380. SetPlayerScore(killerid, GetPlayerScore(killerid) + 40);
  381. GivePlayerMoney(killerid, 5000);
  382. SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're legendary! You got +40 score and +5000$");
  383. }
  384. case 8:
  385. {
  386. format(string, sizeof(string), "HOLY SHIT! %s is destroying with %d kills", pname, KillSpree[killerid]);
  387. SetPlayerScore(killerid, GetPlayerScore(killerid) + 100);
  388. GivePlayerMoney(killerid, 15000);
  389. SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're destroying! You got +100 score and +15000$");
  390. return 1;
  391. }
  392.  
  393. public OnVehicleSpawn(vehicleid)
  394. {
  395. return 1;
  396. }
  397.  
  398. public OnVehicleDeath(vehicleid, killerid)
  399. {
  400. return 1;
  401. }
  402.  
  403. public OnPlayerText(playerid, text[])
  404. {
  405. return 1;
  406. }
  407.  
  408. public OnPlayerCommandText(playerid, cmdtext[])
  409. {
  410. if (strcmp("mycommand", cmdtext, true, 10) == 0)
  411. {
  412. return 1;
  413. }
  414. return 0;
  415. }
  416. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  417. {
  418. return 1;
  419. }
  420.  
  421. public OnPlayerExitVehicle(playerid, vehicleid)
  422. {
  423. return 1;
  424. }
  425.  
  426. public OnPlayerStateChange(playerid, newstate, oldstate)
  427. {
  428. return 1;
  429. }
  430.  
  431. public OnPlayerEnterCheckpoint(playerid)
  432. {
  433. return 1;
  434. }
  435.  
  436. public OnPlayerLeaveCheckpoint(playerid)
  437. {
  438. return 1;
  439. }
  440.  
  441. public OnPlayerEnterRaceCheckpoint(playerid)
  442. {
  443. return 1;
  444. }
  445.  
  446. public OnPlayerLeaveRaceCheckpoint(playerid)
  447. {
  448. return 1;
  449. }
  450.  
  451. public OnRconCommand(cmd[])
  452. {
  453. return 1;
  454. }
  455.  
  456. public OnPlayerRequestSpawn(playerid)
  457. {
  458. return 1;
  459. }
  460.  
  461. public OnObjectMoved(objectid)
  462. {
  463. return 1;
  464. }
  465.  
  466. public OnPlayerObjectMoved(playerid, objectid)
  467. {
  468. return 1;
  469. }
  470.  
  471. public OnPlayerPickUpPickup(playerid, pickupid)
  472. {
  473. return 1;
  474. }
  475.  
  476. public OnVehicleMod(playerid, vehicleid, componentid)
  477. {
  478. return 1;
  479. }
  480.  
  481. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  482. {
  483. return 1;
  484. }
  485.  
  486. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  487. {
  488. return 1;
  489. }
  490.  
  491. public OnPlayerSelectedMenuRow(playerid, row)
  492. {
  493. return 1;
  494. }
  495.  
  496. public OnPlayerExitedMenu(playerid)
  497. {
  498. return 1;
  499. }
  500.  
  501. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  502. {
  503. return 1;
  504. }
  505.  
  506. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  507. {
  508. return 1;
  509. }
  510.  
  511. public OnRconLoginAttempt(ip[], password[], success)
  512. {
  513. return 1;
  514. }
  515.  
  516. public OnPlayerUpdate(playerid)
  517. {
  518. if(IsPlayerInAnyVehicle(playerid))
  519. {
  520. if(God[playerid] == 1)
  521. {
  522. new vid;
  523. vid = GetPlayerVehicleID(playerid);
  524. RepairVehicle(vid);
  525. }
  526. }
  527. return 1;
  528. }
  529.  
  530. public OnPlayerStreamIn(playerid, forplayerid)
  531. {
  532. return 1;
  533. }
  534.  
  535. public OnPlayerStreamOut(playerid, forplayerid)
  536. {
  537. return 1;
  538. }
  539.  
  540. public OnVehicleStreamIn(vehicleid, forplayerid)
  541. {
  542. return 1;
  543. }
  544.  
  545. public OnVehicleStreamOut(vehicleid, forplayerid)
  546. {
  547. return 1;
  548. }
  549.  
  550. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  551. {
  552.  
  553. if(dialogid == 20321 && response)
  554. {
  555. switch(listitem)
  556. {
  557. case 0:
  558. {
  559. ShowPlayerDialog(playerid, 20322, DIALOG_STYLE_LIST, "Take a look at my other 44's", "9mm pistol(1000$)\nDesert Eagle(2000$)\nShotgun(2600$)\nUzi(3000$)\nMP5(3600$)\nAK-47(4500$)\nM4(5000$)\nFlamethrower(10000$)\nHeat Seeking RPG(15000$)", "Accept", "Decline");
  560. }
  561. }
  562. }
  563. if (dialogid == 20322 && response)
  564. {
  565. switch(listitem)
  566. {
  567. case 0:
  568. {
  569. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  570. GivePlayerWeapon(playerid, 22,100);
  571. GivePlayerMoney(playerid, -1000);
  572. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  573. }
  574. case 1:
  575. {
  576. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  577. GivePlayerWeapon(playerid, 24, 100);
  578. GivePlayerMoney(playerid, -2000);
  579. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  580. }
  581. case 2:
  582. {
  583. if(GetPlayerMoney(playerid) < 2600) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  584. GivePlayerWeapon(playerid, 26, 100);
  585. GivePlayerMoney(playerid, -2600);
  586. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  587. }
  588. case 3:
  589. {
  590. if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  591. GivePlayerWeapon(playerid, 28, 100);
  592. GivePlayerMoney(playerid, -3000);
  593. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  594. }
  595. case 4:
  596. {
  597. if(GetPlayerMoney(playerid) < 3600) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  598. GivePlayerWeapon(playerid, 29, 100);
  599. GivePlayerMoney(playerid, -3600);
  600. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  601. }
  602. case 5:
  603. {
  604. if(GetPlayerMoney(playerid) < 4500) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  605. GivePlayerWeapon(playerid, 30, 100);
  606. GivePlayerMoney(playerid, -4500);
  607. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  608. }
  609. case 6:
  610. {
  611. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  612. GivePlayerWeapon(playerid, 31, 100);
  613. GivePlayerMoney(playerid, -5000);
  614. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  615. }
  616. case 7:
  617. {
  618. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  619. GivePlayerWeapon(playerid, 37, 100);
  620. GivePlayerMoney(playerid, -10000);
  621. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  622. }
  623. case 8:
  624. {
  625. if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
  626. GivePlayerWeapon(playerid, 36, 100);
  627. GivePlayerMoney(playerid, -15000);
  628. SendClientMessage(playerid, 0x99FFFF, "Good luck!");
  629. }
  630. }
  631. }
  632. if(dialogid == 20323 && response)
  633. {
  634. switch(listitem)
  635. {
  636. case 0:
  637. {
  638.  
  639. ShowPlayerDialog(playerid, 20324, DIALOG_STYLE_LIST, "Bank. Take as much money as you want", "Small cash(10,000$)\nBig cash($100,000$)", "Holy mother!", "No!");
  640. }
  641. }
  642. }
  643. if (dialogid == 20324 && response)
  644. {
  645. switch(listitem)
  646. {
  647. case 0:
  648. {
  649. if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, COLOR_RED, "Wow, we can't help people like you.");
  650. GivePlayerMoney(playerid, 10000);
  651. SendClientMessage(playerid, 0x99FFFF, "Here you go");
  652. }
  653. case 1:
  654. {
  655. if(GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COLOR_RED, "Oh wow. That's unpleasant.");
  656. GivePlayerMoney(playerid, 100000);
  657. SendClientMessage(playerid, 0x99FFFF, "You don't know about us.");
  658. }
  659. }
  660. }
  661. if(dialogid == 20327 && response)
  662. {
  663. switch(listitem)
  664. {
  665. case 0:
  666. {
  667. ShowPlayerDialog(playerid, 20328, DIALOG_STYLE_LIST, "Fast-Food shop.", "Hamburger(100$)\nHotDog(150$)\nPie(200$)\nBigMomma Burger(500$)", "I'll take this one.", "No thanks.");
  668. }
  669. }
  670. }
  671. if (dialogid == 20328 && response)
  672. {
  673. switch(listitem)
  674. {
  675. case 0:
  676. {
  677. if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[SELLER]{FF0000FF}Not enough money.");
  678. GivePlayerMoney(playerid, -100);
  679. AddPlayerHealth(playerid, 20);
  680. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought Hamburger.");
  681. }
  682. case 1:
  683. {
  684. if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid, COLOR_RED, "{{FF0000}[SELLER]{FF0000FF}Not enough money.");
  685. GivePlayerMoney(playerid, -150);
  686. AddPlayerHealth(playerid, 40);
  687. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought Hot-Dog.");
  688. }
  689. case 2:
  690. {
  691. if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[SELLER]{FF0000FF}Not enough money.");
  692. GivePlayerMoney(playerid, -200);
  693. AddPlayerHealth(playerid, 75);
  694. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought Pie.");
  695. }
  696. case 3:
  697. {
  698. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[SELLER]{FF0000FF}Not enough money.");
  699. GivePlayerMoney(playerid, -500);
  700. SetPlayerHealth(playerid, 100);
  701. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought BigMomma Burger");
  702. }
  703. }
  704. }
  705. if(dialogid == 25 && response)
  706. {
  707. switch(listitem)
  708. {
  709. case 0:
  710. {
  711.  
  712. ShowPlayerDialog(playerid, 26, DIALOG_STYLE_LIST, "Car Dealer", "Jester(25,000$)\nBullet(50,000$)\nCheetah(65,000$)\nInfernus(70,000$)\nMaverick(95,000$)\nSwat-Tank(110,000$)", "Accept", "Decline");
  713. }
  714. }
  715. }
  716. if (dialogid == 26 && response)
  717. {
  718. switch(listitem)
  719. {
  720. case 0:
  721. {
  722. if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
  723. GivePlayerMoney(playerid, -25000);
  724. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought jester.");
  725. new Float:x, Float:y, Float:z;
  726. GetPlayerPos(playerid, x, y, z);
  727. CreateVehicle(559, x, y, z, 0, 1, 0, -1);
  728. }
  729. case 1:
  730. {
  731. if(GetPlayerMoney(playerid) < 50000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
  732. GivePlayerMoney(playerid, -50000);
  733. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought bullet.");
  734. new Float:x, Float:y, Float:z;
  735. GetPlayerPos(playerid, x, y, z);
  736. CreateVehicle(541, x, y, z, 0, 1, 0, -1);
  737. }
  738. case 2:
  739. {
  740. if(GetPlayerMoney(playerid) < 65000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
  741. GivePlayerMoney(playerid, -65000);
  742. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought cheetah.");
  743. new Float:x, Float:y, Float:z;
  744. GetPlayerPos(playerid, x, y, z);
  745. CreateVehicle(415, x, y, z, 0, 1, 0, -1);
  746. }
  747. case 3:
  748. {
  749. if(GetPlayerMoney(playerid) < 70000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
  750. GivePlayerMoney(playerid, -70000);
  751. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought infernus.");
  752. new Float:x, Float:y, Float:z;
  753. GetPlayerPos(playerid, x, y, z);
  754. CreateVehicle(411, x, y, z, 0, 1, 0, -1);
  755. }
  756. case 4:
  757. {
  758. if(GetPlayerMoney(playerid) < 95000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
  759. GivePlayerMoney(playerid, -95000);
  760. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought maverick.");
  761. new Float:x, Float:y, Float:z;
  762. GetPlayerPos(playerid, x, y, z);
  763. CreateVehicle(487, x, y, z, 0, 1, 0, -1);
  764. }
  765. case 5:
  766. {
  767. if(GetPlayerMoney(playerid) < 110000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
  768. GivePlayerMoney(playerid, -110000);
  769. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought swat-tank.");
  770. new Float:x, Float:y, Float:z;
  771. GetPlayerPos(playerid, x, y, z);
  772. CreateVehicle(601, x, y, z, 0, 1, 0, -1);
  773. }
  774. }
  775. }
  776. if(dialogid ==11 && response)
  777. {
  778. switch(listitem)
  779. {
  780. case 0:
  781. {
  782. ShowPlayerDialog(playerid, 20326, DIALOG_STYLE_LIST, "Bike Dealer", "Faggio(5,000$)\nBF-400(7,000$)\nPCJ-600(10,000$)\nFCR-900(15,000$)\nSanchez(17,000$)\nNRG-500(25,000$)", "Accept", "Decline");
  783. }
  784. }
  785. }
  786. if (dialogid == 20326 && response)
  787. {
  788. switch(listitem)
  789. {
  790. case 0:
  791. {
  792. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
  793. GivePlayerMoney(playerid, -5000);
  794. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought faggio");
  795. new Float:x, Float:y, Float:z;
  796. GetPlayerPos(playerid, x, y, z);
  797. CreateVehicle(462, x, y, z, 0, 1, 0, -1);
  798. }
  799. case 1:
  800. {
  801. if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
  802. GivePlayerMoney(playerid, -7000);
  803. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought BF-400");
  804. new Float:x, Float:y, Float:z;
  805. GetPlayerPos(playerid, x, y, z);
  806. CreateVehicle(581, x, y, z, 0, 1, 0, -1);
  807. }
  808. case 2:
  809. {
  810. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
  811. GivePlayerMoney(playerid, -10000);
  812. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought PCJ-600");
  813. new Float:x, Float:y, Float:z;
  814. GetPlayerPos(playerid, x, y, z);
  815. CreateVehicle(461, x, y, z, 0, 1, 0, -1);
  816. }
  817. case 3:
  818. {
  819. if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
  820. GivePlayerMoney(playerid, -15000);
  821. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought FCR-900");
  822. new Float:x, Float:y, Float:z;
  823. GetPlayerPos(playerid, x, y, z);
  824. CreateVehicle(521, x, y, z, 0, 1, 0, -1);
  825. }
  826. case 4:
  827. {
  828. if(GetPlayerMoney(playerid) < 17000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
  829. GivePlayerMoney(playerid, -17000);
  830. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought sanchez");
  831. new Float:x, Float:y, Float:z;
  832. GetPlayerPos(playerid, x, y, z);
  833. CreateVehicle(468, x, y, z, 0, 1, 0, -1);
  834. }
  835. case 5:
  836. {
  837. if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
  838. GivePlayerMoney(playerid, -250000);
  839. SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought NRG-500");
  840. new Float:x, Float:y, Float:z;
  841. GetPlayerPos(playerid, x, y, z);
  842. CreateVehicle(522, x, y, z, 0, 1, 0, -1);
  843. }
  844. }
  845. }
  846. return 1;
  847. }
  848.  
  849. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  850. {
  851. return 1;
  852. }
  853. AddPlayerHealth(playerid, Float: health)
  854. {
  855. new
  856. Float: curr_health;
  857.  
  858. if (GetPlayerHealth(playerid, curr_health)) return SetPlayerHealth(playerid, curr_health + health);
  859. return 0;
  860. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement