Guest User

Gamemode

a guest
Jan 11th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.37 KB | None | 0 0
  1. //#define FILTERSCRIPT
  2. //Server Config
  3. #define SERVER_NAME "Pink Panters Role Play"
  4. #define SERVER_MAP_NAME "Bone County"
  5. #define SERVER_GM_TEXT "PP:RP v1"
  6. #define SERVER_GM_CREATOR "Matej"
  7. #define SERVER_GM_UPDATER "Matej"
  8. // Includes
  9. #include <a_samp>
  10. #include <a_players>
  11. #include <streamer>
  12. #include <dini>
  13. #include <dudb>
  14. #include <mSelection>
  15. #include <dutils>
  16. #pragma unused ret_memcpy
  17. #include <foreach>
  18. #include <YSI\y_ini>
  19. #include <YSI\internal\y_version>
  20. #include <YSI\y_scripting>
  21. #include <YSI\y_utils>
  22. #include <YSI\y_als>
  23. #include <YSI\y_stringhash>
  24. #include <YSI\internal\y_shortfunc>
  25. #include <YSI\y_debug>
  26. #include <sscanf2>
  27. #include <zcmd>
  28. #include <f_streamer>
  29. #include <streamer>
  30. #include <OPSP>
  31. #include <progress>
  32. #include <yom_buttons>
  33. #include <gvc>
  34. #include <YSI\internal\y_version>
  35. #include <YSI\internal\y_funcinc>
  36. #define Scripting_FastString(%1,%2,%3,%4) \
  37. (((%1) << 0) | ((%2) << 8) | ((%3) << 16) | ((%4) << 24))
  38. #define TEXT_DRAW_FONT_MODEL_PREVIEW
  39. #define ALS_PREFIX S@@
  40. #define SpeedCheck(%0,%1,%2,%3,%4) floatround(floatsqroot(%4?(%0*%0+%1*%1+%2*%2):(%0*%0+%1*%1) ) *%3*1.6)
  41. #define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
  42. native WP_Hash(_buffer[], len, const str[]);
  43. #pragma tabsize 0
  44. #define MAX_CONNECTIONS_FROM_IP 2
  45. //Streamer
  46. #define STREAMER_TYPE_OBJECT (0)
  47. #define STREAMER_TYPE_PICKUP (1)
  48. #define STREAMER_TYPE_CP (2)
  49. #define STREAMER_TYPE_RACE_CP (3)
  50. #define STREAMER_TYPE_MAP_ICON (4)
  51. #define STREAMER_TYPE_3D_TEXT_LABEL (5)
  52. #define STREAMER_TYPE_AREA (6)
  53.  
  54. #define STREAMER_AREA_TYPE_CIRCLE (0)
  55. #define STREAMER_AREA_TYPE_CYLINDER (1)
  56. #define STREAMER_AREA_TYPE_SPHERE (2)
  57. #define STREAMER_AREA_TYPE_RECTANGLE (3)
  58. #define STREAMER_AREA_TYPE_CUBOID (4)
  59. #define STREAMER_AREA_TYPE_POLYGON (5)
  60.  
  61. #define STREAMER_OBJECT_TYPE_GLOBAL (0)
  62. #define STREAMER_OBJECT_TYPE_PLAYER (1)
  63. #define STREAMER_OBJECT_TYPE_DYNAMIC (2)
  64.  
  65. #define INVALID_STREAMER_ID (0)
  66. //YSI
  67. // Marker Colors
  68. #define TRANSPARENT_NG 0x9ACD3200
  69. #define TCOLOR_NAVYBLUE 0x8D8DFF00
  70. #define COLOR_ARES 0x9ACD3200
  71. #define TRANSPARENT_WHITE 0xFFFFFF00
  72. #define TRANSPARENT_GREY 0xAFAFAF00
  73. #define TRANSPARENT_BLUE 0x2641FE00
  74. #define TRANSPARENT_ORANGE 0xFF990000
  75. #define TRANSPARENT_PURPLE 0xC2A2DA00
  76. #define TRANSPARENT_VIP 0xC93CCE00
  77. //Petardi system
  78. #define RocketHeight 100 // You can edit this
  79. #define RocketSpread 30 // Spread till
  80. #define MAX_LAUNCH 20 // Max Could be launched
  81. #define MAX_FIREWORKS 100 // Max Fireworks had
  82. #define COLOR_YELLOW 0xFFFF00AA // Credits = SA-MP Forums
  83. // POLICE
  84. #define MARKER_LIGHTBLUE 0x33CCFFFF
  85. #define TOTAL_ITEMS 207
  86. #define SELECTION_ITEMS 21
  87. #define ITEMS_PER_LINE 7
  88. #define HEADER_TEXT "Vehicles"
  89. #define NEXT_TEXT "Next"
  90. #define PREV_TEXT "Prev"
  91. #define DIALOG_BASE_X 75.0
  92. #define DIALOG_BASE_Y 130.0
  93. #define DIALOG_WIDTH 550.0
  94. #define DIALOG_HEIGHT 180.0
  95. #define SPRITE_DIM_X 60.0
  96. #define SPRITE_DIM_Y 70.0
  97. new gTotalItems = TOTAL_ITEMS;
  98. // Colors
  99. #define COLOR_WHITE 0xFFFFFFFF
  100. #define COLOR_FADE1 0xE6E6E6E6
  101. #define COLOR_PM1 0xA65FC7FF
  102. #define COLOR_PM2 0xD35FC7FF
  103. #define COLOR_FADE2 0xC8C8C8C8
  104. #define COLOR_FADE3 0xAAAAAAAA
  105. #define COLOR_FADE4 0x8C8C8C8C
  106. #define COLOR_FADE5 0x6E6E6E6E
  107. #define TEAM_GROVE_COLOR 0x00AA00FF
  108. #define COLOR_OOC 0xE0FFFFFF
  109. #define COLOR_GREY 0xAFAFAFFF
  110. #define COLOR_LIGHTGREEN 0xADFF2FFF
  111. #define COLOR_LIGHTRED 0xFF6347FF
  112. #define COLOR_ALLDEPT 0xFF8282AA
  113. #define COLOR_DARKRED 0xAA3333FF
  114. #define COLOR_RED 0xFF0606FF
  115. #define TCOLOR_YELLOW 0xFFFF0000
  116. #define COLOR_TWPINK 0xE75480AA
  117. #define TEAM_HIT_COLOR 0xFFFFFF00
  118. #define COLOR_DBLUE 0x2641FEAA
  119. #define TEAM_CYAN_COLOR 0xFF8282AA
  120. #define COLOR_LIGHTBLUE 0x33CCFFFF
  121. #define COLOR_GREEN 0x33AA33FF
  122. #define COLOR_INDIGO 0x4B00B000
  123. #define COLOR_PINK 0xFF66FF00
  124. #define COLOR_BLACK 0x00000000
  125. #define COLOR_YELLOW 0xFFFF00FF
  126. #define COLOR_PURPLE 0xC2A2DAFF
  127. #define COLOR_ORANGE 0xFF9900FF
  128. #define COLOR_REPORT 0xFFFF91FF
  129. #define COLOR_RADIO 0x8D8DFFFF
  130. #define COLOR_DEPTRADIO 0xFFD700FF
  131. #define COLOR_BLUE 0x2641FEFF
  132. #define COLOR_MEDIC 0xFF8282FF
  133. #define COLOR_NEWBIE 0x589F39FF
  134. #define COLOR_LIME 0x00FF00FF
  135. #define COLOR_NEWS 0x049C7100
  136. #define COLOR_CYAN 0x01FCFFFF
  137. #define COLOR_VIP 0x33FFFF
  138. #define COLOR_SYSTEM 0xEFEFF7AA
  139. #define green 0x33FF33AA
  140. #define blue 0x00FFFFAA
  141. #define colorRed 0xFF0000FF
  142. #define colorYellow 0xFFFF00FF
  143. //Skins
  144. new skins[] = {
  145. 46,
  146. 47,
  147. 48,
  148. };
  149. //Clearchat spawnbutton
  150. #define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
  151. // Custom Defines
  152. #define RADIO 15
  153. #define MAX_FACTIONS 8 // 0 = Civil | 1 = BCVP | 2 = Vlada | 3 = Hitman Agency | 4 = Kanal 21 | 5 = BCFMD | 6 = Alfi
  154. #define MAX_FAMILIES 11 // 1 to 10, ignore 0
  155. #define MAX_BIZ 101 // Ignore 0
  156. #define MAX_BUILDINGS 51//Ignore 0
  157. #define MAX_HOUSES 1333 // Ignore 0
  158. #define MAX_GARAGES 501 //Ignore 0
  159. #define MAX_DOORS 500
  160. #define MAX_MAPICONS 100
  161. #define MAX_MUSIC 24
  162. #define MAX_ADS 50
  163. #define MAX_CUSTOM_VEHICLES 20
  164. #define MAX_POINTS 6
  165. #define MAX_DVEHICLES 50
  166. #define MAX_SPIKESTRIPS 30
  167. #define MAX_BLOCKADES 10
  168. #define MAX_GATES 50 // Ignore 0
  169. #define MAX_OBJ 1001
  170. #define MAX_gOBJ 1001
  171. #define MAX_vvveh 50
  172. //walkstyle defines
  173. #define WALK_DEFAULT (0)
  174. #define WALK_NORMAL (1)
  175. #define WALK_PED (2)
  176. #define WALK_GANGSTA (3)
  177. #define WALK_GANGSTA2 (4)
  178. #define WALK_OLD (5)
  179. #define WALK_FAT_OLD (6)
  180. #define WALK_FAT (7)
  181. #define WALK_LADY (8)
  182. #define WALK_LADY2 (9)
  183. #define WALK_WHORE (10)
  184. #define WALK_WHORE2 (11)
  185. #define WALK_DRUNK (12)
  186. #define WALK_BLIND (13)
  187.  
  188.  
  189. //Walks
  190. new walktime[MAX_PLAYERS];
  191.  
  192. // Rocket Systeem
  193. new Rocket[MAX_LAUNCH];
  194. new RocketLight[MAX_LAUNCH];
  195. new RocketSmoke[MAX_LAUNCH];
  196. new RocketExplosions[MAX_LAUNCH];
  197. new Float:rx[MAX_LAUNCH];
  198. new Float:ry[MAX_LAUNCH];
  199. new Float:rz[MAX_LAUNCH];
  200. new FireworkTotal;
  201. new Fired;
  202. //
  203. #if defined FILTERSCRIPT
  204. new door0;
  205. // 18456 = 19456 (Wall096)
  206. // 18619 = 19437 (Wall077)
  207. // 18621 = 19435 (Wall075)
  208. // 9577 = 19364 (Wall012)
  209. // 9623 = 19410 (Wall058)
  210. // 9590 = 19377 (Wall025)
  211. // 9575 = 19362 (Wall010)
  212. // 9582 = 19369 (Wall017)
  213. // 9610 = 19397 (Wall045)
  214. // 9628 = 19415 (Wall063)
  215. // 9592 = 19379 (Wall027)
  216. // 9606 = 19393 (Wall041)
  217. // 3915 = 19462 (Wall102)
  218. // 3916 = 19461 (Wall101)
  219. // 3909 = 19466 (Window001)
  220. // 3908 = 19330 (Firehat01)
  221. // 3907 = 19331 (Firehat02)
  222. // 18614 = 19442 (Wall082)
  223. // 9583 = 19370 (Wall018)
  224.  
  225. public OnFilterScriptInit()
  226. {
  227. print("\n--------------------------------------");
  228. print(" Fire Department - By Wennicke");
  229. print("--------------------------------------\n");
  230. return 1;
  231. }
  232. //Motor system podatoci
  233. forward StartEngine(playerid);
  234. forward DamagedEngine(playerid);
  235. new vehEngine[MAX_VEHICLES];
  236. //Motor system//
  237. public OnPlayerExitVehicle(playerid, vehicleid)
  238. {
  239. TogglePlayerControllable(playerid, 1);
  240. return 1;
  241. }
  242.  
  243. public OnFilterScriptInit()
  244. {
  245. return 1;
  246. }
  247. public OnFilterScriptExit()
  248. {
  249. return 1;
  250. }
  251.  
  252. #else
  253.  
  254. main()
  255. {
  256. print("\n----------------------------------");
  257. print(" Pink Panters Role Play ");
  258. print("----------------------------------\n");
  259. }
  260.  
  261.  
  262. #endif
  263.  
  264. public OnGameModeInit()
  265. {
  266. CreateObject(3589, -95.60000, 1053.19995, 21.50000, 0.00000, 0.00000, 96.00000);
  267. CreateObject(3634, -134.89999, 995.90002, 21.00000, 0.00000, 0.00000, 180.00000);
  268. CreateObject(769, -73.50000, 999.59998, 18.80000, 0.00000, 0.00000, 94.99900);
  269. CreateObject(3648, -92.50000, 997.40039, 21.50000, 0.00000, 0.00000, 0.00000);
  270. CreateObject(3649, -91.90000, 1021.50000, 21.00000, 0.00000, 0.00000, 0.00000);
  271. CreateObject(774, -76.90000, 1023.90002, 18.70000, 0.00000, 0.00000, 135.00000);
  272. CreateObject(3698, -149.30000, 1059.19995, 21.70000, 0.00000, 0.00000, 270.00000);
  273. CreateObject(3698, -150.70000, 1022.59998, 21.50000, 0.00000, 0.00000, 0.00000);
  274. CreateObject(1407, -137.39999, 1045.19995, 19.80000, 0.00000, 0.00000, 0.00000);
  275. CreateObject(1407, -106.00000, 1025.30005, 19.70000, 0.00000, 0.00000, 270.00000);
  276. CreateObject(1407, -106.00000, 1029.90002, 19.70000, 0.00000, 0.00000, 270.00000);
  277. CreateObject(1407, -103.60000, 1032.50000, 19.60000, 0.00000, 0.00000, 190.00000);
  278. CreateObject(1407, -99.00000, 1032.80005, 19.50000, 0.00000, 0.00000, 179.99800);
  279. CreateObject(1407, -93.80000, 1032.50000, 19.50000, 0.00000, 0.00000, 169.99500);
  280. CreateObject(1407, -89.20000, 1032.50000, 19.50000, 0.00000, 0.00000, 189.99100);
  281. CreateObject(1407, -84.50000, 1032.90002, 19.50000, 0.00000, 0.00000, 179.98700);
  282. CreateObject(1407, -79.90000, 1032.40002, 19.50000, 0.00000, 0.00000, 169.98399);
  283. CreateObject(1407, -77.20000, 1026.50000, 19.50000, 0.00000, 0.00000, 99.98000);
  284. CreateObject(1407, -77.30000, 1021.29999, 19.50000, 0.00000, 0.00000, 79.97600);
  285. CreateObject(1407, -78.20000, 1016.70001, 19.50000, 0.00000, 0.00000, 79.97500);
  286. CreateObject(1407, -105.90000, 1017.29999, 19.70000, 0.00000, 0.00000, 270.00000);
  287. CreateObject(1407, -103.10000, 1010.50000, 19.60000, 0.00000, 0.00000, 0.00000);
  288. CreateObject(1407, -98.30000, 1010.90002, 19.60000, 0.00000, 0.00000, 10.00000);
  289. CreateObject(1407, -93.70000, 1011.29999, 19.50000, 0.00000, 0.00000, 359.99799);
  290. CreateObject(1407, -105.50000, 1006.40002, 19.60000, 0.00000, 0.00000, 90.00000);
  291. CreateObject(1407, -105.60000, 1001.70001, 19.60000, 0.00000, 0.00000, 90.00000);
  292. CreateObject(1407, -105.40000, 989.59998, 19.70000, 0.00000, 0.00000, 90.00000);
  293. CreateObject(1407, -105.40000, 994.20001, 19.60000, 0.00000, 0.00000, 94.00000);
  294. CreateObject(1407, -103.10000, 987.59998, 19.60000, 0.00000, 0.00000, 190.00000);
  295. CreateObject(1407, -98.50000, 988.00000, 19.60000, 0.00000, 0.00000, 179.99500);
  296. CreateObject(1447, -75.50000, 1060.40002, 20.00000, 0.00000, 0.00000, 90.00000);
  297. CreateObject(1447, -75.60000, 1065.69995, 20.00000, 0.00000, 0.00000, 270.00000);
  298. CreateObject(1447, -75.50000, 1055.09998, 20.00000, 0.00000, 0.00000, 90.00000);
  299. CreateObject(1447, -75.50000, 1049.80005, 20.00000, 0.00000, 0.00000, 90.00000);
  300. CreateObject(1447, -76.80000, 1044.80005, 20.00000, 0.00000, 0.00000, 60.00000);
  301. CreateObject(1447, -80.90000, 1042.50000, 20.00000, 0.00000, 0.00000, 1.99600);
  302. CreateObject(652, -83.10000, 1063.30005, 18.70000, 0.00000, 0.00000, 329.99600);
  303. CreateObject(1456, -147.29980, 992.90039, 18.80000, 0.00000, 0.00000, 290.00000);
  304. CreateObject(1456, -148.50000, 997.70001, 19.10000, 0.00000, 0.00000, 279.99899);
  305. CreateObject(1456, -148.60001, 1002.09998, 19.30000, 0.00000, 0.00000, 259.99799);
  306. CreateObject(1456, -126.40000, 1004.79999, 19.60000, 0.00000, 0.00000, 89.99800);
  307. CreateObject(1456, -128.70000, 1007.00000, 19.60000, 0.00000, 0.00000, 179.99500);
  308. CreateObject(1456, -133.30000, 1007.00000, 19.60000, 0.00000, 0.00000, 179.99500);
  309. CreateObject(1456, -146.10001, 1005.20001, 19.50000, 0.00000, 0.00000, 199.99500);
  310. CreateObject(1456, -141.70000, 1006.29999, 19.50000, 0.00000, 0.00000, 189.99001);
  311. CreateObject(1460, -108.90000, 1061.80005, 19.50000, 0.00000, 0.00000, 280.00000);
  312. CreateObject(1460, -108.20000, 1057.19995, 19.60000, 0.00000, 0.00000, 279.99799);
  313. CreateObject(1460, -106.70000, 1049.00000, 19.70000, 0.00000, 0.00000, 279.99799);
  314. CreateObject(1460, -106.20000, 1044.50000, 19.60000, 0.00000, 0.00000, 269.99799);
  315. CreateObject(1460, -95.00000, 1041.19995, 19.50000, 0.00000, 0.00000, 359.98599);
  316. CreateObject(1460, -90.40000, 1041.50000, 19.50000, 0.00000, 0.00000, 9.98400);
  317. CreateObject(1460, -85.80000, 1042.19995, 19.50000, 0.00000, 0.00000, 9.98100);
  318. CreateObject(1709, -98.60000, 1042.69995, 18.70000, 0.00000, 0.00000, 200.00000);
  319. CreateObject(1765, -98.80000, 1045.00000, 18.70000, 0.00000, 0.00000, 330.00000);
  320. CreateObject(1460, -99.40000, 1040.40002, 19.50000, 0.00000, 0.00000, 19.98400);
  321. CreateObject(1765, -104.10000, 1043.69995, 18.80000, 0.00000, 0.00000, 59.99600);
  322. CreateObject(918, -106.40000, 1042.00000, 19.20000, 0.00000, 0.00000, 0.00000);
  323. CreateObject(850, -116.40000, 1018.59998, 19.00000, 0.00000, 0.00000, 0.00000);
  324. CreateObject(3119, -142.39999, 1027.40002, 19.00000, 0.00000, 0.00000, 0.00000);
  325. CreateObject(910, -142.80000, 1020.29999, 20.00000, 0.00000, 0.00000, 90.00000);
  326. CreateObject(913, -143.30000, 1024.90002, 19.60000, 0.00000, 0.00000, 90.00000);
  327. CreateObject(924, -142.89999, 1021.79999, 18.90000, 0.00000, 0.00000, 0.00000);
  328. CreateObject(928, -143.30000, 1025.80005, 19.00000, 0.00000, 0.00000, 0.00000);
  329. CreateObject(933, -101.50000, 1043.40002, 18.80000, 0.00000, 0.00000, 0.00000);
  330. CreateObject(1407, -144.10001, 1045.30005, 19.80000, 0.00000, 0.00000, 0.00000);
  331. CreateObject(1407, -148.70000, 1045.30005, 19.80000, 0.00000, 0.00000, 0.00000);
  332. CreateObject(1407, -152.80000, 1043.59998, 19.70000, 0.00000, 0.00000, 50.00000);
  333. CreateObject(1407, -158.89999, 1036.59998, 19.60000, 0.00000, 0.00000, 49.99900);
  334. CreateObject(2866, -143.00000, 1022.40002, 18.70000, 0.00000, 0.00000, 0.00000);
  335. CreateObject(2861, -142.80000, 1019.00000, 18.70000, 0.00000, 0.00000, 0.00000);
  336. CreateObject(2859, -142.20000, 1020.50000, 18.70000, 0.00000, 0.00000, 0.00000);
  337. CreateObject(2858, -142.00000, 1019.70001, 18.70000, 0.00000, 0.00000, 0.00000);
  338. CreateObject(2222, -102.00000, 1043.50000, 19.90000, 0.00000, 0.00000, 0.00000);
  339. CreateObject(2663, -101.10000, 1043.69995, 20.10000, 0.00000, 0.00000, 0.00000);
  340. CreateObject(2683, -101.60000, 1043.90002, 19.90000, 0.00000, 0.00000, 0.00000);
  341. CreateObject(2768, -101.10000, 1043.00000, 19.90000, 0.00000, 0.00000, 0.00000);
  342. CreateObject(2769, -101.90000, 1042.90002, 19.80000, 0.00000, 0.00000, 0.00000);
  343. CreateObject(2647, -101.40000, 1042.69995, 20.00000, 0.00000, 0.00000, 0.00000);
  344. CreateObject(2647, -104.20000, 1043.40002, 19.00000, 0.00000, 0.00000, 0.00000);
  345. CreateObject(2663, -104.60000, 1043.69995, 19.10000, 0.00000, 0.00000, 0.00000);
  346. CreateObject(3408, -106.10000, 1022.90002, 18.90000, 0.00000, 0.00000, 260.00000);
  347. CreateObject(3407, -139.39999, 1007.29999, 18.70000, 0.00000, 0.00000, 0.00000);
  348. CreateObject(1571, -175.60001, 1005.00000, 20.10000, 0.00000, 0.00000, 300.00000);
  349. CreateObject(1478, -105.80000, 999.20001, 19.40000, 0.00000, 0.00000, 280.00000);
  350. CreateObject(1346, -163.80000, 1040.59998, 20.10000, 0.00000, 0.00000, 90.00000);
  351. CreateObject(1346, -163.80000, 1037.80005, 20.10000, 0.00000, 0.00000, 90.00000);
  352. CreateObject(1462, -164.00000, 1038.80005, 18.70000, 0.00000, 0.00000, 80.00000);
  353. CreateObject(1450, -163.89999, 1041.90002, 19.30000, 0.00000, 0.00000, 100.00000);
  354. CreateObject(1450, -100.00000, 1055.19995, 19.70000, 0.00000, 0.00000, 290.00000);
  355. CreateObject(1449, -96.40000, 1033.09998, 19.20000, 0.00000, 0.00000, 180.00000);
  356. CreateObject(1442, -122.80000, 990.00000, 19.40000, 0.00000, 0.00000, 0.00000);
  357. CreateObject(1441, -127.90000, 998.29999, 19.40000, 0.00000, 0.00000, 90.00000);
  358. CreateObject(1440, -94.30000, 1010.20001, 19.30000, 0.00000, 0.00000, 0.00000);
  359. CreateObject(1439, -83.70000, 1020.29999, 18.70000, 0.00000, 0.00000, 90.00000);
  360. CreateObject(1438, -79.10000, 1031.00000, 18.70000, 0.00000, 0.00000, 0.00000);
  361. CreateObject(1430, -99.10000, 1016.29999, 19.10000, 0.00000, 0.00000, 0.00000);
  362. CreateObject(1372, -158.89999, 1065.90002, 18.80000, 0.00000, 0.00000, 0.00000);
  363. CreateObject(1371, -152.89999, 1051.69995, 19.70000, 0.00000, 0.00000, 300.00000);
  364. CreateObject(1369, -157.20000, 1065.90002, 19.40000, 0.00000, 0.00000, 0.00000);
  365. CreateObject(1358, -129.60001, 982.70001, 20.00000, 0.00000, 0.00000, 0.00000);
  366. CreateObject(1339, -98.50000, 991.90002, 19.40000, 0.00000, 0.00000, 270.00000);
  367. CreateObject(1337, -98.50000, 992.79999, 19.40000, 0.00000, 0.00000, 280.00000);
  368. CreateObject(1299, -92.70000, 989.20001, 19.10000, 0.00000, 0.00000, 0.00000);
  369. CreateObject(12957, -79.00000, 1008.09998, 19.60000, 0.00000, 0.00000, 0.00000);
  370. CreateObject(1265, -77.60000, 1005.90002, 19.20000, 0.00000, 0.00000, 0.00000);
  371. CreateObject(1265, -98.10000, 993.59998, 19.20000, 0.00000, 0.00000, 0.00000);
  372. CreateObject(1264, -97.80000, 991.00000, 19.20000, 0.00000, 0.00000, 0.00000);
  373. CreateObject(1264, -98.50000, 1015.40002, 19.20000, 0.00000, 0.00000, 0.00000);
  374. CreateObject(1264, -106.50000, 1019.40002, 19.40000, 0.00000, 0.00000, 0.00000);
  375. CreateObject(1265, -98.00000, 1047.59998, 19.20000, 0.00000, 0.00000, 0.00000);
  376. CreateObject(1265, -143.30000, 1023.40002, 19.20000, 0.00000, 0.00000, 0.00000);
  377. CreateObject(1224, -159.60001, 1020.09998, 19.40000, 0.00000, 0.00000, 0.00000);
  378. CreateObject(1221, -160.20000, 1018.70001, 19.20000, 0.00000, 0.00000, 0.00000);
  379. CreateObject(1333, -165.20000, 1065.90002, 19.70000, 0.00000, 0.00000, 100.00000);
  380. CreateObject(1330, -165.50000, 1064.59998, 19.20000, 0.00000, 0.00000, 0.00000);
  381. CreateObject(1328, -152.89999, 1061.19995, 19.40000, 0.00000, 0.00000, 0.00000);
  382. CreateObject(2670, -153.30000, 1064.90002, 18.90000, 0.00000, 0.00000, 0.00000);
  383. CreateObject(2670, -150.89999, 1030.40002, 18.80000, 0.00000, 0.00000, 0.00000);
  384. CreateObject(2670, -153.30000, 1051.59998, 19.00000, 0.00000, 0.00000, 0.00000);
  385. CreateObject(2670, -154.89999, 1042.09998, 19.00000, 0.00000, 0.00000, 0.00000);
  386. CreateObject(2670, -164.60001, 1064.50000, 18.80000, 0.00000, 0.00000, 0.00000);
  387. CreateObject(2670, -153.89999, 1057.09998, 19.00000, 0.00000, 0.00000, 0.00000);
  388. CreateObject(2670, -103.40000, 1042.19995, 18.90000, 0.00000, 0.00000, 0.00000);
  389. CreateObject(2670, -100.00000, 1024.00000, 18.80000, 0.00000, 0.00000, 0.00000);
  390. CreateObject(2670, -99.60000, 1014.79999, 18.90000, 0.00000, 0.00000, 0.00000);
  391. CreateObject(2671, -124.80000, 1012.59998, 18.80000, 0.00000, 0.00000, 0.00000);
  392. CreateObject(2671, -100.60000, 999.40002, 18.80000, 0.00000, 0.00000, 0.00000);
  393. CreateObject(2671, -99.90000, 989.59998, 18.80000, 0.00000, 0.00000, 0.00000);
  394. CreateObject(2671, -142.60001, 1063.80005, 18.80000, 0.00000, 0.00000, 0.00000);
  395. CreateObject(2671, -144.39999, 1052.69995, 19.00000, 0.00000, 0.00000, 0.00000);
  396. CreateObject(2672, -140.70000, 1057.50000, 19.20000, 0.00000, 0.00000, 0.00000);
  397. CreateObject(2672, -142.39999, 1024.69995, 19.00000, 0.00000, 0.00000, 0.00000);
  398. CreateObject(2672, -147.60001, 1026.30005, 19.00000, 0.00000, 0.00000, 0.00000);
  399. CreateObject(2672, -162.89999, 1036.30005, 19.00000, 0.00000, 0.00000, 0.00000);
  400. CreateObject(2673, -162.39999, 1041.69995, 18.80000, 0.00000, 0.00000, 0.00000);
  401. CreateObject(2674, -162.30000, 1039.40002, 18.80000, 0.00000, 0.00000, 0.00000);
  402. CreateObject(2674, -101.20000, 1045.90002, 18.80000, 0.00000, 0.00000, 0.00000);
  403. CreateObject(2675, -103.80000, 1047.40002, 18.90000, 0.00000, 0.00000, 0.00000);
  404. CreateObject(2675, -160.50000, 1037.80005, 18.80000, 0.00000, 0.00000, 0.00000);
  405. CreateObject(2675, -158.00000, 1027.80005, 18.80000, 0.00000, 0.00000, 0.00000);
  406. CreateObject(2676, -152.10001, 1028.09998, 18.80000, 0.00000, 0.00000, 0.00000);
  407. CreateObject(2677, -142.10001, 1020.09998, 19.00000, 0.00000, 0.00000, 0.00000);
  408. CreateObject(3594, -141.89999, 986.50000, 19.00000, 0.00000, 0.00000, 109.99800);
  409. CreateObject(1428, -152.10001, 1018.90002, 20.30000, 0.00000, 0.00000, 0.00000);
  410. CreateObject(1436, -167.89999, 1051.50000, 20.30000, 0.00000, 0.00000, 0.00000);
  411. CreateObject(1764, -156.30000, 1031.09998, 18.70000, 0.00000, 0.00000, 130.00000);
  412. CreateObject(1760, -157.70000, 1035.09998, 18.80000, 0.00000, 0.00000, 60.00000);
  413. CreateObject(1757, -164.30000, 1053.80005, 18.70000, 0.00000, 0.00000, 120.00000);
  414. CreateObject(1712, -128.30000, 1006.09998, 18.80000, 0.00000, 0.00000, 310.00000);
  415. CreateObject(1710, -103.90000, 1030.19995, 18.80000, 0.00000, 0.00000, 20.00000);
  416. CreateObject(3065, -143.39999, 1025.40002, 20.60000, 0.00000, 0.00000, 0.00000);
  417. CreateObject(3065, -169.70000, 1024.69995, 18.90000, 0.00000, 0.00000, 0.00000);
  418. CreateObject(946, -170.50000, 1026.30005, 21.00000, 0.00000, 0.00000, 270.00000);
  419. CreateObject(3031, -145.00000, 1019.70001, 25.90000, 0.00000, 0.00000, 320.00000);
  420. CreateObject(3031, -168.00000, 1037.90002, 24.00000, 0.00000, 350.00000, 49.00000);
  421. CreateObject(2357, -120.80000, 994.40002, 19.20000, 0.00000, 0.00000, 120.00000);
  422. CreateObject(1442, -102.90000, 1031.90002, 19.40000, 0.00000, 0.00000, 0.00000);
  423. CreateObject(2290, -99.50000, 1026.59998, 18.70000, 0.00000, 0.00000, 270.00000);
  424. CreateObject(2285, -165.57800, 1057.00000, 20.80000, 0.00000, 0.00000, 90.00000);
  425. CreateObject(2601, -101.00000, 1043.40002, 19.90000, 0.00000, 0.00000, 0.00000);
  426. CreateObject(933, -159.60001, 1033.30005, 18.70000, 0.00000, 0.00000, 0.00000);
  427. CreateObject(2601, -159.89999, 1032.69995, 19.80000, 0.00000, 0.00000, 0.00000);
  428. CreateObject(2601, -159.70000, 1033.90002, 19.80000, 0.00000, 0.00000, 0.00000);
  429. CreateObject(3698, -124.50000, 1038.09998, 21.60000, 0.00000, 0.00000, 0.00000);
  430. CreateObject(1757, -134.00000, 1040.69995, 18.90000, 0.00000, 0.00000, 0.00000);
  431. CreateObject(1760, -131.89999, 1036.19995, 18.80000, 0.00000, 0.00000, 180.00000);
  432. CreateObject(1737, -133.60001, 1038.30005, 18.70000, 0.00000, 0.00000, 0.00000);
  433. CreateObject(2601, -132.60001, 1038.50000, 19.60000, 0.00000, 0.00000, 0.00000);
  434. CreateObject(2601, -132.89999, 1038.09998, 19.60000, 0.00000, 0.00000, 0.00000);
  435. CreateObject(2663, -134.10001, 1038.30005, 19.10000, 0.00000, 0.00000, 0.00000);
  436. CreateObject(2647, -133.60001, 1038.30005, 19.70000, 0.00000, 0.00000, 0.00000);
  437. CreateObject(2647, -132.50000, 1038.00000, 19.70000, 0.00000, 0.00000, 0.00000);
  438. CreateObject(2683, -133.70000, 1038.50000, 19.60000, 0.00000, 0.00000, 0.00000);
  439. CreateObject(1520, -132.89999, 1038.50000, 19.50000, 0.00000, 0.00000, 0.00000);
  440. CreateObject(850, -133.00000, 1033.80005, 18.90000, 0.00000, 0.00000, 0.00000);
  441. CreateObject(3119, -131.50586, 1036.96680, 18.93942, 0.00000, 0.00000, 0.00000);
  442. CreateObject(1343, -117.10000, 1041.59998, 19.50000, 0.00000, 0.00000, 0.00000);
  443. CreateObject(1299, -116.60000, 1034.90002, 19.20000, 0.00000, 0.00000, 0.00000);
  444. CreateObject(1299, -127.20000, 990.00000, 19.20000, 0.00000, 0.00000, 0.00000);
  445. CreateObject(1264, -127.70000, 992.20001, 19.20000, 0.00000, 0.00000, 0.00000);
  446. CreateObject(1224, -122.30000, 1057.40002, 19.50000, 0.00000, 0.00000, 0.00000);
  447. CreateObject(1329, -132.30000, 1041.69995, 19.40000, 0.00000, 0.00000, 218.00000);
  448. CreateObject(1328, -115.20000, 1016.00000, 19.40000, 0.00000, 0.00000, 0.00000);
  449. CreateObject(2670, -116.10000, 1033.69995, 18.90000, 0.00000, 0.00000, 0.00000);
  450. CreateObject(2670, -137.70000, 1002.70001, 18.80000, 0.00000, 0.00000, 0.00000);
  451. CreateObject(2670, -133.20000, 1039.19995, 18.90000, 0.00000, 0.00000, 0.00000);
  452. CreateObject(2671, -135.60001, 1040.50000, 18.90000, 0.00000, 0.00000, 0.00000);
  453. CreateObject(2672, -135.30000, 1037.40002, 19.10000, 0.00000, 0.00000, 0.00000);
  454. CreateObject(2673, -130.30000, 1042.90002, 19.00000, 0.00000, 0.00000, 0.00000);
  455. CreateObject(2674, -144.80000, 1036.30005, 18.80000, 0.00000, 0.00000, 0.00000);
  456. CreateObject(2675, -141.10001, 1033.50000, 18.80000, 0.00000, 0.00000, 0.00000);
  457. CreateObject(2677, -134.60001, 1063.09998, 19.10000, 0.00000, 0.00000, 0.00000);
  458. CreateObject(3593, -126.60000, 1019.50000, 19.50000, 0.00000, 0.00000, 310.00000);
  459. CreateObject(1437, -116.60000, 1038.19995, 18.80000, 0.00000, 0.00000, 90.00000);
  460. CreateObject(1472, -129.60001, 1017.09998, 19.20000, 0.00000, 0.00000, 310.00000);
  461. CreateObject(1482, -163.89999, 1004.50000, 20.10000, 0.00000, 0.00000, 0.00000);
  462. CreateObject(3260, -165.30000, 1006.70001, 19.70000, 0.00000, 90.00000, 270.00000);
  463. CreateObject(3260, -165.30000, 1003.50000, 19.60000, 0.00000, 90.00000, 270.00000);
  464. CreateObject(3275, -120.20000, 979.29999, 19.80000, 0.00000, 0.00000, 0.00000);
  465. CreateObject(1712, -123.30000, 992.40002, 18.80000, 0.00000, 0.00000, 110.00000);
  466. CreateObject(3461, -122.80000, 990.00000, 18.20000, 0.00000, 0.00000, 0.00000);
  467. CreateObject(3461, -102.90000, 1031.90002, 18.00000, 0.00000, 0.00000, 0.00000);
  468. CreateObject(3461, -121.10000, 1012.29999, 17.50000, 0.00000, 0.00000, 0.00000);
  469. CreateObject(1463, -121.60000, 1012.40002, 19.20000, 0.00000, 40.00000, 190.00000);
  470. CreateObject(1463, -120.30000, 1011.59998, 19.20000, 0.00000, 39.99600, 309.99799);
  471. CreateObject(1463, -120.50000, 1013.00000, 19.20000, 0.00000, 39.99600, 69.99600);
  472. CreateObject(3461, -120.50000, 1011.70001, 17.40000, 0.00000, 0.00000, 0.00000);
  473. CreateObject(3461, -120.90000, 1012.90002, 17.20000, 0.00000, 0.00000, 0.00000);
  474. CreateObject(843, -120.30000, 959.90002, 21.30000, 0.00000, 0.00000, 0.00000);
  475. CreateObject(17969, -148.89999, 1052.17004, 21.80000, 0.00000, 0.00000, 90.00000);
  476. CreateObject(4227, -144.00000, 1073.30005, 20.30000, 0.00000, 0.00000, 0.00000);
  477. CreateObject(1527, -131.50000, 1040.59998, 21.40000, 0.00000, 0.00000, 0.00000);
  478. CreateObject(1215, -177.20000, 1005.59998, 20.50000, 0.00000, 0.00000, 0.00000);
  479. CreateObject(1215, -175.70000, 1003.00000, 20.50000, 0.00000, 0.00000, 0.00000);
  480. CreateObject(1449, -174.20000, 1003.20001, 19.30000, 0.00000, 0.00000, 30.00000);
  481. CreateObject(1407, -90.60000, 987.90002, 19.50000, 0.00000, 0.00000, 359.99500);
  482. CreateObject(1407, -86.10000, 988.59998, 19.60000, 0.00000, 0.00000, 19.98900);
  483. CreateObject(3350, -96.40000, 1001.79999, 22.40000, 0.00000, 0.00000, 220.75000);
  484. SetGameModeText("PPRPv1");
  485. AddPlayerClass(0,-312.2253,1576.8346,75.3594,222.4965,0,0,0,0,0,0); //Bone County Spawn Mesto
  486. return 1;
  487. }
  488.  
  489. public OnGameModeExit()
  490. {
  491. return 1;
  492. }
  493.  
  494. public OnPlayerRequestClass(playerid, classid)
  495. {
  496. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  497. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  498. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  499. return 1;
  500. }
  501.  
  502. public OnPlayerConnect(playerid)
  503. {
  504. return 1;
  505. }
  506.  
  507. public OnPlayerDisconnect(playerid, reason)
  508. {
  509. return 1;
  510. }
  511.  
  512. public OnPlayerSpawn(playerid)
  513. {
  514. SetPlayerSkin(playerid, 46);
  515. return 1;
  516. }
  517.  
  518. public OnPlayerDeath(playerid, killerid, reason)
  519. {
  520. return 1;
  521. }
  522.  
  523. public OnVehicleSpawn(vehicleid)
  524. {
  525. return 1;
  526. }
  527.  
  528. public OnVehicleDeath(vehicleid, killerid)
  529. {
  530. return 1;
  531. }
  532.  
  533. public OnPlayerText(playerid, text[])
  534. {
  535. return 1;
  536. }
  537.  
  538. public OnPlayerCommandText(playerid, cmdtext[])
  539. {
  540. new gate0, gate1, gate2;
  541. new door0;
  542. new string[256];
  543. new tmp[256];
  544. new cmd[256+1];
  545. new idx;
  546. cmd = strtok(cmdtext, idx);
  547. if (strcmp("/Firedept", cmdtext, true, 10) == 0)
  548. {
  549. SetPlayerPos(playerid,-257.95999146,1210.00000000,20.47400093+10);
  550. return 1;
  551. }
  552. if (strcmp("/enter", cmdtext, true, 10) == 0)
  553. {
  554. if(IsPlayerInRangeOfPoint(playerid,2.0,-219.4858,1209.2512,19.7422))
  555. {
  556. SetPlayerPos(playerid, -219.4180,1211.3994,19.7859);
  557. }
  558. return 1;
  559. }
  560. if (strcmp("/exit", cmdtext, true, 10) == 0)
  561. {
  562. if(IsPlayerInRangeOfPoint(playerid,2.0,-219.4180,1211.3994,19.7859))
  563. {
  564. SetPlayerPos(playerid, -219.4244,1209.0388,19.7422);
  565. }
  566. return 1;
  567. }
  568. if (strcmp("/gate0", cmdtext, true, 10) == 0)
  569. {
  570. if(IsPlayerInRangeOfPoint(playerid,10.0,-257.95999146,1210.00000000,20.47400093))
  571. {
  572. MoveObject(gate0,-257.96301270,1210.69995117,21.89999962,1.0,273.74633789,0.00000000,0.00000000);
  573. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate0 has been opened!");
  574. }
  575. return 1;
  576. }
  577. if (strcmp("/gate1", cmdtext, true, 10) == 0)
  578. {
  579. if(IsPlayerInRangeOfPoint(playerid,10.0,-251.84800720,1210.00000000,20.47400093))
  580. {
  581. MoveObject(gate1,-251.85000610,1210.69995117,21.89999962,1.0,273.75000000,0.00000000,0.00000000);
  582. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate1 has been opened!");
  583. }
  584. return 1;
  585. }
  586. if (strcmp("/gate2", cmdtext, true, 10) == 0)
  587. {
  588. if(IsPlayerInRangeOfPoint(playerid,10.0,-245.73599243,1210.00000000,20.47400093))
  589. {
  590. MoveObject(gate2,-245.73500061,1210.69995117,21.89999962,1.0,273.75000000,0.00000000,0.00000000);
  591. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate2 has been opened!");
  592. }
  593. return 1;
  594. }
  595. if(strcmp(cmd, "/closegate0", true) == 0)
  596. {
  597. if(IsPlayerInRangeOfPoint(playerid,10.0,-257.95999146,1210.00000000,20.47400093))
  598. {
  599. MoveObject(gate0,-257.95999146,1210.00000000,20.47400093,1.0,0.00000000,0.00000000,0.00000000);
  600. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate0 has been closed!");
  601. }
  602. return 1;
  603. }
  604.  
  605. if(strcmp(cmd, "/closegate1", true) == 0)
  606. {
  607. if(IsPlayerInRangeOfPoint(playerid,10.0,-251.84800720,1210.00000000,20.47400093))
  608. {
  609. MoveObject(gate1,-251.84800720,1210.00000000,20.47400093,1.0,0.00000000,0.00000000,0.00000000);
  610. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate1 has been closed!");
  611. }
  612. return 1;
  613. }
  614.  
  615. if(strcmp(cmd, "/closegate2", true) == 0)
  616. {
  617. if(IsPlayerInRangeOfPoint(playerid,10.0,-245.73599243,1210.00000000,20.47400093))
  618. {
  619. MoveObject(gate2,-245.73599243,1210.00000000,20.47400093,1.0,0.00000000,0.00000000,0.00000000);
  620. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate2 has been closed!");
  621. }
  622. return 1;
  623. }
  624. if (strcmp("/dooropen", cmdtext, true, 10) == 0)
  625. {
  626. if(IsPlayerInRangeOfPoint(playerid,2.0,-240.27999878,1215.77502441,23.37199974))
  627. {
  628. MoveObject(door0,-240.27999878,1215.77502441-1.25,23.37199974,0.5,0.00000000,0.00000000,90.00000000);
  629. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been opened!");
  630. }
  631. return 1;
  632. }
  633. if (strcmp("/doorclose", cmdtext, true, 10) == 0)
  634. {
  635. if(IsPlayerInRangeOfPoint(playerid,2.0,-240.27999878,1215.77502441,23.37199974))
  636. {
  637. MoveObject(door0,-240.27999878,1215.77502441,23.37199974,0.5,0.00000000,0.00000000,90.00000000);
  638. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been closed!");
  639. }
  640. return 1;
  641. }
  642. return 0;
  643. }
  644.  
  645. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  646. {
  647. return 1;
  648. }
  649.  
  650. public OnPlayerExitVehicle(playerid, vehicleid)
  651. {
  652. return 1;
  653. }
  654.  
  655. public OnPlayerStateChange(playerid, newstate, oldstate)
  656. {
  657. return 1;
  658. }
  659.  
  660. public OnPlayerEnterCheckpoint(playerid)
  661. {
  662. return 1;
  663. }
  664.  
  665. public OnPlayerLeaveCheckpoint(playerid)
  666. {
  667. return 1;
  668. }
  669.  
  670. public OnPlayerEnterRaceCheckpoint(playerid)
  671. {
  672. return 1;
  673. }
  674.  
  675. public OnPlayerLeaveRaceCheckpoint(playerid)
  676. {
  677. return 1;
  678. }
  679.  
  680. public OnRconCommand(cmd[])
  681. {
  682. return 1;
  683. }
  684.  
  685. public OnPlayerRequestSpawn(playerid)
  686. {
  687. return 1;
  688. }
  689.  
  690. public OnObjectMoved(objectid)
  691. {
  692. return 1;
  693. }
  694.  
  695. public OnPlayerObjectMoved(playerid, objectid)
  696. {
  697. return 1;
  698. }
  699.  
  700. public OnPlayerPickUpPickup(playerid, pickupid)
  701. {
  702. return 1;
  703. }
  704.  
  705. public OnVehicleMod(playerid, vehicleid, componentid)
  706. {
  707. return 1;
  708. }
  709.  
  710. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  711. {
  712. return 1;
  713. }
  714.  
  715. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  716. {
  717. return 1;
  718. }
  719.  
  720. public OnPlayerSelectedMenuRow(playerid, row)
  721. {
  722. return 1;
  723. }
  724.  
  725. public OnPlayerExitedMenu(playerid)
  726. {
  727. return 1;
  728. }
  729.  
  730. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  731. {
  732. return 1;
  733. }
  734.  
  735. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  736. {
  737. return 1;
  738. }
  739.  
  740. public OnRconLoginAttempt(ip[], password[], success)
  741. {
  742. return 1;
  743. }
  744.  
  745. public OnPlayerUpdate(playerid)
  746. {
  747. return 1;
  748. }
  749.  
  750. public OnPlayerStreamIn(playerid, forplayerid)
  751. {
  752. return 1;
  753. }
  754.  
  755. public OnPlayerStreamOut(playerid, forplayerid)
  756. {
  757. return 1;
  758. }
  759.  
  760. public OnVehicleStreamIn(vehicleid, forplayerid)
  761. {
  762. return 1;
  763. }
  764.  
  765. public OnVehicleStreamOut(vehicleid, forplayerid)
  766. {
  767. return 1;
  768. }
  769.  
  770. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  771. {
  772. return 1;
  773. }
  774.  
  775. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  776. {
  777. return 1;
  778. }
Advertisement
Add Comment
Please, Sign In to add comment