Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <a_mysql>
  7. #include <streamer>
  8. #include <yom_buttons>
  9. #include <ZCMD>
  10. #include <sscanf2>
  11. #include <foreach>
  12. #include <YSI\y_timers>
  13. #include <YSI\y_utils>
  14.  
  15.  
  16.  
  17. #define COLOR_YELLOW 0xFFFF00AA
  18. #define COLOR_RED 0xAA3333AA
  19. #define COLOR_GREEN 0x33AA33AA
  20. #define NGUYENLIEU (6060)
  21. #define NGUYENLIEU1 (6061)
  22. #define NGUYENLIEU2 (6062)
  23. #define NGUYENLIEU3 (6063)
  24. //new nguyenlieu[MAX_PLAYERS];
  25. //new nguyenlieu1[MAX_PLAYERS];
  26. //new nguyenlieu2[MAX_PLAYERS];
  27. //new nguyenlieu3[MAX_PLAYERS];
  28.  
  29. new InsideMainMenu[MAX_PLAYERS char];
  30. new InsideTut[MAX_PLAYERS char];
  31. new ActiveChatbox[MAX_PLAYERS];
  32.  
  33. #if defined FILTERSCRIPT
  34. public OnFilterScriptInit()
  35. {
  36. print("\n--------------------------------------");
  37. print(" He thong Cong Nhan o Xuongg");
  38. print("--------------------------------------\n");
  39. return 1;
  40. }
  41.  
  42. public OnFilterScriptExit()
  43. {
  44. return 1;
  45. }
  46.  
  47. #else
  48.  
  49. main()
  50. {
  51. print("\n----------------------------------");
  52. print(" He thong Cong Nhan o Xuong.M");
  53. print("----------------------------------\n");
  54. }
  55.  
  56. #endif
  57.  
  58. public OnGameModeInit()
  59. {
  60. CreateObject(19377, 1385.13916, -39.56961, 1006.79834, 0.00000, 90.00000, 0.00000);
  61. CreateObject(1689, 1385.34290, -35.79916, 1007.61072, 0.00000, 0.00000, 180.00000);
  62. CreateObject(3273, 1385.33630, -35.75626, 1006.78540, 0.00000, 0.00000, 90.00000);
  63. CreateObject(3631, 1381.52979, -18.60523, 999.90808, 0.00000, 0.00000, 0.00000);
  64. CreateObject(1571, 1385.30518, -38.52512, 1008.17163, 0.00000, 0.00000, 0.00000);
  65. CreateObject(922, 1381.07520, -39.60163, 1007.74426, 0.00000, 0.00000, 86.93999);
  66. CreateObject(3761, 1414.40405, -10.63901, 1001.94812, 0.00000, 0.00000, 90.00000);
  67. CreateObject(3761, 1414.33215, -16.04379, 1001.90515, 0.00000, 0.00000, 90.00000);
  68. CreateObject(3761, 1414.20850, -22.42271, 1001.90515, 0.00000, 0.00000, 90.00000);
  69. CreateObject(3761, 1414.32275, -28.60545, 1001.90515, 0.00000, 0.00000, 90.00000);
  70. CreateObject(3761, 1414.68884, -39.10107, 1001.90515, 0.00000, 0.00000, 90.00000);
  71. CreateObject(3761, 1414.31238, -42.75356, 1001.90515, 0.00000, 0.00000, 90.00000);
  72. CreateObject(5132, 1393.76501, -46.09851, 1001.73889, 0.00000, 0.00000, 88.32000);
  73. CreateObject(5262, 1362.16382, -32.61154, 1002.86780, 0.00000, 0.00000, 180.00000);
  74. CreateObject(5132, 1363.09924, -8.81667, 1001.73889, 0.00000, 0.00000, 0.00000);
  75. CreateObject(934, 1386.03320, -18.63145, 1001.36444, 0.00000, 0.00000, 0.00000);
  76. CreateObject(1687, 1383.64795, -20.30509, 1000.69147, 0.00000, 0.00000, 0.00000);
  77. CreateObject(1691, 1387.03857, -18.70460, 1000.07123, 0.00000, 0.00000, 0.00000);
  78. CreateObject(2669, 1375.04138, -18.51111, 1000.11768, 0.00000, 0.00000, 90.00000);
  79. CreateObject(1221, 1373.15564, -19.38161, 1000.31390, 0.00000, 0.00000, 0.00000);
  80. CreateObject(1221, 1373.11096, -17.90460, 1000.31390, 0.00000, 0.00000, 0.00000);
  81. CreateObject(1221, 1374.54443, -18.53521, 1000.31390, 0.00000, 0.00000, 0.00000);
  82. CreateObject(1221, 1375.45959, -19.23653, 1000.31390, 0.00000, 0.00000, 0.00000);
  83. CreateObject(1221, 1375.40869, -17.73726, 1000.31390, 0.00000, 0.00000, 0.00000);
  84. CreateObject(1221, 1375.40869, -17.73726, 1000.31390, 0.00000, 0.00000, 0.00000);
  85. CreateObject(910, 1373.61389, 6.83300, 1001.14508, 0.00000, 0.00000, 0.00000);
  86. CreateObject(910, 1375.45789, 6.80102, 1001.14508, 0.00000, 0.00000, 0.00000);
  87. CreateObject(910, 1371.74988, 6.86402, 1001.14508, 0.00000, 0.00000, 0.00000);
  88. CreateObject(3586, 1368.19812, -5.34728, 1003.47095, 0.00000, 0.00000, -90.00000);
  89.  
  90. return 1;
  91. }
  92.  
  93.  
  94.  
  95.  
  96. public OnGameModeExit()
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerRequestClass(playerid, classid)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerConnect(playerid)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerDisconnect(playerid, reason)
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerSpawn(playerid)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnPlayerDeath(playerid, killerid, reason)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnVehicleSpawn(vehicleid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnVehicleDeath(vehicleid, killerid)
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerText(playerid, text[])
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerCommandText(playerid, cmdtext[])
  142. {
  143. return 1;
  144. }
  145.  
  146.  
  147. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerExitVehicle(playerid, vehicleid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerStateChange(playerid, newstate, oldstate)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnPlayerEnterCheckpoint(playerid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnPlayerLeaveCheckpoint(playerid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnPlayerEnterRaceCheckpoint(playerid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerLeaveRaceCheckpoint(playerid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnRconCommand(cmd[])
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerRequestSpawn(playerid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnObjectMoved(objectid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerObjectMoved(playerid, objectid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerPickUpPickup(playerid, pickupid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnVehicleMod(playerid, vehicleid, componentid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerSelectedMenuRow(playerid, row)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerExitedMenu(playerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnRconLoginAttempt(ip[], password[], success)
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnPlayerUpdate(playerid)
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnPlayerStreamIn(playerid, forplayerid)
  253. {
  254. return 1;
  255. }
  256.  
  257. public OnPlayerStreamOut(playerid, forplayerid)
  258. {
  259. return 1;
  260. }
  261.  
  262. public OnVehicleStreamIn(vehicleid, forplayerid)
  263. {
  264. return 1;
  265. }
  266.  
  267. public OnVehicleStreamOut(vehicleid, forplayerid)
  268. {
  269. return 1;
  270. }
  271.  
  272. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  273. {
  274. return 1;
  275. }
  276.  
  277. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  278. {
  279. return 1;
  280. }
  281. CMD:laynguyenlieu(playerid, params[])
  282. {
  283. if(IsPlayerInRangeOfPoint(playerid, 4.0, 1373.9840, 5.0695, 1000.9159))
  284. {
  285. if(GetPVarInt(playerid, "BatDauLayNguyenLieu") == 1)
  286. {
  287. ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,1,0,0,1,1);
  288. SetPlayerAttachedObject(playerid, 1, 2814, 1, 0.000000, 0.500000, -0.009999, 0.000000, 90.000000, 0.000000);
  289. SetPVarInt(playerid, "DaLayNguyenLieu", 1);
  290. SetPlayerCheckpoint(playerid, 1385.3964,-41.3725,1007.8843, 4.0);
  291. }
  292. }
  293. else return SendClientMessage(playerid, COLOR_YELLOW, " ban da Nhan Duoc Nguyen Lieu - Hay Den Noi che tao! ");
  294. }
  295. else return SendClientMessage(playerid,COLOR_RED, " ban khong dung gan noi lay nguyen lieu! ");
  296. }
  297. return 1;
  298. }
  299.  
  300.  
  301.  
  302.  
  303. CMD:chebien(playerid, params[])
  304. {
  305. if(IsPlayerInRangeOfPoint(playerid, 4.0, 1385.3964,-41.3725,1007.8843))
  306. {
  307. if(GetPVarInt(playerid, "ThucPhamCheTao") == 1)
  308. {
  309. new string[128];
  310. format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~%d giay", GetPVarInt(playerid, "ThucPhamCheTao"));
  311. GameTextForPlayer(playerid, string, 10000, 3);
  312. // DeletePVar(playerid, "LayNguyenLieu");
  313. ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,1,0,0,1,1);
  314. SetPlayerAttachedObject(playerid, 1, 1448, 1, 0.070000, 0.730000, 0.000000, 0.000000, -90.000000, 0.000000);
  315. SetPVarInt(playerid, "LayThucPhamCheTao", 1);
  316. SetPlayerCheckpoint(playerid, 1384.6870,-17.3328,1000.9226, 4.0);
  317. return 1;
  318. }
  319. else return SendClientMessage(playerid, COLOR_YELLOW, " may dang bat dau che tao!");
  320. }
  321. else return SendClientMessage(playerid, COLOR_YELLOW, " Ban khong dung gan noi che bien!");
  322. }
  323. stock SendClientMessageEx(playerid, color, string[])
  324. {
  325. if(InsideMainMenu{playerid} == 1 || InsideTut{playerid} == 1 || ActiveChatbox[playerid] == 0)
  326. return 0;
  327.  
  328. else SendClientMessage(playerid, color, string);
  329. return 1;
  330. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement