Guest User

Untitled

a guest
Nov 1st, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.39 KB | None | 0 0
  1. #pragma tabsize 0
  2. #define locate
  3. //#define FILTERSCRIPT
  4. //Colors
  5. #define COLOR_ACTIVEBORDER 0xB4B4B4FF
  6. #define COLOR_ACTIVECAPTION 0x99B4D1FF
  7. #define COLOR_ACTIVECAPTIONTEXT 0x000000FF
  8. #define COLOR_ALICEBLUE 0xF0F8FFFF
  9. #define COLOR_ANTIQUEWHITE 0xFAEBD7FF
  10. #define COLOR_APPWORKSPACE 0xABABABFF
  11. #define COLOR_AQUA 0x00FFFFFF
  12. #define COLOR_AQUAMARINE 0x7FFFD4FF
  13. #define COLOR_AZURE 0xF0FFFFFF
  14. #define COLOR_BEIGE 0xF5F5DCFF
  15. #define COLOR_BISQUE 0xFFE4C4FF
  16. #define COLOR_BLACK 0x000000FF
  17. #define COLOR_BLANCHEDALMOND 0xFFEBCDFF
  18. #define COLOR_BLUE 0x0000FFFF
  19. #define COLOR_BLUEVIOLET 0x8A2BE2FF
  20. #define COLOR_BROWN 0xA52A2AFF
  21. #define COLOR_BURLYWOOD 0xDEB887FF
  22. #define COLOR_BUTTONFACE 0xF0F0F0FF
  23. #define COLOR_BUTTONHIGHLIGHT 0xFFFFFFFF
  24. #define COLOR_BUTTONSHADOW 0xA0A0A0FF
  25. #define COLOR_CADETBLUE 0x5F9EA0FF
  26. #define COLOR_CHARTREUSE 0x7FFF00FF
  27. #define COLOR_CHOCOLATE 0xD2691EFF
  28. #define COLOR_CONTROL 0xF0F0F0FF
  29. #define COLOR_CONTROLDARK 0xA0A0A0FF
  30. #define COLOR_CONTROLDARKDARK 0x696969FF
  31. #define COLOR_CONTROLLIGHT 0xE3E3E3FF
  32. #define COLOR_CONTROLLIGHTLIGHT 0xFFFFFFFF
  33. #define COLOR_CONTROLTEXT 0x000000FF
  34. #define COLOR_CORAL 0xFF7F50FF
  35. #define COLOR_CORNFLOWERBLUE 0x6495EDFF
  36. #define COLOR_CORNSILK 0xFFF8DCFF
  37. #define COLOR_CRIMSON 0xDC143CFF
  38. #define COLOR_CYAN 0x00FFFFFF
  39. #define COLOR_DARKBLUE 0x00008BFF
  40. #define COLOR_DARKCYAN 0x008B8BFF
  41. #define COLOR_DARKGOLDENROD 0xB8860BFF
  42. #define COLOR_DARKGRAY 0xA9A9A9FF
  43. #define COLOR_DARKGREEN 0x006400FF
  44. #define COLOR_DARKKHAKI 0xBDB76BFF
  45. #define COLOR_DARKMAGENTA 0x8B008BFF
  46. #define COLOR_DARKOLIVEGREEN 0x556B2FFF
  47. #define COLOR_DARKORANGE 0xFF8C00FF
  48. #define COLOR_DARKORCHID 0x9932CCFF
  49. #define COLOR_DARKRED 0x8B0000FF
  50. #define COLOR_DARKSALMON 0xE9967AFF
  51. #define COLOR_DARKSEAGREEN 0x8FBC8BFF
  52. #define COLOR_DARKSLATEBLUE 0x483D8BFF
  53. #define COLOR_DARKSLATEGRAY 0x2F4F4FFF
  54. #define COLOR_DARKTURQUOISE 0x00CED1FF
  55. #define COLOR_DARKVIOLET 0x9400D3FF
  56. #define COLOR_DEEPPINK 0xFF1493FF
  57. #define COLOR_DEEPSKYBLUE 0x00BFFFFF
  58. #define COLOR_DESKTOP 0x000000FF
  59. #define COLOR_DIMGRAY 0x696969FF
  60. #define COLOR_DODGERBLUE 0x1E90FFFF
  61. #define COLOR_FIREBRICK 0xB22222FF
  62. #define COLOR_FLORALWHITE 0xFFFAF0FF
  63. #define COLOR_FORESTGREEN 0x228B22FF
  64. #define COLOR_FUCHSIA 0xFF00FFFF
  65. #define COLOR_GAINSBORO 0xDCDCDCFF
  66. #define COLOR_GHOSTWHITE 0xF8F8FFFF
  67. #define COLOR_GOLD 0xFFD700FF
  68. #define COLOR_GOLDENROD 0xDAA520FF
  69. #define COLOR_GRADIENTACTIVECAPTION 0xB9D1EAFF
  70. #define COLOR_GRADIENTINACTIVECAPTION 0xD7E4F2FF
  71. #define COLOR_GRAY 0x808080FF
  72. #define COLOR_GRAYTEXT 0x808080FF
  73. #define COLOR_GREEN 0x008000FF
  74. #define COLOR_GREENYELLOW 0xADFF2FFF
  75. #define COLOR_HIGHLIGHT 0x3399FFFF
  76. #define COLOR_HIGHLIGHTTEXT 0xFFFFFFFF
  77. #define COLOR_HONEYDEW 0xF0FFF0FF
  78. #define COLOR_HOTPINK 0xFF69B4FF
  79. #define COLOR_HOTTRACK 0x0066CCFF
  80. #define COLOR_INACTIVEBORDER 0xF4F7FCFF
  81. #define COLOR_INACTIVECAPTION 0xBFCDDBFF
  82. #define COLOR_INACTIVECAPTIONTEXT 0x434E54FF
  83. #define COLOR_INDIANRED 0xCD5C5CFF
  84. #define COLOR_INDIGO 0x4B0082FF
  85. #define COLOR_INFO 0xFFFFE1FF
  86. #define COLOR_INFOTEXT 0x000000FF
  87. #define COLOR_IVORY 0xFFFFF0FF
  88. #define COLOR_KHAKI 0xF0E68CFF
  89. #define COLOR_LAVENDER 0xE6E6FAFF
  90. #define COLOR_LAVENDERBLUSH 0xFFF0F5FF
  91. #define COLOR_LAWNGREEN 0x7CFC00FF
  92. #define COLOR_LEMONCHIFFON 0xFFFACDFF
  93. #define COLOR_LIGHTBLUE 0xADD8E6FF
  94. #define COLOR_LIGHTCORAL 0xF08080FF
  95. #define COLOR_LIGHTCYAN 0xE0FFFFFF
  96. #define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
  97. #define COLOR_LIGHTGRAY 0xD3D3D3FF
  98. #define COLOR_LIGHTGREEN 0x90EE90FF
  99. #define COLOR_LIGHTPINK 0xFFB6C1FF
  100. #define COLOR_LIGHTSALMON 0xFFA07AFF
  101. #define COLOR_LIGHTSEAGREEN 0x20B2AAFF
  102. #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
  103. #define COLOR_LIGHTSLATEGRAY 0x778899FF
  104. #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
  105. #define COLOR_LIGHTYELLOW 0xFFFFE0FF
  106. #define COLOR_LIME 0x00FF00FF
  107. #define COLOR_LIMEGREEN 0x32CD32FF
  108. #define COLOR_LINEN 0xFAF0E6FF
  109. #define COLOR_MAGENTA 0xFF00FFFF
  110. #define COLOR_MAROON 0x800000FF
  111. #define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
  112. #define COLOR_MEDIUMBLUE 0x0000CDFF
  113. #define COLOR_MEDIUMORCHID 0xBA55D3FF
  114. #define COLOR_MEDIUMPURPLE 0x9370DBFF
  115. #define COLOR_MEDIUMSEAGREEN 0x3CB371FF
  116. #define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
  117. #define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
  118. #define COLOR_MEDIUMTURQUOISE 0x48D1CCFF
  119. #define COLOR_MEDIUMVIOLETRED 0xC71585FF
  120. #define COLOR_MENU 0xF0F0F0FF
  121. #define COLOR_MENUBAR 0xF0F0F0FF
  122. #define COLOR_MENUHIGHLIGHT 0x3399FFFF
  123. #define COLOR_MENUTEXT 0x000000FF
  124. #define COLOR_MIDNIGHTBLUE 0x191970FF
  125. #define COLOR_MINTCREAM 0xF5FFFAFF
  126. #define COLOR_MISTYROSE 0xFFE4E1FF
  127. #define COLOR_MOCCASIN 0xFFE4B5FF
  128. #define COLOR_NAVAJOWHITE 0xFFDEADFF
  129. #define COLOR_NAVY 0x000080FF
  130. #define COLOR_OLDLACE 0xFDF5E6FF
  131. #define COLOR_OLIVE 0x808000FF
  132. #define COLOR_OLIVEDRAB 0x6B8E23FF
  133. #define COLOR_ORANGE 0xFFA500FF
  134. #define COLOR_ORANGERED 0xFF4500FF
  135. #define COLOR_ORCHID 0xDA70D6FF
  136. #define COLOR_PALEGOLDENROD 0xEEE8AAFF
  137. #define COLOR_PALEGREEN 0x98FB98FF
  138. #define COLOR_PALETURQUOISE 0xAFEEEEFF
  139. #define COLOR_PALEVIOLETRED 0xDB7093FF
  140. #define COLOR_PAPAYAWHIP 0xFFEFD5FF
  141. #define COLOR_PEACHPUFF 0xFFDAB9FF
  142. #define COLOR_PERU 0xCD853FFF
  143. #define COLOR_PINK 0xFFC0CBFF
  144. #define COLOR_PLUM 0xDDA0DDFF
  145. #define COLOR_POWDERBLUE 0xB0E0E6FF
  146. #define COLOR_PURPLE 0x800080FF
  147. #define COLOR_RED 0xFF0000FF
  148. #define COLOR_ROSYBROWN 0xBC8F8FFF
  149. #define COLOR_ROYALBLUE 0x4169E1FF
  150. #define COLOR_SADDLEBROWN 0x8B4513FF
  151. #define COLOR_SALMON 0xFA8072FF
  152. #define COLOR_SANDYBROWN 0xF4A460FF
  153. #define COLOR_SCROLLBAR 0xC8C8C8FF
  154. #define COLOR_SEAGREEN 0x2E8B57FF
  155. #define COLOR_SEASHELL 0xFFF5EEFF
  156. #define COLOR_SIENNA 0xA0522DFF
  157. #define COLOR_SILVER 0xC0C0C0FF
  158. #define COLOR_SKYBLUE 0x87CEEBFF
  159. #define COLOR_SLATEBLUE 0x6A5ACDFF
  160. #define COLOR_SLATEGRAY 0x708090FF
  161. #define COLOR_SNOW 0xFFFAFAFF
  162. #define COLOR_SPRINGGREEN 0x00FF7FFF
  163. #define COLOR_STEELBLUE 0x4682B4FF
  164. #define COLOR_TAN 0xD2B48CFF
  165. #define COLOR_TEAL 0x008080FF
  166. #define COLOR_THISTLE 0xD8BFD8FF
  167. #define COLOR_TOMATO 0xFF6347FF
  168. #define COLOR_TRANSPARENT 0xFFFFFF00
  169. #define COLOR_TURQUOISE 0x40E0D0FF
  170. #define COLOR_VIOLET 0xEE82EEFF
  171. #define COLOR_WHEAT 0xF5DEB3FF
  172. #define COLOR_WHITE 0xFFFFFFFF
  173. #define COLOR_WHITESMOKE 0xF5F5F5FF
  174. #define COLOR_WINDOW 0xFFFFFFFF
  175. #define COLOR_WINDOWFRAME 0x646464FF
  176. #define COLOR_WINDOWTEXT 0x000000FF
  177. #define COLOR_YELLOW 0xFFFF00FF
  178. #define COLOR_YELLOWGREEN 0x9ACD32FF
  179. #define STEALTH_ORANGE 0xFF880000
  180. #define STEALTH_OLIVE 0x66660000
  181. #define STEALTH_GREEN 0x33DD1100
  182. #define STEALTH_PINK 0xFF22EE00
  183. #define STEALTH_BLUE 0x0077BB00
  184. #define COLOR_GREY 0xAFAFAFAA
  185. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  186. #define COLOR_MEDIUMMAGENTA 0x8B008BAA
  187.  
  188. #include <a_samp>
  189.  
  190. #if defined FILTERSCRIPT
  191.  
  192. public OnFilterScriptInit()
  193. {
  194. print("\n--------------------------------------");
  195. print(" Test By:Desi");
  196. print("--------------------------------------\n");
  197. return 1;
  198. }
  199.  
  200. public OnFilterScriptExit()
  201. {
  202. return 1;
  203. }
  204.  
  205. #else
  206.  
  207. main()
  208. {
  209. print("\n----------------------------------");
  210. print(" Test By:Desi");
  211. print("----------------------------------\n");
  212. }
  213.  
  214. #endif
  215.  
  216. public OnGameModeInit()
  217. {
  218. SetGameModeText("Test");
  219. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  220.  
  221. //cars Spawns
  222. AddStaticVehicle(451,2040.0520,1319.2799,10.3779,183.2439,16,16);
  223. new vehicle_id, Text3D:vehicle3Dtext;
  224. vehicle3Dtext = Create3DTextLabel( "Infernus", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
  225. vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
  226. Attach3DTextLabelToVehicle( vehicle3Dtext, vehicle_id, 0.0, 0.0, 2.0);
  227.  
  228. AddStaticVehicle(429,2040.5247,1359.2783,10.3516,177.1306,13,13);
  229. AddStaticVehicle(421,2110.4102,1398.3672,10.7552,359.5964,13,13);
  230. AddStaticVehicle(411,2074.9624,1479.2120,10.3990,359.6861,64,64);
  231. AddStaticVehicle(477,2075.6038,1666.9750,10.4252,359.7507,94,94);
  232. AddStaticVehicle(541,2119.5845,1938.5969,10.2967,181.9064,22,22);
  233. AddStaticVehicle(541,1843.7881,1216.0122,10.4556,270.8793,60,1);
  234. AddStaticVehicle(402,1944.1003,1344.7717,8.9411,0.8168,30,30);
  235. AddStaticVehicle(402,1679.2278,1316.6287,10.6520,180.4150,90,90);
  236. AddStaticVehicle(415,1685.4872,1751.9667,10.5990,268.1183,25,1);
  237. AddStaticVehicle(411,2034.5016,1912.5874,11.9048,0.2909,123,1);
  238. AddStaticVehicle(411,2172.1682,1988.8643,10.5474,89.9151,116,1);
  239. AddStaticVehicle(429,2245.5759,2042.4166,10.5000,270.7350,14,14);
  240. AddStaticVehicle(477,2361.1538,1993.9761,10.4260,178.3929,101,1);
  241. AddStaticVehicle(550,2221.9946,1998.7787,9.6815,92.6188,53,53);
  242. AddStaticVehicle(558,2243.3833,1952.4221,14.9761,359.4796,116,1);
  243. AddStaticVehicle(587,2276.7085,1938.7263,31.5046,359.2321,40,1);
  244. AddStaticVehicle(587,2602.7769,1853.0667,10.5468,91.4813,43,1);
  245. AddStaticVehicle(603,2610.7600,1694.2588,10.6585,89.3303,69,1);
  246. AddStaticVehicle(587,2635.2419,1075.7726,10.5472,89.9571,53,1);
  247. AddStaticVehicle(437,2577.2354,1038.8063,10.4777,181.7069,35,1);
  248. AddStaticVehicle(535,2039.1257,1545.0879,10.3481,359.6690,123,1);
  249. AddStaticVehicle(535,2009.8782,2411.7524,10.5828,178.9618,66,1);
  250. AddStaticVehicle(429,2010.0841,2489.5510,10.5003,268.7720,1,2);
  251. AddStaticVehicle(415,2076.4033,2468.7947,10.5923,359.9186,36,1);
  252. AddStaticVehicle(487,2093.2754,2414.9421,74.7556,89.0247,26,57);
  253. AddStaticVehicle(506,2352.9026,2577.9768,10.5201,0.4091,7,7);
  254. AddStaticVehicle(506,2166.6963,2741.0413,10.5245,89.7816,52,52);
  255. AddStaticVehicle(411,1960.9989,2754.9072,10.5473,200.4316,112,1);
  256. AddStaticVehicle(429,1919.5863,2760.7595,10.5079,100.0753,2,1);
  257. AddStaticVehicle(415,1673.8038,2693.8044,10.5912,359.7903,40,1);
  258. AddStaticVehicle(402,1591.0482,2746.3982,10.6519,172.5125,30,30);
  259. AddStaticVehicle(603,1580.4537,2838.2886,10.6614,181.4573,75,77);
  260. AddStaticVehicle(550,1555.2734,2750.5261,10.6388,91.7773,62,62);
  261. AddStaticVehicle(535,1455.9305,2878.5288,10.5837,181.0987,118,1);
  262. AddStaticVehicle(477,1537.8425,2578.0525,10.5662,0.0650,121,1);
  263. AddStaticVehicle(451,1433.1594,2607.3762,10.3781,88.0013,16,16);
  264. AddStaticVehicle(603,2223.5898,1288.1464,10.5104,182.0297,18,1);
  265. AddStaticVehicle(558,2451.6707,1207.1179,10.4510,179.8960,24,1);
  266. AddStaticVehicle(550,2461.7253,1357.9705,10.6389,180.2927,62,62);
  267. AddStaticVehicle(558,2461.8162,1629.2268,10.4496,181.4625,117,1);
  268. AddStaticVehicle(477,2395.7554,1658.9591,10.5740,359.7374,0,1);
  269. AddStaticVehicle(404,1553.3696,1020.2884,10.5532,270.6825,119,50);
  270. AddStaticVehicle(400,1380.8304,1159.1782,10.9128,355.7117,123,1);
  271. AddStaticVehicle(418,1383.4630,1035.0420,10.9131,91.2515,117,227);
  272. AddStaticVehicle(404,1445.4526,974.2831,10.5534,1.6213,109,100);
  273. AddStaticVehicle(400,1704.2365,940.1490,10.9127,91.9048,113,1);
  274. AddStaticVehicle(404,1658.5463,1028.5432,10.5533,359.8419,101,101);
  275. AddStaticVehicle(581,1677.6628,1040.1930,10.4136,178.7038,58,1);
  276. AddStaticVehicle(581,1383.6959,1042.2114,10.4121,85.7269,66,1);
  277. AddStaticVehicle(581,1064.2332,1215.4158,10.4157,177.2942,72,1);
  278. AddStaticVehicle(581,1111.4536,1788.3893,10.4158,92.4627,72,1);
  279. AddStaticVehicle(522,953.2818,1806.1392,8.2188,235.0706,3,8);
  280. AddStaticVehicle(522,995.5328,1886.6055,10.5359,90.1048,3,8);
  281. AddStaticVehicle(521,993.7083,2267.4133,11.0315,1.5610,75,13);
  282. AddStaticVehicle(535,1439.5662,1999.9822,10.5843,0.4194,66,1);
  283. AddStaticVehicle(522,1430.2354,1999.0144,10.3896,352.0951,6,25);
  284. AddStaticVehicle(522,2156.3540,2188.6572,10.2414,22.6504,6,25);
  285. AddStaticVehicle(598,2277.6846,2477.1096,10.5652,180.1090,0,1);
  286. AddStaticVehicle(598,2268.9888,2443.1697,10.5662,181.8062,0,1);
  287. AddStaticVehicle(598,2256.2891,2458.5110,10.5680,358.7335,0,1);
  288. AddStaticVehicle(598,2251.6921,2477.0205,10.5671,179.5244,0,1);
  289. AddStaticVehicle(523,2294.7305,2441.2651,10.3860,9.3764,0,0);
  290. AddStaticVehicle(523,2290.7268,2441.3323,10.3944,16.4594,0,0);
  291. AddStaticVehicle(523,2295.5503,2455.9656,2.8444,272.6913,0,0);
  292. AddStaticVehicle(522,2476.7900,2532.2222,21.4416,0.5081,8,82);
  293. AddStaticVehicle(522,2580.5320,2267.9595,10.3917,271.2372,8,82);
  294. AddStaticVehicle(522,2814.4331,2364.6641,10.3907,89.6752,36,105);
  295. AddStaticVehicle(535,2827.4143,2345.6953,10.5768,270.0668,97,1);
  296. AddStaticVehicle(521,1670.1089,1297.8322,10.3864,359.4936,87,118);
  297. AddStaticVehicle(487,1614.7153,1548.7513,11.2749,347.1516,58,8);
  298. AddStaticVehicle(487,1647.7902,1538.9934,11.2433,51.8071,0,8);
  299. AddStaticVehicle(487,1608.3851,1630.7268,11.2840,174.5517,58,8);
  300. AddStaticVehicle(476,1283.0006,1324.8849,9.5332,275.0468,7,6); //11.5332
  301. AddStaticVehicle(476,1283.5107,1361.3171,9.5382,271.1684,1,6); //11.5382
  302. AddStaticVehicle(476,1283.6847,1386.5137,11.5300,272.1003,89,91);
  303. AddStaticVehicle(476,1288.0499,1403.6605,11.5295,243.5028,119,117);
  304. AddStaticVehicle(415,1319.1038,1279.1791,10.5931,0.9661,62,1);
  305. AddStaticVehicle(521,1710.5763,1805.9275,10.3911,176.5028,92,3);
  306. AddStaticVehicle(521,2805.1650,2027.0028,10.3920,357.5978,92,3);
  307. AddStaticVehicle(535,2822.3628,2240.3594,10.5812,89.7540,123,1);
  308. AddStaticVehicle(521,2876.8013,2326.8418,10.3914,267.8946,115,118);
  309. AddStaticVehicle(429,2842.0554,2637.0105,10.5000,182.2949,1,3);
  310. AddStaticVehicle(549,2494.4214,2813.9348,10.5172,316.9462,72,39);
  311. AddStaticVehicle(549,2327.6484,2787.7327,10.5174,179.5639,75,39);
  312. AddStaticVehicle(549,2142.6970,2806.6758,10.5176,89.8970,79,39);
  313. AddStaticVehicle(521,2139.7012,2799.2114,10.3917,229.6327,25,118);
  314. AddStaticVehicle(521,2104.9446,2658.1331,10.3834,82.2700,36,0);
  315. AddStaticVehicle(521,1914.2322,2148.2590,10.3906,267.7297,36,0);
  316. AddStaticVehicle(549,1904.7527,2157.4312,10.5175,183.7728,83,36);
  317. AddStaticVehicle(549,1532.6139,2258.0173,10.5176,359.1516,84,36);
  318. AddStaticVehicle(521,1534.3204,2202.8970,10.3644,4.9108,118,118);
  319. AddStaticVehicle(549,1613.1553,2200.2664,10.5176,89.6204,89,35);
  320. AddStaticVehicle(400,1552.1292,2341.7854,10.9126,274.0815,101,1);
  321. AddStaticVehicle(404,1637.6285,2329.8774,10.5538,89.6408,101,101);
  322. AddStaticVehicle(400,1357.4165,2259.7158,10.9126,269.5567,62,1);
  323. AddStaticVehicle(411,1281.7458,2571.6719,10.5472,270.6128,106,1);
  324. AddStaticVehicle(522,1305.5295,2528.3076,10.3955,88.7249,3,8);
  325. AddStaticVehicle(521,993.9020,2159.4194,10.3905,88.8805,74,74);
  326. AddStaticVehicle(415,1512.7134,787.6931,10.5921,359.5796,75,1);
  327. AddStaticVehicle(522,2299.5872,1469.7910,10.3815,258.4984,3,8);
  328. AddStaticVehicle(522,2133.6428,1012.8537,10.3789,87.1290,3,8);
  329.  
  330.  
  331. return 1;
  332. }
  333.  
  334. public OnGameModeExit()
  335. {
  336. return 1;
  337. }
  338.  
  339. public OnPlayerRequestClass(playerid, classid)
  340. {
  341. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  342. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  343. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  344. return 1;
  345. }
  346.  
  347. public OnPlayerConnect(playerid)
  348. {
  349. new string[64], pName[MAX_PLAYER_NAME];
  350. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  351. format(string,sizeof string,"%s has joined the server. Welcome!",pName);
  352. SendClientMessageToAll(0x8FBC8BFF,string);
  353. return 1;
  354. }
  355.  
  356. public OnPlayerDisconnect(playerid, reason)
  357. {
  358. new
  359. string[64],
  360. name[MAX_PLAYER_NAME];
  361. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  362. switch(reason)
  363. {
  364. case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
  365. case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
  366. case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
  367. }
  368. SendClientMessageToAll(0xCD5C5CFF,string);
  369. return 1;
  370. }
  371.  
  372. public OnPlayerSpawn(playerid)
  373. {
  374. new PlayerName[MAX_PLAYER_NAME],
  375. string[128];
  376. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  377. format(string, sizeof(string), "%s has spawned.", PlayerName);
  378. SendClientMessageToAll(0x4682B4FF, string);
  379. return 1;
  380. }
  381.  
  382. public OnPlayerDeath(playerid, killerid, reason)
  383. {
  384. SendDeathMessage(killerid, playerid, reason);
  385. return 1;
  386. }
  387.  
  388. public OnVehicleSpawn(vehicleid)
  389. {
  390. return 1;
  391. }
  392.  
  393. public OnVehicleDeath(vehicleid, killerid)
  394. {
  395. return 1;
  396. }
  397.  
  398. public OnPlayerText(playerid, text[])
  399. {
  400. return 1;
  401. }
  402.  
  403. public OnPlayerCommandText(playerid, cmdtext[])
  404. {
  405. if (strcmp("/tele", cmdtext, true, 10) == 0)
  406. {
  407. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vip Teleports", "Las Venturas\nLos Santos\nSan Fierro", "Teleport", "Cancel");
  408. }
  409.  
  410. if (strcmp("/gps", cmdtext, true, 10) == 0)
  411. {
  412. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "GPS", "Las Venturas\nLos Santos\nSan Fierro", "locate", "Cancel");
  413. }
  414. return 1;
  415. }
  416.  
  417. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  418. {
  419. return 1;
  420. }
  421.  
  422. public OnPlayerExitVehicle(playerid, vehicleid)
  423. {
  424. return 1;
  425. }
  426.  
  427. public OnPlayerStateChange(playerid, newstate, oldstate)
  428. {
  429. return 1;
  430. }
  431.  
  432. public OnPlayerEnterCheckpoint(playerid)
  433. {
  434. return 1;
  435. }
  436.  
  437. public OnPlayerLeaveCheckpoint(playerid)
  438. {
  439. return 1;
  440. }
  441.  
  442. public OnPlayerEnterRaceCheckpoint(playerid)
  443. {
  444. return 1;
  445. }
  446.  
  447. public OnPlayerLeaveRaceCheckpoint(playerid)
  448. {
  449. return 1;
  450. }
  451.  
  452. public OnRconCommand(cmd[])
  453. {
  454. return 1;
  455. }
  456.  
  457. public OnPlayerRequestSpawn(playerid)
  458. {
  459. return 1;
  460. }
  461.  
  462. public OnObjectMoved(objectid)
  463. {
  464. return 1;
  465. }
  466.  
  467. public OnPlayerObjectMoved(playerid, objectid)
  468. {
  469. return 1;
  470. }
  471.  
  472. public OnPlayerPickUpPickup(playerid, pickupid)
  473. {
  474. return 1;
  475. }
  476.  
  477. public OnVehicleMod(playerid, vehicleid, componentid)
  478. {
  479. return 1;
  480. }
  481.  
  482. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  483. {
  484. return 1;
  485. }
  486.  
  487. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  488. {
  489. return 1;
  490. }
  491.  
  492. public OnPlayerSelectedMenuRow(playerid, row)
  493. {
  494. return 1;
  495. }
  496.  
  497. public OnPlayerExitedMenu(playerid)
  498. {
  499. return 1;
  500. }
  501.  
  502. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  503. {
  504. return 1;
  505. }
  506.  
  507. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  508. {
  509. return 1;
  510. }
  511.  
  512. public OnRconLoginAttempt(ip[], password[], success)
  513. {
  514. return 1;
  515. }
  516.  
  517. public OnPlayerUpdate(playerid)
  518. {
  519. return 1;
  520. }
  521.  
  522. public OnPlayerStreamIn(playerid, forplayerid)
  523. {
  524. return 1;
  525. }
  526.  
  527. public OnPlayerStreamOut(playerid, forplayerid)
  528. {
  529. return 1;
  530. }
  531.  
  532. public OnVehicleStreamIn(vehicleid, forplayerid)
  533. {
  534. return 1;
  535. }
  536.  
  537. public OnVehicleStreamOut(vehicleid, forplayerid)
  538. {
  539. return 1;
  540. }
  541.  
  542. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  543. {
  544.  
  545. if(dialogid == 1)
  546. {
  547. if(response)
  548. {
  549. switch(listitem)
  550. {
  551. case 0:
  552. {
  553. //Selected Item: "Las Venturas"
  554. SetPlayerPos(playerid,1320.9772,1269.0629,10.8436);
  555. SendClientMessage(playerid,0xAA3333AA, "You have Teleported To Las Ventures");
  556. }
  557. case 1:
  558. {
  559. //Selected Item: "Los Santos"
  560. SetPlayerPos(playerid,1981.7261,-2451.8857,13.5469);
  561. SendClientMessage(playerid,0xAA3333AA, "You have Teleported To Los Santos");
  562. }
  563. case 2:
  564. {
  565. //Selected Item: "San Fierro"
  566. SetPlayerPos(playerid,-1263.8750,25.1669,14.1484);
  567. SendClientMessage(playerid,0xAA3333AA, "You have Teleported To San Fierro");
  568. }
  569.  
  570. {
  571. if(dialogid == 2)
  572. {
  573. if(response)
  574. {
  575. switch(listitem)
  576. {
  577. case 0:
  578. {
  579. //Selected Item: "Las Venturas"
  580. SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469,5);
  581. }
  582. case 1:
  583. {
  584. //Selected Item: "Los Santos"
  585. SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469,5);
  586. }
  587. case 2:
  588. {
  589. //Selected Item: "San Fierro"
  590. SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484,5);
  591. }
  592. }
  593. return 1;
  594. }
  595.  
  596.  
  597.  
Advertisement
Add Comment
Please, Sign In to add comment