Guest User

mister_ic3

a guest
Jun 10th, 2009
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.46 KB | None | 0 0
  1. //these are the forwards for publics used
  2.  
  3. forward treasuremap(playerid);
  4. forward textdrawhide(playerid);
  5. forward ClearSfishes(playerid);
  6. forward ClearSfishID(playerid, sfish);
  7.  
  8. //defines for pickups
  9.  
  10. new treasureloc1;
  11. new treasureloc2;
  12. new treasureloc3;
  13. new treasureloc4;
  14. new treasureloc5;
  15. new treasureloc6;
  16. new treasureloc7;
  17. new treasureloc8;
  18. new treasureloc9;
  19. new treasureloc10;
  20. new treasureloc11;
  21. new treasureloc12;
  22. new treasureloc13;
  23. new treasureloc14;
  24. new treasureloc15;
  25. new Treasure[MAX_PLAYERS];
  26.  
  27. //-------------textdraws----
  28. new Text:Treasurefound[MAX_PLAYERS];
  29. new Text:Treasamount[MAX_PLAYERS];
  30. new Text:Treasworth[MAX_PLAYERS];
  31. new Text:Allfound[MAX_PLAYERS];
  32. new Text:Livetop[MAX_PLAYERS];
  33. new Text:Lrow1[MAX_PLAYERS];
  34. new Text:Lrow2[MAX_PLAYERS];
  35. new Text:Lrow3[MAX_PLAYERS];
  36. new Text:Lrow4[MAX_PLAYERS];
  37. new Text:Lrow5[MAX_PLAYERS];
  38. new Text:Livebot[MAX_PLAYERS];
  39. //--------------------------
  40.  
  41. public OnPlayerDeath(playerid, killerid, reason)
  42. {
  43. Treasure[playerid] = 0;
  44. return 1;
  45. }
  46.  
  47. public OnPlayerPickUpPickup(playerid, pickupid)
  48. {
  49. //---------------------------------------------------------------------------------
  50. if ( pickupid == treasureloc1 )
  51. {
  52. new string[128];
  53. new tresrand = random(1000000)
  54. Treasure[playerid] += 1;
  55. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  56. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  57. TextDrawAlignment(Treasurefound[playerid], 1);
  58. TextDrawFont(Treasurefound[playerid], 1);
  59. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  60. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  61. // TextDrawUseBox(Treasurefound[playerid], 1);
  62. // TextDrawTextSize(0.5, 0.9);
  63. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  64. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  65. //-------------------------------------------------------------------------------
  66. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  67. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  68. TextDrawAlignment(Treasamount[playerid], 1);
  69. TextDrawFont(Treasamount[playerid], 1);
  70. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  71. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  72. // TextDrawUseBox(Treasamount[playerid], 1);
  73. // TextDrawTextSize(0.5, 0.9);
  74. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  75. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  76. //-------------------------------------------------------------------------------
  77. // SendClientMessage(playerid, COLOR_ORANGE, string);
  78. format(string, sizeof(string), "It was worth $%d!", tresrand);
  79. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  80. TextDrawAlignment(Treasworth[playerid], 1);
  81. TextDrawFont(Treasworth[playerid], 2);
  82. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  83. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  84. // TextDrawUseBox(Treasworth[playerid], 1);
  85. // TextDrawTextSize(0.5, 0.9);
  86. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  87. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  88. // SendClientMessage(playerid, COLOR_ORANGE, string);
  89. SafeGivePlayerMoney(playerid, tresrand);
  90.  
  91. }
  92. else if(pickupid == treasureloc1 )
  93. {
  94. if(Treasure[playerid] == 14)
  95. {
  96. new string[128];
  97. new name[MAX_PLAYER_NAME];
  98. Treasure[playerid] += 1;
  99. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  100. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  101. TextDrawAlignment(Treasurefound[playerid], 1);
  102. TextDrawFont(Treasurefound[playerid], 0);
  103. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  104. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  105. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  106. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  107. //----------------------------------------------------------------------------
  108. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  109. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  110. TextDrawAlignment(Allfound[playerid], 1);
  111. TextDrawFont(Allfound[playerid], 1);
  112. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  113. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  114. // TextDrawSetOutline(Allfound[playerid], 0.8);
  115. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  116. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  117. GetPlayerName(playerid, name, sizeof(name));
  118. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  119. SendClientMessageToAll(COLOR_YELLOW, string);
  120. }
  121. }
  122. if ( pickupid == treasureloc2 )
  123. {
  124. new string[128];
  125. new tresrand = random(1000000)
  126. Treasure[playerid] += 1;
  127. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  128. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  129. TextDrawAlignment(Treasurefound[playerid], 1);
  130. TextDrawFont(Treasurefound[playerid], 1);
  131. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  132. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  133. // TextDrawUseBox(Treasurefound[playerid], 1);
  134. // TextDrawTextSize(0.5, 0.9);
  135. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  136. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  137. //-------------------------------------------------------------------------------
  138. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  139. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  140. TextDrawAlignment(Treasamount[playerid], 1);
  141. TextDrawFont(Treasamount[playerid], 1);
  142. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  143. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  144. // TextDrawUseBox(Treasamount[playerid], 1);
  145. // TextDrawTextSize(0.5, 0.9);
  146. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  147. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  148. //-------------------------------------------------------------------------------
  149. // SendClientMessage(playerid, COLOR_ORANGE, string);
  150. format(string, sizeof(string), "It was worth $%d!", tresrand);
  151. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  152. TextDrawAlignment(Treasworth[playerid], 1);
  153. TextDrawFont(Treasworth[playerid], 2);
  154. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  155. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  156. // TextDrawUseBox(Treasworth[playerid], 1);
  157. // TextDrawTextSize(0.5, 0.9);
  158. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  159. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  160. // SendClientMessage(playerid, COLOR_ORANGE, string);
  161. SafeGivePlayerMoney(playerid, tresrand);
  162. }
  163. else if(pickupid == treasureloc2 )
  164. {
  165. if(Treasure[playerid] == 14)
  166. {
  167. new string[128];
  168. new name[MAX_PLAYER_NAME];
  169. Treasure[playerid] += 1;
  170. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  171. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  172. TextDrawAlignment(Treasurefound[playerid], 1);
  173. TextDrawFont(Treasurefound[playerid], 0);
  174. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  175. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  176. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  177. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  178. //----------------------------------------------------------------------------
  179. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  180. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  181. TextDrawAlignment(Allfound[playerid], 1);
  182. TextDrawFont(Allfound[playerid], 1);
  183. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  184. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  185. // TextDrawSetOutline(Allfound[playerid], 0.8);
  186. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  187. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  188. GetPlayerName(playerid, name, sizeof(name));
  189. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  190. SendClientMessageToAll(COLOR_YELLOW, string);
  191. }
  192. }
  193. if ( pickupid == treasureloc3 )
  194. {
  195. new string[128];
  196. new tresrand = random(1000000)
  197. Treasure[playerid] += 1;
  198. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  199. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  200. TextDrawAlignment(Treasurefound[playerid], 1);
  201. TextDrawFont(Treasurefound[playerid], 1);
  202. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  203. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  204. // TextDrawUseBox(Treasurefound[playerid], 1);
  205. // TextDrawTextSize(0.5, 0.9);
  206. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  207. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  208. //-------------------------------------------------------------------------------
  209. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  210. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  211. TextDrawAlignment(Treasamount[playerid], 1);
  212. TextDrawFont(Treasamount[playerid], 1);
  213. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  214. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  215. // TextDrawUseBox(Treasamount[playerid], 1);
  216. // TextDrawTextSize(0.5, 0.9);
  217. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  218. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  219. //-------------------------------------------------------------------------------
  220. // SendClientMessage(playerid, COLOR_ORANGE, string);
  221. format(string, sizeof(string), "It was worth $%d!", tresrand);
  222. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  223. TextDrawAlignment(Treasworth[playerid], 1);
  224. TextDrawFont(Treasworth[playerid], 2);
  225. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  226. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  227. // TextDrawUseBox(Treasworth[playerid], 1);
  228. // TextDrawTextSize(0.5, 0.9);
  229. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  230. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  231. // SendClientMessage(playerid, COLOR_ORANGE, string);
  232. SafeGivePlayerMoney(playerid, tresrand);
  233. }
  234. else if(pickupid == treasureloc3 )
  235. {
  236. if(Treasure[playerid] == 14)
  237. {
  238. new string[128];
  239. new name[MAX_PLAYER_NAME];
  240. Treasure[playerid] += 1;
  241. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  242. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  243. TextDrawAlignment(Treasurefound[playerid], 1);
  244. TextDrawFont(Treasurefound[playerid], 0);
  245. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  246. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  247. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  248. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  249. //----------------------------------------------------------------------------
  250. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  251. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  252. TextDrawAlignment(Allfound[playerid], 1);
  253. TextDrawFont(Allfound[playerid], 1);
  254. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  255. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  256. // TextDrawSetOutline(Allfound[playerid], 0.8);
  257. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  258. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  259. GetPlayerName(playerid, name, sizeof(name));
  260. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  261. SendClientMessageToAll(COLOR_YELLOW, string);
  262. }
  263. }
  264. if ( pickupid == treasureloc4 )
  265. {
  266. new string[128];
  267. new tresrand = random(1000000)
  268. Treasure[playerid] += 1;
  269. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  270. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  271. TextDrawAlignment(Treasurefound[playerid], 1);
  272. TextDrawFont(Treasurefound[playerid], 1);
  273. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  274. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  275. // TextDrawUseBox(Treasurefound[playerid], 1);
  276. // TextDrawTextSize(0.5, 0.9);
  277. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  278. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  279. //-------------------------------------------------------------------------------
  280. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  281. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  282. TextDrawAlignment(Treasamount[playerid], 1);
  283. TextDrawFont(Treasamount[playerid], 1);
  284. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  285. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  286. // TextDrawUseBox(Treasamount[playerid], 1);
  287. // TextDrawTextSize(0.5, 0.9);
  288. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  289. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  290. //-------------------------------------------------------------------------------
  291. // SendClientMessage(playerid, COLOR_ORANGE, string);
  292. format(string, sizeof(string), "It was worth $%d!", tresrand);
  293. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  294. TextDrawAlignment(Treasworth[playerid], 1);
  295. TextDrawFont(Treasworth[playerid], 2);
  296. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  297. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  298. // TextDrawUseBox(Treasworth[playerid], 1);
  299. // TextDrawTextSize(0.5, 0.9);
  300. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  301. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  302. // SendClientMessage(playerid, COLOR_ORANGE, string);
  303. SafeGivePlayerMoney(playerid, tresrand);
  304. }
  305. else if(pickupid == treasureloc4 )
  306. {
  307. if(Treasure[playerid] == 14)
  308. {
  309. new string[128];
  310. new name[MAX_PLAYER_NAME];
  311. Treasure[playerid] += 1;
  312. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  313. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  314. TextDrawAlignment(Treasurefound[playerid], 1);
  315. TextDrawFont(Treasurefound[playerid], 0);
  316. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  317. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  318. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  319. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  320. //----------------------------------------------------------------------------
  321. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  322. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  323. TextDrawAlignment(Allfound[playerid], 1);
  324. TextDrawFont(Allfound[playerid], 1);
  325. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  326. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  327. // TextDrawSetOutline(Allfound[playerid], 0.8);
  328. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  329. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  330. GetPlayerName(playerid, name, sizeof(name));
  331. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  332. SendClientMessageToAll(COLOR_YELLOW, string);
  333. }
  334. }
  335. if ( pickupid == treasureloc5 )
  336. {
  337. new string[128];
  338. new tresrand = random(1000000)
  339. Treasure[playerid] += 1;
  340. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  341. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  342. TextDrawAlignment(Treasurefound[playerid], 1);
  343. TextDrawFont(Treasurefound[playerid], 1);
  344. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  345. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  346. // TextDrawUseBox(Treasurefound[playerid], 1);
  347. // TextDrawTextSize(0.5, 0.9);
  348. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  349. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  350. //-------------------------------------------------------------------------------
  351. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  352. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  353. TextDrawAlignment(Treasamount[playerid], 1);
  354. TextDrawFont(Treasamount[playerid], 1);
  355. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  356. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  357. // TextDrawUseBox(Treasamount[playerid], 1);
  358. // TextDrawTextSize(0.5, 0.9);
  359. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  360. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  361. //-------------------------------------------------------------------------------
  362. // SendClientMessage(playerid, COLOR_ORANGE, string);
  363. format(string, sizeof(string), "It was worth $%d!", tresrand);
  364. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  365. TextDrawAlignment(Treasworth[playerid], 1);
  366. TextDrawFont(Treasworth[playerid], 2);
  367. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  368. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  369. // TextDrawUseBox(Treasworth[playerid], 1);
  370. // TextDrawTextSize(0.5, 0.9);
  371. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  372. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  373. // SendClientMessage(playerid, COLOR_ORANGE, string);
  374. SafeGivePlayerMoney(playerid, tresrand);
  375. }
  376. else if(pickupid == treasureloc5 )
  377. {
  378. if(Treasure[playerid] == 14)
  379. {
  380. new string[128];
  381. new name[MAX_PLAYER_NAME];
  382. Treasure[playerid] += 1;
  383. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  384. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  385. TextDrawAlignment(Treasurefound[playerid], 1);
  386. TextDrawFont(Treasurefound[playerid], 0);
  387. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  388. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  389. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  390. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  391. //----------------------------------------------------------------------------
  392. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  393. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  394. TextDrawAlignment(Allfound[playerid], 1);
  395. TextDrawFont(Allfound[playerid], 1);
  396. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  397. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  398. // TextDrawSetOutline(Allfound[playerid], 0.8);
  399. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  400. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  401. GetPlayerName(playerid, name, sizeof(name));
  402. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  403. SendClientMessageToAll(COLOR_YELLOW, string);
  404. }
  405. }
  406. if ( pickupid == treasureloc6 )
  407. {
  408. new string[128];
  409. new tresrand = random(1000000)
  410. Treasure[playerid] += 1;
  411. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  412. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  413. TextDrawAlignment(Treasurefound[playerid], 1);
  414. TextDrawFont(Treasurefound[playerid], 1);
  415. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  416. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  417. // TextDrawUseBox(Treasurefound[playerid], 1);
  418. // TextDrawTextSize(0.5, 0.9);
  419. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  420. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  421. //-------------------------------------------------------------------------------
  422. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  423. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  424. TextDrawAlignment(Treasamount[playerid], 1);
  425. TextDrawFont(Treasamount[playerid], 1);
  426. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  427. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  428. // TextDrawUseBox(Treasamount[playerid], 1);
  429. // TextDrawTextSize(0.5, 0.9);
  430. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  431. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  432. //-------------------------------------------------------------------------------
  433. // SendClientMessage(playerid, COLOR_ORANGE, string);
  434. format(string, sizeof(string), "It was worth $%d!", tresrand);
  435. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  436. TextDrawAlignment(Treasworth[playerid], 1);
  437. TextDrawFont(Treasworth[playerid], 2);
  438. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  439. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  440. // TextDrawUseBox(Treasworth[playerid], 1);
  441. // TextDrawTextSize(0.5, 0.9);
  442. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  443. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  444. // SendClientMessage(playerid, COLOR_ORANGE, string);
  445. SafeGivePlayerMoney(playerid, tresrand);
  446. }
  447. else if(pickupid == treasureloc6 )
  448. {
  449. if(Treasure[playerid] == 14)
  450. {
  451. new string[128];
  452. new name[MAX_PLAYER_NAME];
  453. Treasure[playerid] += 1;
  454. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  455. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  456. TextDrawAlignment(Treasurefound[playerid], 1);
  457. TextDrawFont(Treasurefound[playerid], 0);
  458. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  459. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  460. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  461. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  462. //----------------------------------------------------------------------------
  463. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  464. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  465. TextDrawAlignment(Allfound[playerid], 1);
  466. TextDrawFont(Allfound[playerid], 1);
  467. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  468. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  469. // TextDrawSetOutline(Allfound[playerid], 0.8);
  470. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  471. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  472. GetPlayerName(playerid, name, sizeof(name));
  473. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  474. SendClientMessageToAll(COLOR_YELLOW, string);
  475. }
  476. }
  477. if ( pickupid == treasureloc7 )
  478. {
  479. new string[128];
  480. new tresrand = random(1000000)
  481. Treasure[playerid] += 1;
  482. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  483. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  484. TextDrawAlignment(Treasurefound[playerid], 1);
  485. TextDrawFont(Treasurefound[playerid], 1);
  486. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  487. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  488. // TextDrawUseBox(Treasurefound[playerid], 1);
  489. // TextDrawTextSize(0.5, 0.9);
  490. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  491. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  492. //-------------------------------------------------------------------------------
  493. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  494. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  495. TextDrawAlignment(Treasamount[playerid], 1);
  496. TextDrawFont(Treasamount[playerid], 1);
  497. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  498. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  499. // TextDrawUseBox(Treasamount[playerid], 1);
  500. // TextDrawTextSize(0.5, 0.9);
  501. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  502. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  503. //-------------------------------------------------------------------------------
  504. // SendClientMessage(playerid, COLOR_ORANGE, string);
  505. format(string, sizeof(string), "It was worth $%d!", tresrand);
  506. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  507. TextDrawAlignment(Treasworth[playerid], 1);
  508. TextDrawFont(Treasworth[playerid], 2);
  509. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  510. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  511. // TextDrawUseBox(Treasworth[playerid], 1);
  512. // TextDrawTextSize(0.5, 0.9);
  513. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  514. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  515. // SendClientMessage(playerid, COLOR_ORANGE, string);
  516. SafeGivePlayerMoney(playerid, tresrand);
  517. }
  518. else if(pickupid == treasureloc7 )
  519. {
  520. if(Treasure[playerid] == 14)
  521. {
  522. new string[128];
  523. new name[MAX_PLAYER_NAME];
  524. Treasure[playerid] += 1;
  525. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  526. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  527. TextDrawAlignment(Treasurefound[playerid], 1);
  528. TextDrawFont(Treasurefound[playerid], 0);
  529. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  530. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  531. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  532. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  533. //----------------------------------------------------------------------------
  534. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  535. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  536. TextDrawAlignment(Allfound[playerid], 1);
  537. TextDrawFont(Allfound[playerid], 1);
  538. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  539. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  540. // TextDrawSetOutline(Allfound[playerid], 0.8);
  541. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  542. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  543. GetPlayerName(playerid, name, sizeof(name));
  544. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  545. SendClientMessageToAll(COLOR_YELLOW, string);
  546. }
  547. }
  548. if ( pickupid == treasureloc8 )
  549. {
  550. new string[128];
  551. new tresrand = random(1000000)
  552. Treasure[playerid] += 1;
  553. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  554. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  555. TextDrawAlignment(Treasurefound[playerid], 1);
  556. TextDrawFont(Treasurefound[playerid], 1);
  557. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  558. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  559. // TextDrawUseBox(Treasurefound[playerid], 1);
  560. // TextDrawTextSize(0.5, 0.9);
  561. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  562. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  563. //-------------------------------------------------------------------------------
  564. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  565. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  566. TextDrawAlignment(Treasamount[playerid], 1);
  567. TextDrawFont(Treasamount[playerid], 1);
  568. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  569. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  570. // TextDrawUseBox(Treasamount[playerid], 1);
  571. // TextDrawTextSize(0.5, 0.9);
  572. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  573. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  574. //-------------------------------------------------------------------------------
  575. // SendClientMessage(playerid, COLOR_ORANGE, string);
  576. format(string, sizeof(string), "It was worth $%d!", tresrand);
  577. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  578. TextDrawAlignment(Treasworth[playerid], 1);
  579. TextDrawFont(Treasworth[playerid], 2);
  580. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  581. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  582. // TextDrawUseBox(Treasworth[playerid], 1);
  583. // TextDrawTextSize(0.5, 0.9);
  584. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  585. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  586. // SendClientMessage(playerid, COLOR_ORANGE, string);
  587. SafeGivePlayerMoney(playerid, tresrand);
  588. }
  589. else if(pickupid == treasureloc8 )
  590. {
  591. if(Treasure[playerid] == 14)
  592. {
  593. new string[128];
  594. new name[MAX_PLAYER_NAME];
  595. Treasure[playerid] += 1;
  596. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  597. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  598. TextDrawAlignment(Treasurefound[playerid], 1);
  599. TextDrawFont(Treasurefound[playerid], 0);
  600. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  601. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  602. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  603. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  604. //----------------------------------------------------------------------------
  605. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  606. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  607. TextDrawAlignment(Allfound[playerid], 1);
  608. TextDrawFont(Allfound[playerid], 1);
  609. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  610. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  611. // TextDrawSetOutline(Allfound[playerid], 0.8);
  612. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  613. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  614. GetPlayerName(playerid, name, sizeof(name));
  615. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  616. SendClientMessageToAll(COLOR_YELLOW, string);
  617. }
  618. }
  619. if ( pickupid == treasureloc9 )
  620. {
  621. new string[128];
  622. new tresrand = random(1000000)
  623. Treasure[playerid] += 1;
  624. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  625. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  626. TextDrawAlignment(Treasurefound[playerid], 1);
  627. TextDrawFont(Treasurefound[playerid], 1);
  628. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  629. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  630. // TextDrawUseBox(Treasurefound[playerid], 1);
  631. // TextDrawTextSize(0.5, 0.9);
  632. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  633. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  634. //-------------------------------------------------------------------------------
  635. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  636. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  637. TextDrawAlignment(Treasamount[playerid], 1);
  638. TextDrawFont(Treasamount[playerid], 1);
  639. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  640. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  641. // TextDrawUseBox(Treasamount[playerid], 1);
  642. // TextDrawTextSize(0.5, 0.9);
  643. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  644. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  645. //-------------------------------------------------------------------------------
  646. // SendClientMessage(playerid, COLOR_ORANGE, string);
  647. format(string, sizeof(string), "It was worth $%d!", tresrand);
  648. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  649. TextDrawAlignment(Treasworth[playerid], 1);
  650. TextDrawFont(Treasworth[playerid], 2);
  651. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  652. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  653. // TextDrawUseBox(Treasworth[playerid], 1);
  654. // TextDrawTextSize(0.5, 0.9);
  655. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  656. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  657. // SendClientMessage(playerid, COLOR_ORANGE, string);
  658. SafeGivePlayerMoney(playerid, tresrand);
  659. }
  660. else if(pickupid == treasureloc9 )
  661. {
  662. if(Treasure[playerid] == 14)
  663. {
  664. new string[128];
  665. new name[MAX_PLAYER_NAME];
  666. Treasure[playerid] += 1;
  667. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  668. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  669. TextDrawAlignment(Treasurefound[playerid], 1);
  670. TextDrawFont(Treasurefound[playerid], 0);
  671. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  672. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  673. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  674. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  675. //----------------------------------------------------------------------------
  676. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  677. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  678. TextDrawAlignment(Allfound[playerid], 1);
  679. TextDrawFont(Allfound[playerid], 1);
  680. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  681. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  682. // TextDrawSetOutline(Allfound[playerid], 0.8);
  683. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  684. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  685. GetPlayerName(playerid, name, sizeof(name));
  686. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  687. SendClientMessageToAll(COLOR_YELLOW, string);
  688. }
  689. }
  690. if ( pickupid == treasureloc10 )
  691. {
  692. new string[128];
  693. new tresrand = random(1000000)
  694. Treasure[playerid] += 1;
  695. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  696. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  697. TextDrawAlignment(Treasurefound[playerid], 1);
  698. TextDrawFont(Treasurefound[playerid], 1);
  699. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  700. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  701. // TextDrawUseBox(Treasurefound[playerid], 1);
  702. // TextDrawTextSize(0.5, 0.9);
  703. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  704. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  705. //-------------------------------------------------------------------------------
  706. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  707. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  708. TextDrawAlignment(Treasamount[playerid], 1);
  709. TextDrawFont(Treasamount[playerid], 1);
  710. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  711. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  712. // TextDrawUseBox(Treasamount[playerid], 1);
  713. // TextDrawTextSize(0.5, 0.9);
  714. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  715. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  716. //-------------------------------------------------------------------------------
  717. // SendClientMessage(playerid, COLOR_ORANGE, string);
  718. format(string, sizeof(string), "It was worth $%d!", tresrand);
  719. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  720. TextDrawAlignment(Treasworth[playerid], 1);
  721. TextDrawFont(Treasworth[playerid], 2);
  722. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  723. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  724. // TextDrawUseBox(Treasworth[playerid], 1);
  725. // TextDrawTextSize(0.5, 0.9);
  726. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  727. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  728. // SendClientMessage(playerid, COLOR_ORANGE, string);
  729. SafeGivePlayerMoney(playerid, tresrand);
  730. }
  731. else if(pickupid == treasureloc10 )
  732. {
  733. if(Treasure[playerid] == 14)
  734. {
  735. new string[128];
  736. new name[MAX_PLAYER_NAME];
  737. Treasure[playerid] += 1;
  738. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  739. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  740. TextDrawAlignment(Treasurefound[playerid], 1);
  741. TextDrawFont(Treasurefound[playerid], 0);
  742. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  743. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  744. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  745. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  746. //----------------------------------------------------------------------------
  747. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  748. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  749. TextDrawAlignment(Allfound[playerid], 1);
  750. TextDrawFont(Allfound[playerid], 1);
  751. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  752. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  753. // TextDrawSetOutline(Allfound[playerid], 0.8);
  754. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  755. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  756. GetPlayerName(playerid, name, sizeof(name));
  757. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  758. SendClientMessageToAll(COLOR_YELLOW, string);
  759. }
  760. }
  761. if ( pickupid == treasureloc11 )
  762. {
  763. new string[128];
  764. new tresrand = random(1000000)
  765. Treasure[playerid] += 1;
  766. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  767. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  768. TextDrawAlignment(Treasurefound[playerid], 1);
  769. TextDrawFont(Treasurefound[playerid], 1);
  770. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  771. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  772. // TextDrawUseBox(Treasurefound[playerid], 1);
  773. // TextDrawTextSize(0.5, 0.9);
  774. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  775. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  776. //-------------------------------------------------------------------------------
  777. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  778. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  779. TextDrawAlignment(Treasamount[playerid], 1);
  780. TextDrawFont(Treasamount[playerid], 1);
  781. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  782. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  783. // TextDrawUseBox(Treasamount[playerid], 1);
  784. // TextDrawTextSize(0.5, 0.9);
  785. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  786. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  787. //-------------------------------------------------------------------------------
  788. // SendClientMessage(playerid, COLOR_ORANGE, string);
  789. format(string, sizeof(string), "It was worth $%d!", tresrand);
  790. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  791. TextDrawAlignment(Treasworth[playerid], 1);
  792. TextDrawFont(Treasworth[playerid], 2);
  793. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  794. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  795. // TextDrawUseBox(Treasworth[playerid], 1);
  796. // TextDrawTextSize(0.5, 0.9);
  797. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  798. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  799. // SendClientMessage(playerid, COLOR_ORANGE, string);
  800. SafeGivePlayerMoney(playerid, tresrand);
  801. }
  802. else if(pickupid == treasureloc11 )
  803. {
  804. if(Treasure[playerid] == 14)
  805. {
  806. new string[128];
  807. new name[MAX_PLAYER_NAME];
  808. Treasure[playerid] += 1;
  809. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  810. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  811. TextDrawAlignment(Treasurefound[playerid], 1);
  812. TextDrawFont(Treasurefound[playerid], 0);
  813. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  814. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  815. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  816. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  817. //----------------------------------------------------------------------------
  818. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  819. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  820. TextDrawAlignment(Allfound[playerid], 1);
  821. TextDrawFont(Allfound[playerid], 1);
  822. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  823. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  824. // TextDrawSetOutline(Allfound[playerid], 0.8);
  825. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  826. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  827. GetPlayerName(playerid, name, sizeof(name));
  828. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  829. SendClientMessageToAll(COLOR_YELLOW, string);
  830. }
  831. }
  832. if ( pickupid == treasureloc12 )
  833. {
  834. new string[128];
  835. new tresrand = random(1000000)
  836. Treasure[playerid] += 1;
  837. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  838. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  839. TextDrawAlignment(Treasurefound[playerid], 1);
  840. TextDrawFont(Treasurefound[playerid], 1);
  841. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  842. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  843. // TextDrawUseBox(Treasurefound[playerid], 1);
  844. // TextDrawTextSize(0.5, 0.9);
  845. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  846. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  847. //-------------------------------------------------------------------------------
  848. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  849. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  850. TextDrawAlignment(Treasamount[playerid], 1);
  851. TextDrawFont(Treasamount[playerid], 1);
  852. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  853. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  854. // TextDrawUseBox(Treasamount[playerid], 1);
  855. // TextDrawTextSize(0.5, 0.9);
  856. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  857. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  858. //-------------------------------------------------------------------------------
  859. // SendClientMessage(playerid, COLOR_ORANGE, string);
  860. format(string, sizeof(string), "It was worth $%d!", tresrand);
  861. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  862. TextDrawAlignment(Treasworth[playerid], 1);
  863. TextDrawFont(Treasworth[playerid], 2);
  864. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  865. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  866. // TextDrawUseBox(Treasworth[playerid], 1);
  867. // TextDrawTextSize(0.5, 0.9);
  868. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  869. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  870. // SendClientMessage(playerid, COLOR_ORANGE, string);
  871. SafeGivePlayerMoney(playerid, tresrand);
  872. }
  873. else if(pickupid == treasureloc12 )
  874. {
  875. if(Treasure[playerid] == 14)
  876. {
  877. new string[128];
  878. new name[MAX_PLAYER_NAME];
  879. Treasure[playerid] += 1;
  880. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  881. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  882. TextDrawAlignment(Treasurefound[playerid], 1);
  883. TextDrawFont(Treasurefound[playerid], 0);
  884. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  885. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  886. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  887. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  888. //----------------------------------------------------------------------------
  889. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  890. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  891. TextDrawAlignment(Allfound[playerid], 1);
  892. TextDrawFont(Allfound[playerid], 1);
  893. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  894. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  895. // TextDrawSetOutline(Allfound[playerid], 0.8);
  896. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  897. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  898. GetPlayerName(playerid, name, sizeof(name));
  899. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  900. SendClientMessageToAll(COLOR_YELLOW, string);
  901. }
  902. }
  903. if ( pickupid == treasureloc13 )
  904. {
  905. new string[128];
  906. new tresrand = random(1000000)
  907. Treasure[playerid] += 1;
  908. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  909. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  910. TextDrawAlignment(Treasurefound[playerid], 1);
  911. TextDrawFont(Treasurefound[playerid], 1);
  912. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  913. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  914. // TextDrawUseBox(Treasurefound[playerid], 1);
  915. // TextDrawTextSize(0.5, 0.9);
  916. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  917. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  918. //-------------------------------------------------------------------------------
  919. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  920. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  921. TextDrawAlignment(Treasamount[playerid], 1);
  922. TextDrawFont(Treasamount[playerid], 1);
  923. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  924. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  925. // TextDrawUseBox(Treasamount[playerid], 1);
  926. // TextDrawTextSize(0.5, 0.9);
  927. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  928. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  929. //-------------------------------------------------------------------------------
  930. // SendClientMessage(playerid, COLOR_ORANGE, string);
  931. format(string, sizeof(string), "It was worth $%d!", tresrand);
  932. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  933. TextDrawAlignment(Treasworth[playerid], 1);
  934. TextDrawFont(Treasworth[playerid], 2);
  935. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  936. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  937. // TextDrawUseBox(Treasworth[playerid], 1);
  938. // TextDrawTextSize(0.5, 0.9);
  939. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  940. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  941. // SendClientMessage(playerid, COLOR_ORANGE, string);
  942. SafeGivePlayerMoney(playerid, tresrand);
  943. }
  944. else if(pickupid == treasureloc13 )
  945. {
  946. if(Treasure[playerid] == 14)
  947. {
  948. new string[128];
  949. new name[MAX_PLAYER_NAME];
  950. Treasure[playerid] += 1;
  951. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  952. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  953. TextDrawAlignment(Treasurefound[playerid], 1);
  954. TextDrawFont(Treasurefound[playerid], 0);
  955. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  956. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  957. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  958. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  959. //----------------------------------------------------------------------------
  960. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  961. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  962. TextDrawAlignment(Allfound[playerid], 1);
  963. TextDrawFont(Allfound[playerid], 1);
  964. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  965. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  966. // TextDrawSetOutline(Allfound[playerid], 0.8);
  967. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  968. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  969. GetPlayerName(playerid, name, sizeof(name));
  970. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  971. SendClientMessageToAll(COLOR_YELLOW, string);
  972. }
  973. }
  974. if ( pickupid == treasureloc14 )
  975. {
  976. new string[128];
  977. new tresrand = random(1000000)
  978. Treasure[playerid] += 1;
  979. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  980. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  981. TextDrawAlignment(Treasurefound[playerid], 1);
  982. TextDrawFont(Treasurefound[playerid], 1);
  983. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  984. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  985. // TextDrawUseBox(Treasurefound[playerid], 1);
  986. // TextDrawTextSize(0.5, 0.9);
  987. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  988. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  989. //-------------------------------------------------------------------------------
  990. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  991. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  992. TextDrawAlignment(Treasamount[playerid], 1);
  993. TextDrawFont(Treasamount[playerid], 1);
  994. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  995. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  996. // TextDrawUseBox(Treasamount[playerid], 1);
  997. // TextDrawTextSize(0.5, 0.9);
  998. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  999. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1000. //-------------------------------------------------------------------------------
  1001. // SendClientMessage(playerid, COLOR_ORANGE, string);
  1002. format(string, sizeof(string), "It was worth $%d!", tresrand);
  1003. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  1004. TextDrawAlignment(Treasworth[playerid], 1);
  1005. TextDrawFont(Treasworth[playerid], 2);
  1006. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  1007. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  1008. // TextDrawUseBox(Treasworth[playerid], 1);
  1009. // TextDrawTextSize(0.5, 0.9);
  1010. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  1011. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1012. // SendClientMessage(playerid, COLOR_ORANGE, string);
  1013. SafeGivePlayerMoney(playerid, tresrand);
  1014. }
  1015. else if(pickupid == treasureloc14 )
  1016. {
  1017. if(Treasure[playerid] == 14)
  1018. {
  1019. new string[128];
  1020. new name[MAX_PLAYER_NAME];
  1021. Treasure[playerid] += 1;
  1022. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  1023. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  1024. TextDrawAlignment(Treasurefound[playerid], 1);
  1025. TextDrawFont(Treasurefound[playerid], 0);
  1026. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  1027. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  1028. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  1029. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1030. //----------------------------------------------------------------------------
  1031. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  1032. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  1033. TextDrawAlignment(Allfound[playerid], 1);
  1034. TextDrawFont(Allfound[playerid], 1);
  1035. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  1036. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  1037. // TextDrawSetOutline(Allfound[playerid], 0.8);
  1038. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  1039. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1040. GetPlayerName(playerid, name, sizeof(name));
  1041. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  1042. SendClientMessageToAll(COLOR_YELLOW, string);
  1043. }
  1044. }
  1045. if ( pickupid == treasureloc15 )
  1046. {
  1047. new string[128];
  1048. new tresrand = random(1000000)
  1049. Treasure[playerid] += 1;
  1050. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  1051. Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
  1052. TextDrawAlignment(Treasurefound[playerid], 1);
  1053. TextDrawFont(Treasurefound[playerid], 1);
  1054. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  1055. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  1056. // TextDrawUseBox(Treasurefound[playerid], 1);
  1057. // TextDrawTextSize(0.5, 0.9);
  1058. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  1059. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1060. //-------------------------------------------------------------------------------
  1061. format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
  1062. Treasamount[playerid] = TextDrawCreate(10, 313, string);
  1063. TextDrawAlignment(Treasamount[playerid], 1);
  1064. TextDrawFont(Treasamount[playerid], 1);
  1065. TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
  1066. TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
  1067. // TextDrawUseBox(Treasamount[playerid], 1);
  1068. // TextDrawTextSize(0.5, 0.9);
  1069. TextDrawShowForPlayer(playerid, Treasamount[playerid]);
  1070. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1071. //-------------------------------------------------------------------------------
  1072. // SendClientMessage(playerid, COLOR_ORANGE, string);
  1073. format(string, sizeof(string), "It was worth $%d!", tresrand);
  1074. Treasworth[playerid] = TextDrawCreate(10, 333,string);
  1075. TextDrawAlignment(Treasworth[playerid], 1);
  1076. TextDrawFont(Treasworth[playerid], 2);
  1077. TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
  1078. TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
  1079. // TextDrawUseBox(Treasworth[playerid], 1);
  1080. // TextDrawTextSize(0.5, 0.9);
  1081. TextDrawShowForPlayer(playerid, Treasworth[playerid]);
  1082. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1083. // SendClientMessage(playerid, COLOR_ORANGE, string);
  1084. SafeGivePlayerMoney(playerid, tresrand);
  1085. }
  1086. else if(pickupid == treasureloc15 )
  1087. {
  1088. if(Treasure[playerid] == 14)
  1089. {
  1090. new string[128];
  1091. new name[MAX_PLAYER_NAME];
  1092. Treasure[playerid] += 1;
  1093. // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
  1094. Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
  1095. TextDrawAlignment(Treasurefound[playerid], 1);
  1096. TextDrawFont(Treasurefound[playerid], 0);
  1097. TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
  1098. TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
  1099. TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
  1100. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1101. //----------------------------------------------------------------------------
  1102. // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
  1103. Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
  1104. TextDrawAlignment(Allfound[playerid], 1);
  1105. TextDrawFont(Allfound[playerid], 1);
  1106. TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
  1107. TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
  1108. // TextDrawSetOutline(Allfound[playerid], 0.8);
  1109. TextDrawShowForPlayer(playerid, Allfound[playerid]);
  1110. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1111. GetPlayerName(playerid, name, sizeof(name));
  1112. format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
  1113. SendClientMessageToAll(COLOR_YELLOW, string);
  1114. }
  1115. }
  1116. return 1;
  1117. }
  1118.  
  1119. public OnGameModeInit()
  1120. {
  1121. treasureloc1 = CreatePickup(1254,3,-175.3235,-444.6373,-62.3224);
  1122. treasureloc2 = CreatePickup(1254,3,29.7718,-930.7208,-40.8714);
  1123. treasureloc3 = CreatePickup(1254,3,86.8353,-1663.2836,-41.4935);
  1124. treasureloc4 = CreatePickup(1254,3,386.3968,-2536.6155,-28.2578);
  1125. treasureloc5 = CreatePickup(1254,3,2885.9875,-2946.1873,-47.9614);
  1126. treasureloc6 = CreatePickup(1254,3,3132.4731,-1652.1267,-45.8538);
  1127. treasureloc7 = CreatePickup(1254,3,3376.4297,-592.3472,-20.6840);
  1128. treasureloc8 = CreatePickup(1254,3,3380.4009,792.4185,-22.3187);
  1129. treasureloc9 = CreatePickup(1254,3,3254.5879,1941.7544,-25.7028);
  1130. treasureloc10 = CreatePickup(1254,3,3392.6228,2697.8704,-24.3014);
  1131. treasureloc11 = CreatePickup(1254,3,3270.3892,3703.8787,-23.4582);
  1132. treasureloc12 = CreatePickup(1254,3,1611.8928,3367.0486,-35.1337);
  1133. treasureloc13 = CreatePickup(1254,3,215.4141,2972.5100,-35.4648);
  1134. treasureloc14 = CreatePickup(1254,3,-2898.5112,2918.8918,-55.4975);
  1135. treasureloc15 = CreatePickup(1254,3,-2855.9949,-2230.8936,-30.1414);
  1136. return 1;
  1137. }
  1138.  
  1139. //this is the bit i need to slim down
  1140.  
  1141. dcmd_seafish(playerid, params[])
  1142. {
  1143. #pragma unused params
  1144. // {
  1145. if(IsPlayerConnected(playerid))
  1146. {
  1147. if(PlayerInfo[playerid][pFishTool] != 1)
  1148. {
  1149. SendClientMessage(playerid, COLOR_GREY, " You don't have a fishing toolbox with you !");
  1150. return 1;
  1151. }
  1152. /* if(PlayerInfo[playerid][pFishSkill] > 4)
  1153. {
  1154. SendClientMessage(playerid, COLOR_GREY, " These fish are big!!!!!! fish some more stay on dry land till your sure !");
  1155. return 1;
  1156. }*/
  1157. if(Sfishes[playerid][psWeight1] > 0 && Sfishes[playerid][psWeight2] > 0 && Sfishes[playerid][psWeight3] > 0 && Sfishes[playerid][psWeight4] > 0 && Sfishes[playerid][psWeight5] > 0)
  1158. {
  1159. SendClientMessage(playerid, COLOR_GREY, " You are already full of Fish, sell / eat / release them first !");
  1160. return 1;
  1161. }
  1162. new Veh = GetPlayerVehicleID(playerid);
  1163. if(IsABoat(Veh))
  1164. {
  1165. new Scaught;
  1166. new srand;
  1167. // new sfstring[MAX_PLAYER_NAME];
  1168. new sfstring[256];
  1169. new Float:health;
  1170. new Level = PlayerInfo[playerid][psFishSkill];
  1171. if(Level >= 0 && Level <= 50) { Scaught = random(57)-7; }
  1172. else if(Level >= 51 && Level <= 100) { Scaught = random(120)-20; }
  1173. else if(Level >= 101 && Level <= 200) { Scaught = random(250)-50; }
  1174. else if(Level >= 201 && Level <= 400) { Scaught = random(460)-60; }
  1175. else if(Level >= 401) {Scaught = random(670)-70; }
  1176. srand = random(SfishNamesNumber);
  1177. if(Scaught <= 0)
  1178. {
  1179. // SendClientMessage(playerid, COLOR_GREY, " you were pulled overboard !");
  1180. format(sfstring, sizeof(sfstring), "~w~you were pulled overboard !");
  1181. GameTextForPlayer(playerid, sfstring, 2500, 3);
  1182. new Float:cx, Float:cy, Float:cz;
  1183. GetPlayerPos(playerid, cx, cy, cz);
  1184. SetPlayerPos(playerid, cx+5, cy+5, cz+5);
  1185. return 1;
  1186. }
  1187. else if(srand == 0)
  1188. {
  1189. new whalerand;
  1190. whalerand = random(10);
  1191. if(whalerand <= 0)
  1192. {
  1193. // SendClientMessage(playerid, COLOR_GREY, "Baby whale");
  1194. GameTextForPlayer(playerid, "~n~~w~Baby Whale~n~", 2500, 3);
  1195. return 1;
  1196. }
  1197. else if(whalerand == 1)
  1198. {
  1199. GameTextForPlayer(playerid, "~n~~w~you caught a sperm whale~n~", 2500, 3);
  1200. // SetVehicleToRespawn(Veh);
  1201. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1202. return 1;
  1203. }
  1204. else if(whalerand == 2)
  1205. {
  1206. GameTextForPlayer(playerid, "~w~you caught your line on an old pirate galleon~n~it snaps your line", 2500, 3);
  1207. // SetVehicleToRespawn(Veh);
  1208. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1209. return 1;
  1210. }
  1211. else if(whalerand == 3)
  1212. {
  1213. GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 20lb bomb ~n~it explodes as you try to put it back", 2500, 3);
  1214. GetPlayerHealth(playerid, health);
  1215. SetPlayerHealth(playerid, health-40.0);
  1216. new Float:boomx, Float:boomy, Float:boomz;
  1217. GetPlayerPos(playerid,boomx, boomy, boomz);
  1218. CreateExplosion(boomx, boomy , boomz, 7, 10);
  1219. // SetVehicleToRespawn(Veh);
  1220. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1221. return 1;
  1222. }
  1223. else if(whalerand == 4)
  1224. {
  1225. GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 40lb bomb ~n~it explodes as you try to put it back", 2500, 3);
  1226. GetPlayerHealth(playerid, health);
  1227. SetPlayerHealth(playerid, health-20.0);
  1228. new Float:boomx, Float:boomy, Float:boomz;
  1229. GetPlayerPos(playerid,boomx, boomy, boomz);
  1230. CreateExplosion(boomx, boomy , boomz, 7, 20);
  1231. // SetVehicleToRespawn(Veh);
  1232. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1233. return 1;
  1234. }
  1235. else if(whalerand == 5)
  1236. {
  1237. GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 100lb bomb ~n~it explodes as you try to put it back", 2500, 3);
  1238. GetPlayerHealth(playerid, health);
  1239. SetPlayerHealth(playerid, health-10.0);
  1240. new Float:boomx, Float:boomy, Float:boomz;
  1241. GetPlayerPos(playerid,boomx, boomy, boomz);
  1242. CreateExplosion(boomx, boomy , boomz, 7, 40);
  1243. // SetVehicleToRespawn(Veh);
  1244. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1245. return 1;
  1246. }
  1247. else if(whalerand == 6)
  1248. {
  1249. GameTextForPlayer(playerid, "~w~you have caught a~n~ ~b~blue ~w~whale it sinks your boat", 2500, 3);
  1250. SetVehicleToRespawn(Veh);
  1251. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1252. return 1;
  1253. }
  1254. else if(whalerand == 7)
  1255. {
  1256. GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 20lb bomb ~n~you manage to get rid of it", 2500, 3);
  1257. // SetVehicleToRespawn(Veh);
  1258. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1259. return 1;
  1260. }
  1261. else if(whalerand == 8)
  1262. {
  1263. GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 40lb bomb ~n~you manage to get rid of it", 2500, 3);
  1264. // SetVehicleToRespawn(Veh);
  1265. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1266. return 1;
  1267. }
  1268. else if(whalerand == 9)
  1269. {
  1270. GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 100lb bomb ~n~you manage to get rid of it", 2500, 3);
  1271. // SetVehicleToRespawn(Veh);
  1272. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1273. return 1;
  1274. }
  1275. }
  1276. else if(srand == 15)
  1277. {
  1278. new Mstring[256];
  1279. new Merrand;
  1280. Merrand = random(5);
  1281. if(Merrand <= 0)
  1282. {
  1283. format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Mermaid ~w~she likes you and sleeps with you");
  1284. GameTextForPlayer(playerid, Mstring, 2500, 3);
  1285. GetPlayerHealth(playerid, health);
  1286. SetPlayerHealth(playerid, health = 100.0);
  1287. return 1;
  1288. }
  1289. else if(Merrand == 1)
  1290. {
  1291. format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Mermaid ~w~she kisses you, then jumps back in");
  1292. GameTextForPlayer(playerid, Mstring, 2500, 3);
  1293. GetPlayerHealth(playerid, health);
  1294. SetPlayerHealth(playerid, health+80.0);
  1295. return 1;
  1296. }
  1297. else if(Merrand == 2)
  1298. {
  1299. format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Mermaid ~w~she slaps you, then jumps back in");
  1300. GameTextForPlayer(playerid, Mstring, 2500, 3);
  1301. GetPlayerHealth(playerid, health);
  1302. SetPlayerHealth(playerid, health-90.0);
  1303. return 1;
  1304. }
  1305. else if(Merrand == 3)
  1306. {
  1307. format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Merman ~w~he punches you, then jumps back in");
  1308. GameTextForPlayer(playerid, Mstring, 2500, 3);
  1309. GetPlayerHealth(playerid, health);
  1310. SetPlayerHealth(playerid, health-50.0);
  1311. return 1;
  1312. }
  1313. else if(Merrand == 4)
  1314. {
  1315. format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Merman ~w~he sodomised you, then jumped back in");
  1316. GameTextForPlayer(playerid, Mstring, 2500, 3);
  1317. GetPlayerHealth(playerid, health);
  1318. SetPlayerHealth(playerid, health-20.0);
  1319. return 1;
  1320. }
  1321. }
  1322. else if(srand == 16)
  1323. {
  1324. new sastring[256];
  1325. // new Float:health;
  1326. new sharkrand;
  1327. sharkrand = random(3);
  1328. if(sharkrand <= 0)
  1329. {
  1330. format(sastring, sizeof(sastring), "~w~you caught a~r~ baby ~w~Shark");
  1331. GameTextForPlayer(playerid, sastring, 2500, 3);
  1332. return 1;
  1333. }
  1334. else if(sharkrand == 1)
  1335. {
  1336. new sharkwieght = random(10)+1;
  1337. format(sastring, sizeof(sastring), "~w~you caught a~r~ %d ~g~Ton ~w~Shark~n~it sinks your boat~n~ then munchies you",sharkwieght);
  1338. GameTextForPlayer(playerid, sastring, 2500, 3);
  1339. SetVehicleToRespawn(Veh);
  1340. GetPlayerHealth(playerid, health);
  1341. SetPlayerHealth(playerid, health = 0.0);
  1342. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  1343. return 1;
  1344. }
  1345. else if(sharkrand == 2)
  1346. {
  1347. format(sastring, sizeof(sastring), "~w~you were ~r~bitten by a ~w~Shark");
  1348. GameTextForPlayer(playerid, sastring, 2500, 3);
  1349. GetPlayerHealth(playerid, health);
  1350. SetPlayerHealth(playerid, health-10.0);
  1351. return 1;
  1352. }
  1353. }
  1354. else if(srand == 17)
  1355. {
  1356. // Turtlesell(playerid);
  1357. new turstring[256];
  1358. new turrand = random(200);
  1359. if(turrand < 197) { turrand += 3; }
  1360. format(turstring, sizeof(turstring), "~w~you caught a~r~ %d ~g~year old ~w~Turtle",turrand);
  1361. GameTextForPlayer(playerid, turstring, 2500, 3);
  1362. return 1;
  1363. }
  1364. else if(srand == 18)
  1365. {
  1366. // SendClientMessage(playerid, COLOR_GREY, " you were pulled overboard !");
  1367. format(sfstring, sizeof(sfstring), "~w~you were pulled overboard !");
  1368. GameTextForPlayer(playerid, sfstring, 2500, 3);
  1369. new Float:cx, Float:cy, Float:cz;
  1370. GetPlayerPos(playerid, cx, cy, cz);
  1371. SetPlayerPos(playerid, cx-5, cy-5, cz+5);
  1372. return 1;
  1373. }
  1374. else if(srand == 19)
  1375. {
  1376. new Tstring[256];
  1377. new Trand;
  1378. Trand = random(16);
  1379. if(Trand <= 0)
  1380. {
  1381. format(Tstring, sizeof(Tstring), "~w~you found a treasure map~n~It wipe's all known ~r~redpoints ~n~~w~on your map then disintergrats"); // 0 bad map
  1382. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1383. DisablePlayerCheckpoint(playerid);
  1384. return 1;
  1385. }
  1386. else if(Trand == 1)
  1387. {
  1388. SetPlayerCheckpoint(playerid,-173.5963,-715.9354,-0.3711,8.0);
  1389. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 1
  1390. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1391. // treasureloc1 = CreatePickup(1274,3,-175.3235,-444.6373,-62.3224);
  1392. return 1;
  1393. }
  1394. else if(Trand == 2)
  1395. {
  1396. SetPlayerCheckpoint(playerid,63.7251,-918.4832,-0.3505,8.0);
  1397. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 2
  1398. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1399. // treasureloc2 = CreatePickup(1274,3,29.7718,-930.7208,-40.8714);
  1400. return 1;
  1401. }
  1402. else if(Trand == 3)
  1403. {
  1404. SetPlayerCheckpoint(playerid,-38.3311,-1761.4075,-0.2246,8.0);
  1405. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 3
  1406. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1407. // treasureloc3 = CreatePickup(1274,3,86.8353,-1663.2836,-41.4935);
  1408. return 1;
  1409. }
  1410. else if(Trand == 4)
  1411. {
  1412. SetPlayerCheckpoint(playerid,279.2176,-2565.9172,-0.2846,8.0);
  1413. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 4
  1414. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1415. // treasureloc4 = CreatePickup(1274,3,386.3968,-2536.6155,-28.2578);
  1416. return 1;
  1417. }
  1418. else if(Trand == 5)
  1419. {
  1420. SetPlayerCheckpoint(playerid,2848.1995,-2862.9500,-0.9575,8.0);
  1421. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 5
  1422. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1423. // treasureloc5 = CreatePickup(1274,3,2885.9875,-2946.1873,-47.9614);
  1424. return 1;
  1425. }
  1426. else if(Trand == 6)
  1427. {
  1428. SetPlayerCheckpoint(playerid,3167.2937,-1658.1539,-0.5749,8.0);
  1429. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 6
  1430. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1431. // treasureloc6 = CreatePickup(1274,3,3132.4731,-1652.1267,-45.8538);
  1432. return 1;
  1433. }
  1434. else if(Trand == 7)
  1435. {
  1436. SetPlayerCheckpoint(playerid,3343.0813,-612.3992,-0.4333,8.0);
  1437. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 7
  1438. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1439. // treasureloc7 = CreatePickup(1274,3,3376.4297,-592.3472,-20.6840);
  1440. return 1;
  1441. }
  1442. else if(Trand == 8)
  1443. {
  1444. SetPlayerCheckpoint(playerid,3381.9033,755.0977,-0.9800,8.0);
  1445. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 8
  1446. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1447. // treasureloc8 = CreatePickup(1274,3,3380.4009,792.4185,-22.3187);
  1448. return 1;
  1449. }
  1450. else if(Trand == 9)
  1451. {
  1452. SetPlayerCheckpoint(playerid,3253.8511,1901.3837,-0.8732,8.0);
  1453. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 9
  1454. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1455. // treasureloc9 = CreatePickup(1274,3,3254.5879,1941.7544,-25.7028);
  1456. return 1;
  1457. }
  1458. else if(Trand == 10)
  1459. {
  1460. SetPlayerCheckpoint(playerid,3355.6335,2697.8704,-0.0216,8.0);
  1461. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 10
  1462. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1463. // treasureloc10 = CreatePickup(1274,3,3392.6228,2697.8704,-24.3014);
  1464. return 1;
  1465. }
  1466. else if(Trand == 11)
  1467. {
  1468. SetPlayerCheckpoint(playerid,3241.3882,3685.5278,-0.5840,8.0);
  1469. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 11
  1470. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1471. // treasureloc11 = CreatePickup(1274,3,3270.3892,3703.8787,-23.4582);
  1472. return 1;
  1473. }
  1474. else if(Trand == 12)
  1475. {
  1476. SetPlayerCheckpoint(playerid,1604.2301,3339.4077,-0.0656,8.0);
  1477. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 12
  1478. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1479. // treasureloc12 = CreatePickup(1274,3,1611.8928,3367.0486,-35.1337);
  1480. return 1;
  1481. }
  1482. else if(Trand == 13)
  1483. {
  1484. SetPlayerCheckpoint(playerid,257.0080,3010.8342,0.3429,8.0);
  1485. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 13
  1486. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1487. // treasureloc13 = CreatePickup(1274,3,215.4141,2972.5100,-35.4648);
  1488. return 1;
  1489. }
  1490. else if(Trand == 14)
  1491. {
  1492. SetPlayerCheckpoint(playerid,-2956.6157,2948.8132,0.1085,8.0);
  1493. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 14
  1494. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1495. // treasureloc14 = CreatePickup(1274,3,-2898.5112,2918.8918,-55.4975);
  1496. return 1;
  1497. }
  1498. else if(Trand == 15)
  1499. {
  1500. SetPlayerCheckpoint(playerid,-2866.0977,-2210.2219,0.1248,8.0);
  1501. format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 15
  1502. GameTextForPlayer(playerid, Tstring, 2500, 3);
  1503. // treasureloc15 = CreatePickup(1274,3,-2855.9949,-2230.8936,-30.1414);
  1504. return 1;
  1505. }
  1506. }
  1507. if(PlayerInfo[playerid][pFishLic] < 1)
  1508. {
  1509. WantedPoints[playerid] += 1;
  1510. SetPlayerCriminal(playerid,255, "Illegal Fishing");
  1511. }
  1512. if(Sfishes[playerid][psWeight1] == 0)
  1513. {
  1514. // PlayerInfo[playerid][pFishes] += 1;
  1515. PlayerInfo[playerid][psFishSkill] += 1;
  1516. format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
  1517. strmid(Sfishes[playerid][psFish1], sfstring, 0, strlen(sfstring), 255);
  1518. Sfishes[playerid][psWeight1] = Scaught;
  1519. format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish1], Scaught);
  1520. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1521. Sfishes[playerid][psLastWeight] = Scaught;
  1522. Sfishes[playerid][psLastFish] = 1;
  1523. Sfishes[playerid][psFid1] = srand;
  1524. Sfishes[playerid][psFishID] = srand;
  1525. if(Scaught > PlayerInfo[playerid][pBiggestFish])
  1526. {
  1527. format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
  1528. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1529. PlayerInfo[playerid][pBiggestFish] = Scaught;
  1530. }
  1531. }
  1532. else if(Sfishes[playerid][psWeight2] == 0)
  1533. {
  1534. // PlayerInfo[playerid][pFishes] += 1;
  1535. PlayerInfo[playerid][psFishSkill] += 1;
  1536. format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
  1537. strmid(Sfishes[playerid][psFish2], sfstring, 0, strlen(sfstring), 255);
  1538. Sfishes[playerid][psWeight2] = Scaught;
  1539. format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish2], Scaught);
  1540. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1541. Sfishes[playerid][psLastWeight] = Scaught;
  1542. Sfishes[playerid][psLastFish] = 2;
  1543. Sfishes[playerid][psFid2] = srand;
  1544. Sfishes[playerid][psFishID] = srand;
  1545. if(Scaught > PlayerInfo[playerid][pBiggestFish])
  1546. {
  1547. format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
  1548. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1549. PlayerInfo[playerid][pBiggestFish] = Scaught;
  1550. }
  1551. }
  1552. else if(Sfishes[playerid][psWeight3] == 0)
  1553. {
  1554. // PlayerInfo[playerid][psFishes] += 1;
  1555. PlayerInfo[playerid][psFishSkill] += 1;
  1556. format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
  1557. strmid(Sfishes[playerid][psFish3], sfstring, 0, strlen(sfstring), 255);
  1558. Sfishes[playerid][psWeight3] = Scaught;
  1559. format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish3], Scaught);
  1560. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1561. Sfishes[playerid][psLastWeight] = Scaught;
  1562. Sfishes[playerid][psLastFish] = 3;
  1563. Sfishes[playerid][psFid3] = srand;
  1564. Sfishes[playerid][psFishID] = srand;
  1565. if(Scaught > PlayerInfo[playerid][pBiggestFish])
  1566. {
  1567. format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
  1568. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1569. PlayerInfo[playerid][pBiggestFish] = Scaught;
  1570. }
  1571. }
  1572. else if(Sfishes[playerid][psWeight4] == 0)
  1573. {
  1574. // PlayerInfo[playerid][pFishes] += 1;
  1575. PlayerInfo[playerid][psFishSkill] += 1;
  1576. format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
  1577. strmid(Sfishes[playerid][psFish4], sfstring, 0, strlen(sfstring), 255);
  1578. Sfishes[playerid][psWeight4] = Scaught;
  1579. format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish4], Scaught);
  1580. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1581. Sfishes[playerid][psLastWeight] = Scaught;
  1582. Sfishes[playerid][psLastFish] = 4;
  1583. Sfishes[playerid][psFid4] = srand;
  1584. Sfishes[playerid][psFishID] = srand;
  1585. if(Scaught > PlayerInfo[playerid][pBiggestFish])
  1586. {
  1587. format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
  1588. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1589. PlayerInfo[playerid][pBiggestFish] = Scaught;
  1590. }
  1591. }
  1592. else if(Sfishes[playerid][psWeight5] == 0)
  1593. {
  1594. // PlayerInfo[playerid][pFishes] += 1;
  1595. PlayerInfo[playerid][psFishSkill] += 1;
  1596. format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
  1597. strmid(Sfishes[playerid][psFish5], sfstring, 0, strlen(sfstring), 255);
  1598. Sfishes[playerid][psWeight5] = Scaught;
  1599. format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish5], Scaught);
  1600. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1601. Sfishes[playerid][psLastWeight] = Scaught;
  1602. Sfishes[playerid][psLastFish] = 5;
  1603. Sfishes[playerid][psFid5] = srand;
  1604. Sfishes[playerid][psFishID] = srand;
  1605. if(Scaught > PlayerInfo[playerid][pBiggestFish])
  1606. {
  1607. format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
  1608. SendClientMessage(playerid, COLOR_WHITE, sfstring);
  1609. PlayerInfo[playerid][pBiggestFish] = Scaught;
  1610. }
  1611. }
  1612. else
  1613. {
  1614. SendClientMessage(playerid, COLOR_GREY, " You dont have any space for your Fish !");
  1615. return 1;
  1616. }
  1617. if(PlayerInfo[playerid][psFishSkill] == 50)
  1618. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 2, you can now catch Heavier Fishes."); }
  1619. else if(PlayerInfo[playerid][psFishSkill] == 250)
  1620. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 3, you can now catch Heavier Fishes."); }
  1621. else if(PlayerInfo[playerid][psFishSkill] == 500)
  1622. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 4, you can now catch Heavier Fishes."); }
  1623. else if(PlayerInfo[playerid][psFishSkill] == 1000)
  1624. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 5, you can now catch Heavier Fishes."); }
  1625. }
  1626. else
  1627. {
  1628. SendClientMessage(playerid, COLOR_GREY, " You are not on a Fishing Boat !");
  1629. return 1;
  1630. }
  1631. }
  1632. return 1;
  1633. }
  1634. dcmd_livewell(playerid, params[])
  1635. {
  1636. #pragma unused params
  1637. if(IsPlayerConnected(playerid))
  1638. {
  1639. new string[256];
  1640. // SendClientMessage(playerid, COLOR_WHITE, "|__________________ Livewell __________________|");
  1641. Livetop[playerid] = TextDrawCreate(10, 247, ":'''''''''''''''''''''Livewell''''''''''''''''''''':");
  1642. TextDrawAlignment(Livetop[playerid], 1);
  1643. TextDrawFont(Livetop[playerid], 1);
  1644. TextDrawLetterSize(Livetop[playerid], 0.4, 0.8);
  1645. TextDrawColor(Livetop[playerid], 0x00F600AA);
  1646. TextDrawShowForPlayer(playerid, Livetop[playerid]);
  1647. // SetTimer("textdrawhide", 20000, 0);
  1648. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1649. //-----------------------------------------------------------------------------------------------------------------
  1650. // new lr1string[256];
  1651. format(string, sizeof(string), " (1) Fish: %s. Weight: %d.", Sfishes[playerid][psFish1], Sfishes[playerid][psWeight1]);
  1652. Lrow1[playerid] = TextDrawCreate(10, 257, string);
  1653. TextDrawAlignment(Lrow1[playerid], 1);
  1654. TextDrawFont(Lrow1[playerid], 1);
  1655. TextDrawLetterSize(Lrow1[playerid], 0.4, 0.8);
  1656. TextDrawColor(Lrow1[playerid], 0xF60000AA);
  1657. // TextDrawSetOutline(Lrow1[playerid], 0.4);
  1658. TextDrawShowForPlayer(playerid, Lrow1[playerid]);
  1659. // SetTimer("textdrawhide", 20000, 0);
  1660. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1661. //-------------------------------------------------------------------------------------------------------------------
  1662. // new lr2string[256];
  1663. // SendClientMessage(playerid, COLOR_GREY, string);
  1664. format(string, sizeof(string), " (2) Fish: %s. Weight: %d.", Sfishes[playerid][psFish2], Sfishes[playerid][psWeight2]);
  1665. Lrow2[playerid] = TextDrawCreate(10, 267, string);
  1666. TextDrawAlignment(Lrow2[playerid], 1);
  1667. TextDrawFont(Lrow2[playerid], 1);
  1668. TextDrawLetterSize(Lrow2[playerid], 0.4, 0.8);
  1669. TextDrawColor(Lrow2[playerid], 0x00F600AA);
  1670. // TextDrawSetOutline(Lrow2[playerid], 0.4);
  1671. TextDrawShowForPlayer(playerid, Lrow2[playerid]);
  1672. // SetTimer("textdrawhide", 20000, 0);
  1673. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1674. //-------------------------------------------------------------------------------------------------------------------------
  1675. // new lr3string[256];
  1676. // SendClientMessage(playerid, COLOR_GREY, string);
  1677. format(string, sizeof(string), " (3) Fish: %s. Weight: %d.", Sfishes[playerid][psFish3], Sfishes[playerid][psWeight3]);
  1678. Lrow3[playerid] = TextDrawCreate(10, 277, string);
  1679. TextDrawAlignment(Lrow3[playerid], 1);
  1680. TextDrawFont(Lrow3[playerid], 1);
  1681. TextDrawLetterSize(Lrow3[playerid], 0.4, 0.8);
  1682. TextDrawColor(Lrow3[playerid], 0x0000F6AA);
  1683. // TextDrawSetOutline(Lrow3[playerid], 0.4);
  1684. TextDrawShowForPlayer(playerid, Lrow3[playerid]);
  1685. // SetTimer("textdrawhide", 20000, 0);
  1686. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1687. //-------------------------------------------------------------------------------------------------------------------------
  1688. // new lr4string[256];
  1689. // SendClientMessage(playerid, COLOR_GREY, string);
  1690. format(string, sizeof(string), " (4) Fish: %s. Weight: %d.", Sfishes[playerid][psFish4], Sfishes[playerid][psWeight4]);
  1691. Lrow4[playerid] = TextDrawCreate(10, 287, string);
  1692. TextDrawAlignment(Lrow4[playerid], 1);
  1693. TextDrawFont(Lrow4[playerid], 1);
  1694. TextDrawLetterSize(Lrow4[playerid], 0.4, 0.8);
  1695. TextDrawColor(Lrow4[playerid], 0xF6F6F6AA);
  1696. // TextDrawSetOutline(Lrow4[playerid], 0.4);
  1697. TextDrawShowForPlayer(playerid, Lrow4[playerid]);
  1698. // SetTimer("textdrawhide", 20000, 0);
  1699. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1700. //----------------------------------------------------------------------------------------------------------------------------
  1701. // new lr5string[256];
  1702. // SendClientMessage(playerid, COLOR_GREY, string);
  1703. format(string, sizeof(string), " (5) Fish: %s. Weight: %d.", Sfishes[playerid][psFish5], Sfishes[playerid][psWeight5]);
  1704. Lrow5[playerid] = TextDrawCreate(10, 297, string);
  1705. TextDrawAlignment(Lrow5[playerid], 1);
  1706. TextDrawFont(Lrow5[playerid], 1);
  1707. TextDrawLetterSize(Lrow5[playerid], 0.4, 0.8);
  1708. TextDrawColor(Lrow5[playerid], 0x00F600AA);
  1709. // TextDrawSetOutline(Lrow5[playerid], 0.4);
  1710. TextDrawShowForPlayer(playerid, Lrow5[playerid]);
  1711. // SetTimer("textdrawhide", 20000, 0);
  1712. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1713. // SendClientMessage(playerid, COLOR_GREY, string);
  1714. //--------------------------------------------------------------------------------------------------------------------------
  1715. // SendClientMessage(playerid, COLOR_WHITE, "|_____________________________________________|");
  1716. Livebot[playerid] = TextDrawCreate(10, 307, ":....................................................:");
  1717. TextDrawAlignment(Livebot[playerid], 1);
  1718. TextDrawFont(Livebot[playerid], 1);
  1719. TextDrawLetterSize(Livebot[playerid], 0.4, 0.8);
  1720. TextDrawColor(Livebot[playerid], 0x00F600AA);
  1721. // TextDrawSetOutline(Livebot[playerid], 0.4);
  1722. TextDrawShowForPlayer(playerid, Livebot[playerid]);
  1723. // SetTimer("textdrawhide", 20000, 0);
  1724. SetTimerEx("textdrawhide", 20000, false, "i", playerid);
  1725. }
  1726. return 1;
  1727. }
  1728.  
  1729. dcmd_closewell(playerid, params[])
  1730. {
  1731. #pragma unused params
  1732. if(IsPlayerConnected(playerid))
  1733. {
  1734. TextDrawHideForPlayer(playerid, Livetop[playerid]);
  1735. TextDrawHideForPlayer(playerid, Lrow1[playerid]);
  1736. TextDrawHideForPlayer(playerid, Lrow2[playerid]);
  1737. TextDrawHideForPlayer(playerid, Lrow3[playerid]);
  1738. TextDrawHideForPlayer(playerid, Lrow4[playerid]);
  1739. TextDrawHideForPlayer(playerid, Lrow5[playerid]);
  1740. TextDrawHideForPlayer(playerid, Livebot[playerid]);
  1741. // return 1;
  1742. }
  1743. return 1;
  1744. }
  1745. //---------------------------<[ OnPlayerCommandText ]>--------------------------------------------------------
  1746.  
  1747. public OnPlayerCommandText(playerid, cmdtext[])
  1748. {
  1749. dcmd(closewell, 9, cmdtext);
  1750. dcmd(livewell, 8, cmdtext);
  1751. dcmd(seafish, 7, cmdtext);
  1752. return 1;
  1753. }
  1754.  
  1755. public textdrawhide(playerid)
  1756. {
  1757. TextDrawHideForPlayer(playerid, Treasurefound[playerid]);
  1758. TextDrawHideForPlayer(playerid, Treasamount[playerid]);
  1759. TextDrawHideForPlayer(playerid, Treasworth[playerid]);
  1760. TextDrawHideForPlayer(playerid, Allfound[playerid]);
  1761. TextDrawHideForPlayer(playerid, Livetop[playerid]);
  1762. TextDrawHideForPlayer(playerid, Lrow1[playerid]);
  1763. TextDrawHideForPlayer(playerid, Lrow2[playerid]);
  1764. TextDrawHideForPlayer(playerid, Lrow3[playerid]);
  1765. TextDrawHideForPlayer(playerid, Lrow4[playerid]);
  1766. TextDrawHideForPlayer(playerid, Lrow5[playerid]);
  1767. TextDrawHideForPlayer(playerid, Livebot[playerid]);
  1768. return 1;
  1769. }
Advertisement
Add Comment
Please, Sign In to add comment