Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.09 KB | None | 0 0
  1. #include <a_samp>
  2. #include <streamer>
  3. #include <sscanf2>
  4. #include <zcmd>
  5. #include <color>
  6. #include <fixchars.h>
  7.  
  8. #define ALTCOMMAND:%1->%2; \
  9. COMMAND:%1(playerid, params[]) \
  10. return cmd_%2(playerid, params);
  11.  
  12. #define LOPATKOINFO (9999)
  13.  
  14. enum Patko_Info
  15. {
  16. pickup,
  17. Float:hx,
  18. Float:hy,
  19. Float:hz
  20. }
  21.  
  22. new PatkoKordinatak[][Patko_Info] =
  23. {
  24. {0,1224.0, 2617.0, 11.0},
  25. {1,2323.0, 1284.0, 97.0},
  26. {2,2035.0, 2305.0, 18.0},
  27. {3,2491.0, 2263.0, 15.0},
  28. {4,1433.0, 2796.0, 20.0},
  29. {5,2071.0, 712.0, 11.0},
  30. {6,2239.0, 1839.0, 18.0},
  31. {7,2583.0, 2387.0, 16.0},
  32. {8,2864.0, 857.0, 13.0},
  33. {9,2612.0, 2200.0, -1.0},
  34. {10,2274.0, 1507.0, 24.0},
  35. {11,2184.0, 2529.0, 11.0},
  36. {12,1863.0, 2314.0, 15.0},
  37. {13,2054.0, 2434.0, 166.0},
  38. {14,1603.0, 1435.0, 11.0},
  39. {15,1362.92, 1015.24, 11.0,},
  40. {16,2058.7, 2159.1, 16.0},
  41. {17,2003.0, 1672.0, 12.0},
  42. {18,2238.0, 1135.0, 49.0},
  43. {19,1934.06, 988.79, 22.0},
  44. {20,1768.0, 2847.0, 9.0},
  45. {21,1084.0, 1076.0, 11.0},
  46. {22,2879.0, 2522.0, 11.0},
  47. {23,2371.0, 2009.0, 15.0},
  48. {24,1521.0, 1690.0, 10.6},
  49. {25,2417.0, 1281.0, 21.0},
  50. {26,1376.0, 2304.0, 15.0},
  51. {27,1393.0, 1832.0, 12.34},
  52. {28,984.0, 2563.0, 12.0},
  53. {29,1767.0, 601.0, 13.0},
  54. {30,2108.0, 1003.0, 46.0},
  55. {31,2705.98, 1862.52, 24.41},
  56. {32,2493.0, 922.0, 16.0},
  57. {33,1881.0, 2846.0, 11.0},
  58. {34,2020.0, 2352.0, 11.0},
  59. {35,1680.3, 2226.86, 16.11},
  60. {36,1462.0, 936.0, 10.0},
  61. {37,2125.5, 789.23, 11.45},
  62. {38,2588.0, 1902.0, 15.0},
  63. {39,919.0, 2070.0, 11.0},
  64. {40,2173.0, 2465.0, 11.0},
  65. {41,2031.25, 2207.33, 11.0},
  66. {42,2509.0, 1144.0, 19.0},
  67. {43,2215.0, 1968.0, 11.0},
  68. {44,2626.0, 2841.0, 11.0},
  69. {45,2440.08, 2161.07, 20.0},
  70. {46,1582.0, 2401.0, 19.0},
  71. {47,2077.0, 1912.0, 14.0},
  72. {48,970.0, 1787.0, 11.0},
  73. {49,1526.22, 751.0, 29.04}
  74. };
  75.  
  76. enum PlayerInfo
  77. {
  78. Patkok,
  79. Patko1,
  80. Patko2,
  81. Patko3,
  82. Patko4,
  83. Patko5,
  84. Patko6,
  85. Patko7,
  86. Patko8,
  87. Patko9,
  88. Patko10,
  89. Patko11,
  90. Patko12,
  91. Patko13,
  92. Patko14,
  93. Patko15,
  94. Patko16,
  95. Patko17,
  96. Patko18,
  97. Patko19,
  98. Patko20,
  99. Patko21,
  100. Patko22,
  101. Patko23,
  102. Patko24,
  103. Patko25,
  104. Patko26,
  105. Patko27,
  106. Patko28,
  107. Patko29,
  108. Patko30,
  109. Patko31,
  110. Patko32,
  111. Patko33,
  112. Patko34,
  113. Patko35,
  114. Patko36,
  115. Patko37,
  116. Patko38,
  117. Patko39,
  118. Patko40,
  119. Patko41,
  120. Patko42,
  121. Patko43,
  122. Patko44,
  123. Patko45,
  124. Patko46,
  125. Patko47,
  126. Patko48,
  127. Patko49,
  128. Patko50
  129. }
  130. new pInfo[MAX_PLAYERS][PlayerInfo];
  131.  
  132. new lpatko[50];
  133.  
  134. public OnFilterScriptInit()
  135. {
  136. print("\n---------------------------------------------------");
  137. print("----------- LÓPATKÓ SYSTEM BY EVOLVED --------------");
  138. print("---------------------------------------------------\n");
  139.  
  140. for(new i = 0; i < sizeof(PatkoKordinatak); i++)
  141. {
  142. lpatko[PatkoKordinatak[i][pickup]] = CreatePickup(954, 1, PatkoKordinatak[i][hx], PatkoKordinatak[i][hy], PatkoKordinatak[i][hz], 0);
  143. }
  144. return 1;
  145. }
  146.  
  147. public OnFilterScriptExit()
  148. {
  149. for(new i = 0; i < sizeof(PatkoKordinatak); i++)
  150. {
  151. DestroyPickup(lpatko[PatkoKordinatak[i][pickup]]);
  152. }
  153. return 1;
  154. }
  155.  
  156. public OnPlayerConnect(playerid)
  157. {
  158. pInfo[playerid][Patkok] = 0;
  159. return 1;
  160. }
  161.  
  162. public OnPlayerDisconnect(playerid, reason)
  163. {
  164. pInfo[playerid][Patkok] = 0;
  165. return 1;
  166. }
  167.  
  168. public OnPlayerPickUpPickup(playerid, pickupid)
  169. {
  170. new pName[24];
  171. GetPlayerName(playerid, pName, sizeof(pName));
  172.  
  173. if(pickupid == lpatko[0])
  174. {
  175. if(pInfo[playerid][Patko1] == 1)
  176. {
  177. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  178. return 1;
  179. }
  180. pInfo[playerid][Patko1] += 1;
  181. pInfo[playerid][Patkok] += 1;
  182. new string[150];
  183. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  184. GameTextForPlayer(playerid, string, 2500, 3);
  185. }
  186. if(pickupid == lpatko[1])
  187. {
  188. if(pInfo[playerid][Patko2] == 1)
  189. {
  190. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  191. return 1;
  192. }
  193. pInfo[playerid][Patko2] += 1;
  194. pInfo[playerid][Patkok] += 1;
  195. new string[150];
  196. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  197. GameTextForPlayer(playerid, string, 2500, 3);
  198. }
  199. if(pickupid == lpatko[2])
  200. {
  201. if(pInfo[playerid][Patko3] == 1)
  202. {
  203. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  204. return 1;
  205. }
  206. pInfo[playerid][Patko3] += 1;
  207. pInfo[playerid][Patkok] += 1;
  208. new string[150];
  209. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  210. GameTextForPlayer(playerid, string, 2500, 3);
  211. }
  212. if(pickupid == lpatko[3])
  213. {
  214. if(pInfo[playerid][Patko4] == 1)
  215. {
  216. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  217. return 1;
  218. }
  219. pInfo[playerid][Patko4] += 1;
  220. pInfo[playerid][Patkok] += 1;
  221. new string[150];
  222. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  223. GameTextForPlayer(playerid, string, 2500, 3);
  224. }
  225. if(pickupid == lpatko[4])
  226. {
  227. if(pInfo[playerid][Patko5] == 1)
  228. {
  229. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  230. return 1;
  231. }
  232. pInfo[playerid][Patko5] += 1;
  233. pInfo[playerid][Patkok] += 1;
  234. new string[150];
  235. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  236. GameTextForPlayer(playerid, string, 2500, 3);
  237. }
  238. if(pickupid == lpatko[5])
  239. {
  240. if(pInfo[playerid][Patko6] == 1)
  241. {
  242. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  243. return 1;
  244. }
  245. pInfo[playerid][Patko6] += 1;
  246. pInfo[playerid][Patkok] += 1;
  247. new string[150];
  248. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  249. GameTextForPlayer(playerid, string, 2500, 3);
  250. }
  251. if(pickupid == lpatko[6])
  252. {
  253. if(pInfo[playerid][Patko7] == 1)
  254. {
  255. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  256. return 1;
  257. }
  258. pInfo[playerid][Patko7] += 1;
  259. pInfo[playerid][Patkok] += 1;
  260. new string[150];
  261. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  262. GameTextForPlayer(playerid, string, 2500, 3);
  263. }
  264. if(pickupid == lpatko[7])
  265. {
  266. if(pInfo[playerid][Patko8] == 1)
  267. {
  268. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  269. return 1;
  270. }
  271. pInfo[playerid][Patko8] += 1;
  272. pInfo[playerid][Patkok] += 1;
  273. new string[150];
  274. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  275. GameTextForPlayer(playerid, string, 2500, 3);
  276. }
  277. if(pickupid == lpatko[8])
  278. {
  279. if(pInfo[playerid][Patko9] == 1)
  280. {
  281. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  282. return 1;
  283. }
  284. pInfo[playerid][Patko9] += 1;
  285. pInfo[playerid][Patkok] += 1;
  286. new string[150];
  287. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  288. GameTextForPlayer(playerid, string, 2500, 3);
  289. }
  290. if(pickupid == lpatko[9])
  291. {
  292. if(pInfo[playerid][Patko10] == 1)
  293. {
  294. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  295. return 1;
  296. }
  297. pInfo[playerid][Patko10] += 1;
  298. pInfo[playerid][Patkok] += 1;
  299. new string[150];
  300. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  301. GameTextForPlayer(playerid, string, 2500, 3);
  302. }
  303. if(pickupid == lpatko[10])
  304. {
  305. if(pInfo[playerid][Patko11] == 1)
  306. {
  307. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  308. return 1;
  309. }
  310. pInfo[playerid][Patko11] += 1;
  311. pInfo[playerid][Patkok] += 1;
  312. new string[150];
  313. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  314. GameTextForPlayer(playerid, string, 2500, 3);
  315. }
  316. if(pickupid == lpatko[11])
  317. {
  318. if(pInfo[playerid][Patko12] == 1)
  319. {
  320. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  321. return 1;
  322. }
  323. pInfo[playerid][Patko12] += 1;
  324. pInfo[playerid][Patkok] += 1;
  325. new string[150];
  326. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  327. GameTextForPlayer(playerid, string, 2500, 3);
  328. }
  329. if(pickupid == lpatko[12])
  330. {
  331. if(pInfo[playerid][Patko13] == 1)
  332. {
  333. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  334. return 1;
  335. }
  336. pInfo[playerid][Patko13] += 1;
  337. pInfo[playerid][Patkok] += 1;
  338. new string[150];
  339. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  340. GameTextForPlayer(playerid, string, 2500, 3);
  341. }
  342. if(pickupid == lpatko[13])
  343. {
  344. if(pInfo[playerid][Patko14] == 1)
  345. {
  346. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  347. return 1;
  348. }
  349. pInfo[playerid][Patko14] += 1;
  350. pInfo[playerid][Patkok] += 1;
  351. new string[150];
  352. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  353. GameTextForPlayer(playerid, string, 2500, 3);
  354. }
  355. if(pickupid == lpatko[14])
  356. {
  357. if(pInfo[playerid][Patko15] == 1)
  358. {
  359. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  360. return 1;
  361. }
  362. pInfo[playerid][Patko15] += 1;
  363. pInfo[playerid][Patkok] += 1;
  364. new string[150];
  365. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  366. GameTextForPlayer(playerid, string, 2500, 3);
  367. }
  368. if(pickupid == lpatko[15])
  369. {
  370. if(pInfo[playerid][Patko16] == 1)
  371. {
  372. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  373. return 1;
  374. }
  375. pInfo[playerid][Patko16] += 1;
  376. pInfo[playerid][Patkok] += 1;
  377. new string[150];
  378. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  379. GameTextForPlayer(playerid, string, 2500, 3);
  380. }
  381. if(pickupid == lpatko[16])
  382. {
  383. if(pInfo[playerid][Patko17] == 1)
  384. {
  385. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  386. return 1;
  387. }
  388. pInfo[playerid][Patko17] += 1;
  389. pInfo[playerid][Patkok] += 1;
  390. new string[150];
  391. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  392. GameTextForPlayer(playerid, string, 2500, 3);
  393. }
  394. if(pickupid == lpatko[17])
  395. {
  396. if(pInfo[playerid][Patko18] == 1)
  397. {
  398. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  399. return 1;
  400. }
  401. pInfo[playerid][Patko18] += 1;
  402. pInfo[playerid][Patkok] += 1;
  403. new string[150];
  404. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  405. GameTextForPlayer(playerid, string, 2500, 3);
  406. }
  407. if(pickupid == lpatko[18])
  408. {
  409. if(pInfo[playerid][Patko19] == 1)
  410. {
  411. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  412. return 1;
  413. }
  414. pInfo[playerid][Patko19] += 1;
  415. pInfo[playerid][Patkok] += 1;
  416. new string[150];
  417. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  418. GameTextForPlayer(playerid, string, 2500, 3);
  419. }
  420. if(pickupid == lpatko[19])
  421. {
  422. if(pInfo[playerid][Patko20] == 1)
  423. {
  424. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  425. return 1;
  426. }
  427. pInfo[playerid][Patko20] += 1;
  428. pInfo[playerid][Patkok] += 1;
  429. new string[150];
  430. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  431. GameTextForPlayer(playerid, string, 2500, 3);
  432. }
  433. if(pickupid == lpatko[20])
  434. {
  435. if(pInfo[playerid][Patko21] == 1)
  436. {
  437. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  438. return 1;
  439. }
  440. pInfo[playerid][Patko21] += 1;
  441. pInfo[playerid][Patkok] += 1;
  442. new string[150];
  443. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  444. GameTextForPlayer(playerid, string, 2500, 3);
  445. }
  446. if(pickupid == lpatko[21])
  447. {
  448. if(pInfo[playerid][Patko22] == 1)
  449. {
  450. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  451. return 1;
  452. }
  453. pInfo[playerid][Patko22] += 1;
  454. pInfo[playerid][Patkok] += 1;
  455. new string[150];
  456. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  457. GameTextForPlayer(playerid, string, 2500, 3);
  458. }
  459. if(pickupid == lpatko[22])
  460. {
  461. if(pInfo[playerid][Patko23] == 1)
  462. {
  463. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  464. return 1;
  465. }
  466. pInfo[playerid][Patko23] += 1;
  467. pInfo[playerid][Patkok] += 1;
  468. new string[150];
  469. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  470. GameTextForPlayer(playerid, string, 2500, 3);
  471. }
  472. if(pickupid == lpatko[23])
  473. {
  474. if(pInfo[playerid][Patko24] == 1)
  475. {
  476. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  477. return 1;
  478. }
  479. pInfo[playerid][Patko24] += 1;
  480. pInfo[playerid][Patkok] += 1;
  481. new string[150];
  482. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  483. GameTextForPlayer(playerid, string, 2500, 3);
  484. }
  485. if(pickupid == lpatko[24])
  486. {
  487. if(pInfo[playerid][Patko25] == 1)
  488. {
  489. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  490. return 1;
  491. }
  492. pInfo[playerid][Patko25] += 1;
  493. pInfo[playerid][Patkok] += 1;
  494. new string[150];
  495. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  496. GameTextForPlayer(playerid, string, 2500, 3);
  497. }
  498. if(pickupid == lpatko[25])
  499. {
  500. if(pInfo[playerid][Patko26] == 1)
  501. {
  502. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  503. return 1;
  504. }
  505. pInfo[playerid][Patko26] += 1;
  506. pInfo[playerid][Patkok] += 1;
  507. new string[150];
  508. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  509. GameTextForPlayer(playerid, string, 2500, 3);
  510. }
  511. if(pickupid == lpatko[26])
  512. {
  513. if(pInfo[playerid][Patko27] == 1)
  514. {
  515. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  516. return 1;
  517. }
  518. pInfo[playerid][Patko27] += 1;
  519. pInfo[playerid][Patkok] += 1;
  520. new string[150];
  521. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  522. GameTextForPlayer(playerid, string, 2500, 3);
  523. }
  524. if(pickupid == lpatko[27])
  525. {
  526. if(pInfo[playerid][Patko28] == 1)
  527. {
  528. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  529. return 1;
  530. }
  531. pInfo[playerid][Patko28] += 1;
  532. pInfo[playerid][Patkok] += 1;
  533. new string[150];
  534. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  535. GameTextForPlayer(playerid, string, 2500, 3);
  536. }
  537. if(pickupid == lpatko[28])
  538. {
  539. if(pInfo[playerid][Patko29] == 1)
  540. {
  541. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  542. return 1;
  543. }
  544. pInfo[playerid][Patko29] += 1;
  545. pInfo[playerid][Patkok] += 1;
  546. new string[150];
  547. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  548. GameTextForPlayer(playerid, string, 2500, 3);
  549. }
  550. if(pickupid == lpatko[29])
  551. {
  552. if(pInfo[playerid][Patko30] == 1)
  553. {
  554. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  555. return 1;
  556. }
  557. pInfo[playerid][Patko30] += 1;
  558. pInfo[playerid][Patkok] += 1;
  559. new string[150];
  560. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  561. GameTextForPlayer(playerid, string, 2500, 3);
  562. }
  563. if(pickupid == lpatko[30])
  564. {
  565. if(pInfo[playerid][Patko31] == 1)
  566. {
  567. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  568. return 1;
  569. }
  570. pInfo[playerid][Patko31] += 1;
  571. pInfo[playerid][Patkok] += 1;
  572. new string[150];
  573. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  574. GameTextForPlayer(playerid, string, 2500, 3);
  575. }
  576. if(pickupid == lpatko[31])
  577. {
  578. if(pInfo[playerid][Patko32] == 1)
  579. {
  580. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  581. return 1;
  582. }
  583. pInfo[playerid][Patko32] += 1;
  584. pInfo[playerid][Patkok] += 1;
  585. new string[150];
  586. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  587. GameTextForPlayer(playerid, string, 2500, 3);
  588. }
  589. if(pickupid == lpatko[32])
  590. {
  591. if(pInfo[playerid][Patko33] == 1)
  592. {
  593. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  594. return 1;
  595. }
  596. pInfo[playerid][Patko33] += 1;
  597. pInfo[playerid][Patkok] += 1;
  598. new string[150];
  599. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  600. GameTextForPlayer(playerid, string, 2500, 3);
  601. }
  602. if(pickupid == lpatko[33])
  603. {
  604. if(pInfo[playerid][Patko34] == 1)
  605. {
  606. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  607. return 1;
  608. }
  609. pInfo[playerid][Patko34] += 1;
  610. pInfo[playerid][Patkok] += 1;
  611. new string[150];
  612. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  613. GameTextForPlayer(playerid, string, 2500, 3);
  614. }
  615. if(pickupid == lpatko[34])
  616. {
  617. if(pInfo[playerid][Patko35] == 1)
  618. {
  619. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  620. return 1;
  621. }
  622. pInfo[playerid][Patko35] += 1;
  623. pInfo[playerid][Patkok] += 1;
  624. new string[150];
  625. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  626. GameTextForPlayer(playerid, string, 2500, 3);
  627. }
  628. if(pickupid == lpatko[35])
  629. {
  630. if(pInfo[playerid][Patko36] == 1)
  631. {
  632. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  633. return 1;
  634. }
  635. pInfo[playerid][Patko36] += 1;
  636. pInfo[playerid][Patkok] += 1;
  637. new string[150];
  638. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  639. GameTextForPlayer(playerid, string, 2500, 3);
  640. }
  641. if(pickupid == lpatko[36])
  642. {
  643. if(pInfo[playerid][Patko37] == 1)
  644. {
  645. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  646. return 1;
  647. }
  648. pInfo[playerid][Patko37] += 1;
  649. pInfo[playerid][Patkok] += 1;
  650. new string[150];
  651. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  652. GameTextForPlayer(playerid, string, 2500, 3);
  653. }
  654. if(pickupid == lpatko[37])
  655. {
  656. if(pInfo[playerid][Patko38] == 1)
  657. {
  658. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  659. return 1;
  660. }
  661. pInfo[playerid][Patko38] += 1;
  662. pInfo[playerid][Patkok] += 1;
  663. new string[150];
  664. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  665. GameTextForPlayer(playerid, string, 2500, 3);
  666. }
  667. if(pickupid == lpatko[38])
  668. {
  669. if(pInfo[playerid][Patko39] == 1)
  670. {
  671. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  672. return 1;
  673. }
  674. pInfo[playerid][Patko39] += 1;
  675. pInfo[playerid][Patkok] += 1;
  676. new string[150];
  677. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  678. GameTextForPlayer(playerid, string, 2500, 3);
  679. }
  680. if(pickupid == lpatko[39])
  681. {
  682. if(pInfo[playerid][Patko40] == 1)
  683. {
  684. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  685. return 1;
  686. }
  687. pInfo[playerid][Patko40] += 1;
  688. pInfo[playerid][Patkok] += 1;
  689. new string[150];
  690. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  691. GameTextForPlayer(playerid, string, 2500, 3);
  692. }
  693. if(pickupid == lpatko[40])
  694. {
  695. if(pInfo[playerid][Patko41] == 1)
  696. {
  697. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  698. return 1;
  699. }
  700. pInfo[playerid][Patko41] += 1;
  701. pInfo[playerid][Patkok] += 1;
  702. new string[150];
  703. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  704. GameTextForPlayer(playerid, string, 2500, 3);
  705. }
  706. if(pickupid == lpatko[41])
  707. {
  708. if(pInfo[playerid][Patko42] == 1)
  709. {
  710. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  711. return 1;
  712. }
  713. pInfo[playerid][Patko42] += 1;
  714. pInfo[playerid][Patkok] += 1;
  715. new string[150];
  716. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  717. GameTextForPlayer(playerid, string, 2500, 3);
  718. }
  719. if(pickupid == lpatko[42])
  720. {
  721. if(pInfo[playerid][Patko43] == 1)
  722. {
  723. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  724. return 1;
  725. }
  726. pInfo[playerid][Patko43] += 1;
  727. pInfo[playerid][Patkok] += 1;
  728. new string[150];
  729. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  730. GameTextForPlayer(playerid, string, 2500, 3);
  731. }
  732. if(pickupid == lpatko[43])
  733. {
  734. if(pInfo[playerid][Patko44] == 1)
  735. {
  736. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  737. return 1;
  738. }
  739. pInfo[playerid][Patko44] += 1;
  740. pInfo[playerid][Patkok] += 1;
  741. new string[150];
  742. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  743. GameTextForPlayer(playerid, string, 2500, 3);
  744. }
  745. if(pickupid == lpatko[44])
  746. {
  747. if(pInfo[playerid][Patko45] == 1)
  748. {
  749. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  750. return 1;
  751. }
  752. pInfo[playerid][Patko45] += 1;
  753. pInfo[playerid][Patkok] += 1;
  754. new string[150];
  755. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  756. GameTextForPlayer(playerid, string, 2500, 3);
  757. }
  758. if(pickupid == lpatko[45])
  759. {
  760. if(pInfo[playerid][Patko46] == 1)
  761. {
  762. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  763. return 1;
  764. }
  765. pInfo[playerid][Patko46] += 1;
  766. pInfo[playerid][Patkok] += 1;
  767. new string[150];
  768. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  769. GameTextForPlayer(playerid, string, 2500, 3);
  770. }
  771. if(pickupid == lpatko[46])
  772. {
  773. if(pInfo[playerid][Patko47] == 1)
  774. {
  775. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  776. return 1;
  777. }
  778. pInfo[playerid][Patko47] += 1;
  779. pInfo[playerid][Patkok] += 1;
  780. new string[150];
  781. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  782. GameTextForPlayer(playerid, string, 2500, 3);
  783. }
  784. if(pickupid == lpatko[47])
  785. {
  786. if(pInfo[playerid][Patko48] == 1)
  787. {
  788. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  789. return 1;
  790. }
  791. pInfo[playerid][Patko48] += 1;
  792. pInfo[playerid][Patkok] += 1;
  793. new string[150];
  794. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  795. GameTextForPlayer(playerid, string, 2500, 3);
  796. }
  797. if(pickupid == lpatko[48])
  798. {
  799. if(pInfo[playerid][Patko49] == 1)
  800. {
  801. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  802. return 1;
  803. }
  804. pInfo[playerid][Patko49] += 1;
  805. pInfo[playerid][Patkok] += 1;
  806. new string[150];
  807. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  808. GameTextForPlayer(playerid, string, 2500, 3);
  809. }
  810. if(pickupid == lpatko[49])
  811. {
  812. if(pInfo[playerid][Patko50] == 1)
  813. {
  814. SendClientMessage(playerid, COLOR_RED, "HIBA: Már begyűjtötted ezt a lópatkót!");
  815. return 1;
  816. }
  817. pInfo[playerid][Patko50] += 1;
  818. pInfo[playerid][Patkok] += 1;
  819. new string[150];
  820. format(string, sizeof(string), "~r~%d ~w~Lópatkó ~w~ begyűjtve az~r~50~w~-ból", pInfo[playerid][Patkok]);
  821. GameTextForPlayer(playerid, string, 2500, 3);
  822. }
  823. if(pInfo[playerid][Patkok] == 50)
  824. {
  825. new string2[150];
  826. SetPlayerScore(playerid, 5000);
  827. GivePlayerMoney(playerid, 1000000);
  828. format(string2, sizeof(string2), "~r~%s ~w~begyűjtötte az összes\n ~r~patkó~w~t, Gratulálunk neki!!\n Nyert 1,000,000$-t és 5000 Pontot", pName);
  829. GameTextForAll(string2, 10000, 3);
  830. return 1;
  831. }
  832. return 1;
  833. }
  834.  
  835. COMMAND:stats(playerid, params[])
  836. {
  837. new option[10];
  838.  
  839. if(sscanf(params, "s[10]", option)) return SendClientMessage(playerid, COLOR_RED, "HASZNÁLAT: /stats [1 | 2 | 3 | 4 | 5]");
  840.  
  841. if(!strcmp(option, "1", true))
  842. {
  843. cmd_patkoinfo1(playerid, params);
  844. return 1;
  845. }
  846. if(!strcmp(option, "2", true))
  847. {
  848. cmd_patkoinfo2(playerid, params);
  849. return 1;
  850. }
  851. if(!strcmp(option, "3", true))
  852. {
  853. cmd_patkoinfo3(playerid, params);
  854. return 1;
  855. }
  856. if(!strcmp(option, "4", true))
  857. {
  858. cmd_patkoinfo4(playerid, params);
  859. return 1;
  860. }
  861. if(!strcmp(option, "5", true))
  862. {
  863. cmd_patkoinfo5(playerid, params);
  864. return 1;
  865. }
  866. return 1;
  867. }
  868.  
  869. CMD:patkoinfo1(playerid, params[])
  870. {
  871. new StatsMenu[1024], StatsMenu1[512], StatsMenu2[512], StatsMenu3[512],
  872. Patko1String[512], Patko2String[32], Patko3String[32], Patko4String[32], Patko5String[32],
  873. Patko6String[512], Patko7String[32], Patko8String[32], Patko9String[32],Patko10String[32];
  874.  
  875. if(pInfo[playerid][Patko1] == 0) format(Patko1String, sizeof(Patko1String), "Nincs");
  876. else if(pInfo[playerid][Patko1] == 1) format(Patko1String, sizeof(Patko1String), "Felvéve");
  877. if(pInfo[playerid][Patko2] == 0) format(Patko2String, sizeof(Patko2String), "Nincs");
  878. else if(pInfo[playerid][Patko2] == 1) format(Patko2String, sizeof(Patko2String), "Felvéve");
  879. if(pInfo[playerid][Patko3] == 0) format(Patko3String, sizeof(Patko3String), "Nincs");
  880. else if(pInfo[playerid][Patko3] == 1) format(Patko3String, sizeof(Patko3String), "Felvéve");
  881. if(pInfo[playerid][Patko4] == 0) format(Patko4String, sizeof(Patko4String), "Nincs");
  882. else if(pInfo[playerid][Patko4] == 1) format(Patko4String, sizeof(Patko4String), "Felvéve");
  883. if(pInfo[playerid][Patko5] == 0) format(Patko5String, sizeof(Patko5String), "Nincs");
  884. else if(pInfo[playerid][Patko5] == 1) format(Patko5String, sizeof(Patko5String), "Felvéve");
  885. if(pInfo[playerid][Patko6] == 0) format(Patko6String, sizeof(Patko6String), "Nincs");
  886. else if(pInfo[playerid][Patko6] == 1) format(Patko6String, sizeof(Patko6String), "Felvéve");
  887. if(pInfo[playerid][Patko7] == 0) format(Patko7String, sizeof(Patko7String), "Nincs");
  888. else if(pInfo[playerid][Patko7] == 1) format(Patko7String, sizeof(Patko7String), "Felvéve");
  889. if(pInfo[playerid][Patko8] == 0) format(Patko8String, sizeof(Patko8String), "Nincs");
  890. else if(pInfo[playerid][Patko8] == 1) format(Patko8String, sizeof(Patko8String), "Felvéve");
  891. if(pInfo[playerid][Patko9] == 0) format(Patko9String, sizeof(Patko9String), "Nincs");
  892. else if(pInfo[playerid][Patko9] == 1) format(Patko9String, sizeof(Patko9String), "Felvéve");
  893. if(pInfo[playerid][Patko10] == 0) format(Patko10String, sizeof(Patko10String), "Nincs");
  894. else if(pInfo[playerid][Patko10] == 1) format(Patko10String, sizeof(Patko10String), "Felvéve");
  895.  
  896. format(StatsMenu1, sizeof(StatsMenu1), "{FFFFFF}ÖSSZES JELENLEGI PATKÓD: %d\n{EB1B1B}\n\n", pInfo[playerid][Patkok]);
  897. format(StatsMenu2, sizeof(StatsMenu2), "{FFFFFF}1. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}2. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}3. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}4. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}5. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko1String, Patko2String, Patko3String, Patko4String, Patko5String);
  898. format(StatsMenu3, sizeof(StatsMenu3), "{FFFFFF}6. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}7. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}8. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}9. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}10. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko6String, Patko7String, Patko8String, Patko9String, Patko10String);
  899.  
  900. strcat(StatsMenu, StatsMenu1);
  901. strcat(StatsMenu, StatsMenu2);
  902. strcat(StatsMenu, StatsMenu3);
  903.  
  904. ShowPlayerDialog(playerid, LOPATKOINFO, DIALOG_STYLE_MSGBOX, "Lópatkóid[1.Oldal]:", StatsMenu, "Oké", "Kilépés");
  905. return 1;
  906. }
  907. CMD:patkoinfo2(playerid, params[])
  908. {
  909. new StatsMenu[1024], StatsMenu1[512], StatsMenu4[512], StatsMenu5[512],
  910. Patko11String[512], Patko12String[32], Patko13String[32], Patko14String[32], Patko15String[32],
  911. Patko16String[512], Patko17String[32], Patko18String[32], Patko19String[32], Patko20String[32];
  912.  
  913. if(pInfo[playerid][Patko11] == 0) format(Patko11String, sizeof(Patko11String), "Nincs");
  914. else if(pInfo[playerid][Patko11] == 1) format(Patko11String, sizeof(Patko11String), "Felvéve");
  915. if(pInfo[playerid][Patko12] == 0) format(Patko12String, sizeof(Patko12String), "Nincs");
  916. else if(pInfo[playerid][Patko12] == 1) format(Patko12String, sizeof(Patko12String), "Felvéve");
  917. if(pInfo[playerid][Patko13] == 0) format(Patko13String, sizeof(Patko13String), "Nincs");
  918. else if(pInfo[playerid][Patko13] == 1) format(Patko13String, sizeof(Patko13String), "Felvéve");
  919. if(pInfo[playerid][Patko14] == 0) format(Patko14String, sizeof(Patko14String), "Nincs");
  920. else if(pInfo[playerid][Patko14] == 1) format(Patko14String, sizeof(Patko14String), "Felvéve");
  921. if(pInfo[playerid][Patko15] == 0) format(Patko15String, sizeof(Patko15String), "Nincs");
  922. else if(pInfo[playerid][Patko15] == 1) format(Patko15String, sizeof(Patko15String), "Felvéve");
  923. if(pInfo[playerid][Patko16] == 0) format(Patko16String, sizeof(Patko16String), "Nincs");
  924. else if(pInfo[playerid][Patko16] == 1) format(Patko16String, sizeof(Patko16String), "Felvéve");
  925. if(pInfo[playerid][Patko17] == 0) format(Patko17String, sizeof(Patko17String), "Nincs");
  926. else if(pInfo[playerid][Patko17] == 1) format(Patko17String, sizeof(Patko17String), "Felvéve");
  927. if(pInfo[playerid][Patko18] == 0) format(Patko18String, sizeof(Patko18String), "Nincs");
  928. else if(pInfo[playerid][Patko18] == 1) format(Patko18String, sizeof(Patko18String), "Felvéve");
  929. if(pInfo[playerid][Patko19] == 0) format(Patko19String, sizeof(Patko19String), "Nincs");
  930. else if(pInfo[playerid][Patko19] == 1) format(Patko19String, sizeof(Patko19String), "Felvéve");
  931. if(pInfo[playerid][Patko20] == 0) format(Patko20String, sizeof(Patko20String), "Nincs");
  932. else if(pInfo[playerid][Patko20] == 1) format(Patko20String, sizeof(Patko20String), "Felvéve");
  933.  
  934. format(StatsMenu1, sizeof(StatsMenu1), "{FFFFFF}ÖSSZES JELENLEGI PATKÓD: %d\n{EB1B1B}\n\n", pInfo[playerid][Patkok]);
  935. format(StatsMenu4, sizeof(StatsMenu4), "{FFFFFF}11. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}12. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}13. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}14. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}15. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko11String, Patko12String, Patko13String, Patko14String, Patko15String);
  936. format(StatsMenu5, sizeof(StatsMenu5), "{FFFFFF}16. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}17. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}18. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}19. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}20. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko16String, Patko17String, Patko18String, Patko19String, Patko20String);
  937.  
  938. strcat(StatsMenu, StatsMenu1);
  939. strcat(StatsMenu, StatsMenu4);
  940. strcat(StatsMenu, StatsMenu5);
  941.  
  942. ShowPlayerDialog(playerid, LOPATKOINFO, DIALOG_STYLE_MSGBOX, "Lópatkóid[2.Oldal]:", StatsMenu, "Oké", "Kilépés");
  943. return 1;
  944. }
  945. CMD:patkoinfo3(playerid, params[])
  946. {
  947. new StatsMenu[1024], StatsMenu1[512], StatsMenu6[512], StatsMenu7[512],
  948. Patko21String[512], Patko22String[32], Patko23String[32], Patko24String[32], Patko25String[32],
  949. Patko26String[512], Patko27String[32], Patko28String[32], Patko29String[32], Patko30String[32];
  950.  
  951. if(pInfo[playerid][Patko21] == 0) format(Patko21String, sizeof(Patko21String), "Nincs");
  952. else if(pInfo[playerid][Patko21] == 1) format(Patko21String, sizeof(Patko21String), "Felvéve");
  953. if(pInfo[playerid][Patko22] == 0) format(Patko22String, sizeof(Patko22String), "Nincs");
  954. else if(pInfo[playerid][Patko22] == 1) format(Patko22String, sizeof(Patko22String), "Felvéve");
  955. if(pInfo[playerid][Patko23] == 0) format(Patko23String, sizeof(Patko23String), "Nincs");
  956. else if(pInfo[playerid][Patko23] == 1) format(Patko23String, sizeof(Patko23String), "Felvéve");
  957. if(pInfo[playerid][Patko24] == 0) format(Patko24String, sizeof(Patko24String), "Nincs");
  958. else if(pInfo[playerid][Patko24] == 1) format(Patko24String, sizeof(Patko24String), "Felvéve");
  959. if(pInfo[playerid][Patko25] == 0) format(Patko25String, sizeof(Patko25String), "Nincs");
  960. else if(pInfo[playerid][Patko25] == 1) format(Patko25String, sizeof(Patko25String), "Felvéve");
  961. if(pInfo[playerid][Patko26] == 0) format(Patko26String, sizeof(Patko26String), "Nincs");
  962. else if(pInfo[playerid][Patko26] == 1) format(Patko26String, sizeof(Patko26String), "Felvéve");
  963. if(pInfo[playerid][Patko27] == 0) format(Patko27String, sizeof(Patko27String), "Nincs");
  964. else if(pInfo[playerid][Patko27] == 1) format(Patko27String, sizeof(Patko27String), "Felvéve");
  965. if(pInfo[playerid][Patko28] == 0) format(Patko28String, sizeof(Patko28String), "Nincs");
  966. else if(pInfo[playerid][Patko28] == 1) format(Patko28String, sizeof(Patko28String), "Felvéve");
  967. if(pInfo[playerid][Patko29] == 0) format(Patko29String, sizeof(Patko29String), "Nincs");
  968. else if(pInfo[playerid][Patko29] == 1) format(Patko29String, sizeof(Patko29String), "Felvéve");
  969. if(pInfo[playerid][Patko30] == 0) format(Patko30String, sizeof(Patko30String), "Nincs");
  970. else if(pInfo[playerid][Patko30] == 1) format(Patko30String, sizeof(Patko30String), "Felvéve");
  971.  
  972. format(StatsMenu1, sizeof(StatsMenu1), "{FFFFFF}ÖSSZES JELENLEGI PATKÓD: %d\n{EB1B1B}\n\n", pInfo[playerid][Patkok]);
  973. format(StatsMenu6, sizeof(StatsMenu6), "{FFFFFF}21. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}22. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}23. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}24. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}25. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko21String, Patko22String, Patko23String, Patko24String, Patko25String);
  974. format(StatsMenu7, sizeof(StatsMenu7), "{FFFFFF}26. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}27. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}28. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}29. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}30. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko26String, Patko27String, Patko28String, Patko29String, Patko30String);
  975.  
  976. strcat(StatsMenu, StatsMenu1);
  977. strcat(StatsMenu, StatsMenu6);
  978. strcat(StatsMenu, StatsMenu7);
  979.  
  980. ShowPlayerDialog(playerid, LOPATKOINFO, DIALOG_STYLE_MSGBOX, "Lópatkóid[3.Oldal]:", StatsMenu, "Oké", "Kilépés");
  981. return 1;
  982. }
  983. CMD:patkoinfo4(playerid, params[])
  984. {
  985. new StatsMenu[1024], StatsMenu1[512],StatsMenu8[512], StatsMenu9[512],
  986. Patko31String[512], Patko32String[32], Patko33String[32], Patko34String[32], Patko35String[32],
  987. Patko36String[512], Patko37String[32], Patko38String[32], Patko39String[32], Patko40String[32];
  988.  
  989. if(pInfo[playerid][Patko31] == 0) format(Patko31String, sizeof(Patko31String), "Nincs");
  990. else if(pInfo[playerid][Patko31] == 1) format(Patko31String, sizeof(Patko31String), "Felvéve");
  991. if(pInfo[playerid][Patko32] == 0) format(Patko32String, sizeof(Patko32String), "Nincs");
  992. else if(pInfo[playerid][Patko32] == 1) format(Patko32String, sizeof(Patko32String), "Felvéve");
  993. if(pInfo[playerid][Patko33] == 0) format(Patko33String, sizeof(Patko33String), "Nincs");
  994. else if(pInfo[playerid][Patko33] == 1) format(Patko33String, sizeof(Patko33String), "Felvéve");
  995. if(pInfo[playerid][Patko34] == 0) format(Patko34String, sizeof(Patko34String), "Nincs");
  996. else if(pInfo[playerid][Patko34] == 1) format(Patko34String, sizeof(Patko34String), "Felvéve");
  997. if(pInfo[playerid][Patko35] == 0) format(Patko35String, sizeof(Patko35String), "Nincs");
  998. else if(pInfo[playerid][Patko35] == 1) format(Patko35String, sizeof(Patko35String), "Felvéve");
  999. if(pInfo[playerid][Patko36] == 0) format(Patko36String, sizeof(Patko36String), "Nincs");
  1000. else if(pInfo[playerid][Patko36] == 1) format(Patko36String, sizeof(Patko36String), "Felvéve");
  1001. if(pInfo[playerid][Patko37] == 0) format(Patko37String, sizeof(Patko37String), "Nincs");
  1002. else if(pInfo[playerid][Patko37] == 1) format(Patko37String, sizeof(Patko37String), "Felvéve");
  1003. if(pInfo[playerid][Patko38] == 0) format(Patko38String, sizeof(Patko38String), "Nincs");
  1004. else if(pInfo[playerid][Patko38] == 1) format(Patko38String, sizeof(Patko38String), "Felvéve");
  1005. if(pInfo[playerid][Patko39] == 0) format(Patko39String, sizeof(Patko39String), "Nincs");
  1006. else if(pInfo[playerid][Patko39] == 1) format(Patko39String, sizeof(Patko39String), "Felvéve");
  1007. if(pInfo[playerid][Patko40] == 0) format(Patko40String, sizeof(Patko40String), "Nincs");
  1008. else if(pInfo[playerid][Patko40] == 1) format(Patko40String, sizeof(Patko40String), "Felvéve");
  1009.  
  1010. format(StatsMenu1, sizeof(StatsMenu1), "{FFFFFF}ÖSSZES JELENLEGI PATKÓD: %d\n{EB1B1B}\n\n", pInfo[playerid][Patkok]);
  1011. format(StatsMenu8, sizeof(StatsMenu8), "{FFFFFF}31. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}32. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}33. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}34. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}35. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko31String, Patko32String, Patko33String, Patko34String, Patko35String);
  1012. format(StatsMenu9, sizeof(StatsMenu9), "{FFFFFF}36. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}37. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}38. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}39. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}40. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko36String, Patko37String, Patko38String, Patko39String, Patko40String);
  1013.  
  1014. strcat(StatsMenu, StatsMenu1);
  1015. strcat(StatsMenu, StatsMenu8);
  1016. strcat(StatsMenu, StatsMenu9);
  1017.  
  1018. ShowPlayerDialog(playerid, LOPATKOINFO, DIALOG_STYLE_MSGBOX, "Lópatkóid[4.Oldal]:", StatsMenu, "Oké", "Kilépés");
  1019. return 1;
  1020. }
  1021. CMD:patkoinfo5(playerid, params[])
  1022. {
  1023. new StatsMenu[512], StatsMenu1[512], StatsMenu10[512], StatsMenu11[512],
  1024.  
  1025. Patko41String[512], Patko42String[32], Patko43String[32], Patko44String[32], Patko45String[32],
  1026. Patko46String[512], Patko47String[32], Patko48String[32], Patko49String[32], Patko50String[32];
  1027.  
  1028.  
  1029. if(pInfo[playerid][Patko41] == 0) format(Patko41String, sizeof(Patko41String), "Nincs");
  1030. else if(pInfo[playerid][Patko41] == 1) format(Patko41String, sizeof(Patko41String), "Felvéve");
  1031. if(pInfo[playerid][Patko42] == 0) format(Patko42String, sizeof(Patko42String), "Nincs");
  1032. else if(pInfo[playerid][Patko42] == 1) format(Patko42String, sizeof(Patko42String), "Felvéve");
  1033. if(pInfo[playerid][Patko43] == 0) format(Patko43String, sizeof(Patko43String), "Nincs");
  1034. else if(pInfo[playerid][Patko43] == 1) format(Patko43String, sizeof(Patko43String), "Felvéve");
  1035. if(pInfo[playerid][Patko44] == 0) format(Patko44String, sizeof(Patko44String), "Nincs");
  1036. else if(pInfo[playerid][Patko44] == 1) format(Patko44String, sizeof(Patko44String), "Felvéve");
  1037. if(pInfo[playerid][Patko45] == 0) format(Patko45String, sizeof(Patko45String), "Nincs");
  1038. else if(pInfo[playerid][Patko45] == 1) format(Patko45String, sizeof(Patko45String), "Felvéve");
  1039. if(pInfo[playerid][Patko46] == 0) format(Patko46String, sizeof(Patko46String), "Nincs");
  1040. else if(pInfo[playerid][Patko46] == 1) format(Patko46String, sizeof(Patko46String), "Felvéve");
  1041. if(pInfo[playerid][Patko47] == 0) format(Patko47String, sizeof(Patko47String), "Nincs");
  1042. else if(pInfo[playerid][Patko47] == 1) format(Patko47String, sizeof(Patko47String), "Felvéve");
  1043. if(pInfo[playerid][Patko48] == 0) format(Patko48String, sizeof(Patko48String), "Nincs");
  1044. else if(pInfo[playerid][Patko48] == 1) format(Patko48String, sizeof(Patko48String), "Felvéve");
  1045. if(pInfo[playerid][Patko49] == 0) format(Patko49String, sizeof(Patko49String), "Nincs");
  1046. else if(pInfo[playerid][Patko49] == 1) format(Patko49String, sizeof(Patko49String), "Felvéve");
  1047. if(pInfo[playerid][Patko50] == 0) format(Patko50String, sizeof(Patko50String), "Nincs");
  1048. else if(pInfo[playerid][Patko50] == 1) format(Patko50String, sizeof(Patko50String), "Felvéve");
  1049.  
  1050.  
  1051. format(StatsMenu1, sizeof(StatsMenu1), "{FFFFFF}ÖSSZES JELENLEGI PATKÓD: %d\n{EB1B1B}\n\n", pInfo[playerid][Patkok]);
  1052. format(StatsMenu10, sizeof(StatsMenu10), "{FFFFFF}41. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}42. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}43. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}44. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}45. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko41String, Patko42String, Patko43String, Patko44String, Patko45String);
  1053. format(StatsMenu11, sizeof(StatsMenu11), "{FFFFFF}46. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}47. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}48. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}49. Patkó: {EB1B1B}%s{FFFFFF} | {FFFFFF}50. Patkó: {EB1B1B}%s{FFFFFF}\n", Patko46String, Patko47String, Patko48String, Patko49String, Patko50String);
  1054.  
  1055. strcat(StatsMenu, StatsMenu1);
  1056. strcat(StatsMenu, StatsMenu10);
  1057. strcat(StatsMenu, StatsMenu11);
  1058.  
  1059. ShowPlayerDialog(playerid, LOPATKOINFO, DIALOG_STYLE_MSGBOX, "Lópatkóid[5.Oldal]:", StatsMenu, "Oké", "Kilépés");
  1060. return 1;
  1061. }
  1062.  
  1063. CMD:teszt(playerid, params[])
  1064. {
  1065. pInfo[playerid][Patko1] = 0;
  1066. pInfo[playerid][Patko2] = 0;
  1067. pInfo[playerid][Patko3] = 0;
  1068. pInfo[playerid][Patko4] = 0;
  1069. pInfo[playerid][Patko5] = 0;
  1070. pInfo[playerid][Patko6] = 0;
  1071. pInfo[playerid][Patko7] = 0;
  1072. pInfo[playerid][Patko8] = 0;
  1073. pInfo[playerid][Patko9] = 0;
  1074. pInfo[playerid][Patko10] = 0;
  1075. pInfo[playerid][Patko11] = 0;
  1076. pInfo[playerid][Patko12] = 0;
  1077. pInfo[playerid][Patko13] = 0;
  1078. pInfo[playerid][Patko14] = 0;
  1079. pInfo[playerid][Patko15] = 0;
  1080. pInfo[playerid][Patko16] = 0;
  1081. pInfo[playerid][Patko17] = 0;
  1082. pInfo[playerid][Patko18] = 0;
  1083. pInfo[playerid][Patko19] = 0;
  1084. pInfo[playerid][Patko20] = 0;
  1085. pInfo[playerid][Patko21] = 0;
  1086. pInfo[playerid][Patko22] = 0;
  1087. pInfo[playerid][Patko23] = 0;
  1088. pInfo[playerid][Patko24] = 0;
  1089. pInfo[playerid][Patko25] = 0;
  1090. pInfo[playerid][Patko26] = 0;
  1091. pInfo[playerid][Patko27] = 0;
  1092. pInfo[playerid][Patko28] = 0;
  1093. pInfo[playerid][Patko29] = 0;
  1094. pInfo[playerid][Patko30] = 0;
  1095. pInfo[playerid][Patko31] = 0;
  1096. pInfo[playerid][Patko32] = 0;
  1097. pInfo[playerid][Patko33] = 0;
  1098. pInfo[playerid][Patko34] = 0;
  1099. pInfo[playerid][Patko35] = 0;
  1100. pInfo[playerid][Patko36] = 0;
  1101. pInfo[playerid][Patko37] = 0;
  1102. pInfo[playerid][Patko38] = 0;
  1103. pInfo[playerid][Patko39] = 0;
  1104. pInfo[playerid][Patko40] = 0;
  1105. pInfo[playerid][Patko41] = 0;
  1106. pInfo[playerid][Patko42] = 0;
  1107. pInfo[playerid][Patko43] = 0;
  1108. pInfo[playerid][Patko44] = 0;
  1109. pInfo[playerid][Patko45] = 0;
  1110. pInfo[playerid][Patko46] = 0;
  1111. pInfo[playerid][Patko47] = 0;
  1112. pInfo[playerid][Patko48] = 0;
  1113. pInfo[playerid][Patko49] = 0;
  1114. pInfo[playerid][Patko50] = 0;
  1115. pInfo[playerid][Patkok] = 0;
  1116. return 1;
  1117. }
  1118. CMD:teszt2(playerid, params[])
  1119. {
  1120. pInfo[playerid][Patko1] = 1;
  1121. pInfo[playerid][Patko2] = 1;
  1122. pInfo[playerid][Patko3] = 1;
  1123. pInfo[playerid][Patko4] = 1;
  1124. pInfo[playerid][Patko5] = 1;
  1125. pInfo[playerid][Patko6] = 1;
  1126. pInfo[playerid][Patko7] = 1;
  1127. pInfo[playerid][Patko8] = 1;
  1128. pInfo[playerid][Patko9] = 1;
  1129. pInfo[playerid][Patko10] = 1;
  1130. pInfo[playerid][Patko11] = 1;
  1131. pInfo[playerid][Patko12] = 1;
  1132. pInfo[playerid][Patko13] = 1;
  1133. pInfo[playerid][Patko14] = 1;
  1134. pInfo[playerid][Patko15] = 1;
  1135. pInfo[playerid][Patko16] = 1;
  1136. pInfo[playerid][Patko17] = 1;
  1137. pInfo[playerid][Patko18] = 1;
  1138. pInfo[playerid][Patko19] = 1;
  1139. pInfo[playerid][Patko20] = 1;
  1140. pInfo[playerid][Patko21] = 1;
  1141. pInfo[playerid][Patko22] = 1;
  1142. pInfo[playerid][Patko23] = 1;
  1143. pInfo[playerid][Patko24] = 1;
  1144. pInfo[playerid][Patko25] = 1;
  1145. pInfo[playerid][Patko26] = 1;
  1146. pInfo[playerid][Patko27] = 1;
  1147. pInfo[playerid][Patko28] = 1;
  1148. pInfo[playerid][Patko29] = 1;
  1149. pInfo[playerid][Patko30] = 1;
  1150. pInfo[playerid][Patko31] = 1;
  1151. pInfo[playerid][Patko32] = 1;
  1152. pInfo[playerid][Patko33] = 1;
  1153. pInfo[playerid][Patko34] = 1;
  1154. pInfo[playerid][Patko35] = 1;
  1155. pInfo[playerid][Patko36] = 1;
  1156. pInfo[playerid][Patko37] = 1;
  1157. pInfo[playerid][Patko38] = 1;
  1158. pInfo[playerid][Patko39] = 1;
  1159. pInfo[playerid][Patko40] = 1;
  1160. pInfo[playerid][Patko41] = 1;
  1161. pInfo[playerid][Patko42] = 1;
  1162. pInfo[playerid][Patko43] = 1;
  1163. pInfo[playerid][Patko44] = 1;
  1164. pInfo[playerid][Patko45] = 1;
  1165. pInfo[playerid][Patko46] = 1;
  1166. pInfo[playerid][Patko47] = 1;
  1167. pInfo[playerid][Patko48] = 1;
  1168. pInfo[playerid][Patko49] = 1;
  1169. pInfo[playerid][Patko50] = 0;
  1170. pInfo[playerid][Patkok] = 49;
  1171. return 1;
  1172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement