Advertisement
Mciko123

[PAWN] Phone

Nov 6th, 2016
1,777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.64 KB | None | 0 0
  1. #include < a_samp >
  2. #include < foreach >
  3. #include < izcmd >
  4.  
  5. new PlayerText:PhoneTD[MAX_PLAYERS][20];
  6.  
  7. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  8. {
  9. if(_:clickedid == INVALID_TEXT_DRAW) return CallLocalFunction("OnPlayerClickPlayerTextDraw", "ii", playerid, INVALID_TEXT_DRAW);
  10. return 1;
  11. }
  12.  
  13. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  14. {
  15. if(_:playertextid != INVALID_TEXT_DRAW)
  16. {
  17. if(playertextid == PhoneTD[playerid][14])
  18. {
  19. //Here ajust your code for sending message to player
  20. }
  21. /*if(playertextid == PhoneTD[playerid][15]) ~read text on line 173..
  22. {
  23. CreatePhoneTD(playerid, false);
  24. CancelSelectTextDraw(playerid);
  25. }*/
  26. if(playertextid == PhoneTD[playerid][16])
  27. {
  28. //Here ajust your code for calling a player
  29. }
  30. if(playertextid == PhoneTD[playerid][17])
  31. {
  32. //here ajust your code for checking bank money
  33. }
  34. if(playertextid == PhoneTD[playerid][18])
  35. {
  36. //here ajust your code for sending message to admins
  37. }
  38. if(playertextid == PhoneTD[playerid][19])
  39. {
  40. //here ajust your code for sending report to admin
  41. }
  42. }
  43. return 1;
  44. }
  45.  
  46. CreatePhoneTD(playerid, bool:created)
  47. {
  48. if(created == true)
  49. {
  50. PhoneTD[playerid][0] = CreatePlayerTextDraw(playerid, 520.222351, 200.951187, "box");
  51. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][0], 0.000000, 20.933324);
  52. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][0], 519.000000, 0.000000);
  53. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][0], 1);
  54. PlayerTextDrawColor(playerid, PhoneTD[playerid][0], -1);
  55. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][0], 1);
  56. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][0], 255);
  57. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][0], 0);
  58. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][0], 0);
  59. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][0], 255);
  60. PlayerTextDrawFont(playerid, PhoneTD[playerid][0], 1);
  61. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][0], 1);
  62. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][0], 0);
  63.  
  64. PhoneTD[playerid][1] = CreatePlayerTextDraw(playerid, 517.555725, 179.049087, "o");
  65. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][1], 0.857777, 3.446756);
  66. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][1], 1);
  67. PlayerTextDrawColor(playerid, PhoneTD[playerid][1], 255);
  68. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][1], 0);
  69. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][1], 0);
  70. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][1], 255);
  71. PlayerTextDrawFont(playerid, PhoneTD[playerid][1], 1);
  72. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][1], 1);
  73. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][1], 0);
  74.  
  75. PhoneTD[playerid][2] = CreatePlayerTextDraw(playerid, 517.555664, 369.697753, "o");
  76. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][2], 0.857777, 3.446756);
  77. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][2], 1);
  78. PlayerTextDrawColor(playerid, PhoneTD[playerid][2], 255);
  79. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][2], 0);
  80. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][2], 0);
  81. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][2], 255);
  82. PlayerTextDrawFont(playerid, PhoneTD[playerid][2], 1);
  83. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][2], 1);
  84. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][2], 0);
  85.  
  86. PhoneTD[playerid][3] = CreatePlayerTextDraw(playerid, 526.444702, 193.982299, "box");
  87. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][3], 0.000000, -0.133334);
  88. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][3], 624.000000, 0.000000);
  89. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][3], 1);
  90. PlayerTextDrawColor(playerid, PhoneTD[playerid][3], -1);
  91. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][3], 1);
  92. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][3], 255);
  93. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][3], 0);
  94. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][3], 0);
  95. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][3], 255);
  96. PlayerTextDrawFont(playerid, PhoneTD[playerid][3], 1);
  97. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][3], 1);
  98. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][3], 0);
  99.  
  100. PhoneTD[playerid][4] = CreatePlayerTextDraw(playerid, 615.778320, 179.048980, "o");
  101. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][4], 0.857777, 3.446756);
  102. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][4], 1);
  103. PlayerTextDrawColor(playerid, PhoneTD[playerid][4], 255);
  104. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][4], 0);
  105. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][4], 0);
  106. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][4], 255);
  107. PlayerTextDrawFont(playerid, PhoneTD[playerid][4], 1);
  108. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][4], 1);
  109. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][4], 0);
  110.  
  111. PhoneTD[playerid][5] = CreatePlayerTextDraw(playerid, 630.000244, 197.964462, "box");
  112. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][5], 0.000000, 21.333330);
  113. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][5], 630.000000, 0.000000);
  114. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][5], 1);
  115. PlayerTextDrawColor(playerid, PhoneTD[playerid][5], -1);
  116. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][5], 1);
  117. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][5], 255);
  118. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][5], 0);
  119. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][5], 0);
  120. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][5], 255);
  121. PlayerTextDrawFont(playerid, PhoneTD[playerid][5], 1);
  122. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][5], 1);
  123. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][5], 0);
  124.  
  125. PhoneTD[playerid][6] = CreatePlayerTextDraw(playerid, 616.222961, 369.697814, "o");
  126. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][6], 0.857777, 3.446756);
  127. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][6], 1);
  128. PlayerTextDrawColor(playerid, PhoneTD[playerid][6], 255);
  129. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][6], 0);
  130. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][6], 0);
  131. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][6], 255);
  132. PlayerTextDrawFont(playerid, PhoneTD[playerid][6], 1);
  133. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][6], 1);
  134. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][6], 0);
  135.  
  136. PhoneTD[playerid][7] = CreatePlayerTextDraw(playerid, 528.666992, 395.582244, "box");
  137. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][7], 0.000000, -0.133334);
  138. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][7], 625.000000, 0.000000);
  139. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][7], 1);
  140. PlayerTextDrawColor(playerid, PhoneTD[playerid][7], -1);
  141. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][7], 1);
  142. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][7], 255);
  143. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][7], 0);
  144. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][7], 0);
  145. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][7], 255);
  146. PlayerTextDrawFont(playerid, PhoneTD[playerid][7], 1);
  147. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][7], 1);
  148. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][7], 0);
  149.  
  150. PhoneTD[playerid][8] = CreatePlayerTextDraw(playerid, 522.444396, 194.977890, "box");
  151. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][8], 0.000000, 21.955551);
  152. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][8], 628.000000, 0.000000);
  153. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][8], 1);
  154. PlayerTextDrawColor(playerid, PhoneTD[playerid][8], -1);
  155. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][8], 1);
  156. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][8], 255);
  157. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][8], 0);
  158. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][8], 0);
  159. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][8], 255);
  160. PlayerTextDrawFont(playerid, PhoneTD[playerid][8], 1);
  161. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][8], 1);
  162. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][8], 0);
  163.  
  164. /*PhoneTD[playerid][9] = CreatePlayerTextDraw(playerid, 524.110839, 210.751190, "LD_DUAL:backgnd"); //this button is for exiting the phone.. problem is selectable things.. use /phoneoff for now. sorry for this :(
  165. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][9], 0.000000, 0.000000);
  166. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][9], 102.000000, 173.000000);
  167. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][9], 1);
  168. PlayerTextDrawColor(playerid, PhoneTD[playerid][9], -1);
  169. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][9], 0);
  170. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][9], 0);
  171. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][9], 255);
  172. PlayerTextDrawFont(playerid, PhoneTD[playerid][9], 4);
  173. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][9], 0);
  174. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][9], 0);*/
  175.  
  176. PhoneTD[playerid][10] = CreatePlayerTextDraw(playerid, 552.222167, 203.439987, "SAMSUNG");
  177. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][10], 0.288888, 0.659200);
  178. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][10], 1);
  179. PlayerTextDrawColor(playerid, PhoneTD[playerid][10], -1);
  180. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][10], 0);
  181. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][10], 0);
  182. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][10], 255);
  183. PlayerTextDrawFont(playerid, PhoneTD[playerid][10], 1);
  184. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][10], 1);
  185. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][10], 0);
  186.  
  187. PhoneTD[playerid][11] = CreatePlayerTextDraw(playerid, 559.777770, 199.457763, "box");
  188. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][11], 0.000000, -0.311111);
  189. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][11], 591.000000, 0.000000);
  190. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][11], 1);
  191. PlayerTextDrawColor(playerid, PhoneTD[playerid][11], -1);
  192. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][11], 1);
  193. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][11], -1);
  194. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][11], 0);
  195. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][11], 0);
  196. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][11], 255);
  197. PlayerTextDrawFont(playerid, PhoneTD[playerid][11], 1);
  198. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][11], 1);
  199. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][11], 0);
  200.  
  201. PhoneTD[playerid][12] = CreatePlayerTextDraw(playerid, 535.333312, 196.968826, "o");
  202. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][12], 0.238666, 1.022578);
  203. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][12], 1);
  204. PlayerTextDrawColor(playerid, PhoneTD[playerid][12], -1);
  205. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][12], 0);
  206. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][12], 0);
  207. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][12], 255);
  208. PlayerTextDrawFont(playerid, PhoneTD[playerid][12], 1);
  209. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][12], 1);
  210. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][12], 0);
  211.  
  212. PhoneTD[playerid][13] = CreatePlayerTextDraw(playerid, 526.888977, 371.688964, "box");
  213. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][13], 0.000000, 2.266666);
  214. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][13], 625.000000, 0.000000);
  215. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][13], 1);
  216. PlayerTextDrawColor(playerid, PhoneTD[playerid][13], -1);
  217. PlayerTextDrawUseBox(playerid, PhoneTD[playerid][13], 1);
  218. PlayerTextDrawBoxColor(playerid, PhoneTD[playerid][13], 255);
  219. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][13], 0);
  220. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][13], 0);
  221. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][13], 255);
  222. PlayerTextDrawFont(playerid, PhoneTD[playerid][13], 1);
  223. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][13], 1);
  224. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][13], 0);
  225.  
  226. PhoneTD[playerid][14] = CreatePlayerTextDraw(playerid, 554.444396, 226.337692, "message");
  227. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][14], 0.293333, 1.565154);
  228. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][14], 1);
  229. PlayerTextDrawColor(playerid, PhoneTD[playerid][14], -1);
  230. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][14], 0);
  231. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][14], 0);
  232. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][14], 255);
  233. PlayerTextDrawFont(playerid, PhoneTD[playerid][14], 1);
  234. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][14], 1);
  235. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][14], 0);
  236. PlayerTextDrawSetSelectable(playerid, PhoneTD[playerid][14], true);
  237.  
  238. PhoneTD[playerid][15] = CreatePlayerTextDraw(playerid, 566.777587, 391.444519, "LD_BEAT:square");
  239. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][15], 1.293333, 1.565154);
  240. PlayerTextDrawTextSize(playerid, PhoneTD[playerid][15], 19.000000, -16.000000);
  241. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][15], 1);
  242. PlayerTextDrawColor(playerid, PhoneTD[playerid][15], -1);
  243. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][15], 0);
  244. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][15], 0);
  245. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][15], 255);
  246. PlayerTextDrawFont(playerid, PhoneTD[playerid][15], 4);
  247. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][15], 0);
  248. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][15], 0);
  249. PlayerTextDrawSetSelectable(playerid, PhoneTD[playerid][15], true);
  250.  
  251. PhoneTD[playerid][16] = CreatePlayerTextDraw(playerid, 564.666687, 251.724411, "call");
  252. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][16], 0.293333, 1.565154);
  253. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][16], 1);
  254. PlayerTextDrawColor(playerid, PhoneTD[playerid][16], -1);
  255. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][16], 0);
  256. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][16], 0);
  257. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][16], 255);
  258. PlayerTextDrawFont(playerid, PhoneTD[playerid][16], 1);
  259. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][16], 1);
  260. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][16], 0);
  261. PlayerTextDrawSetSelectable(playerid, PhoneTD[playerid][16], true);
  262.  
  263. PhoneTD[playerid][17] = CreatePlayerTextDraw(playerid, 544.666442, 277.110900, "bank_balance");
  264. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][17], 0.293333, 1.565154);
  265. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][17], 1);
  266. PlayerTextDrawColor(playerid, PhoneTD[playerid][17], -1);
  267. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][17], 0);
  268. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][17], 0);
  269. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][17], 255);
  270. PlayerTextDrawFont(playerid, PhoneTD[playerid][17], 1);
  271. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][17], 1);
  272. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][17], 0);
  273. PlayerTextDrawSetSelectable(playerid, PhoneTD[playerid][17], true);
  274.  
  275. PhoneTD[playerid][18] = CreatePlayerTextDraw(playerid, 538.444030, 305.484069, "admin_message");
  276. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][18], 0.293333, 1.565154);
  277. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][18], 1);
  278. PlayerTextDrawColor(playerid, PhoneTD[playerid][18], -1);
  279. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][18], 0);
  280. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][18], 0);
  281. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][18], 255);
  282. PlayerTextDrawFont(playerid, PhoneTD[playerid][18], 1);
  283. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][18], 1);
  284. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][18], 0);
  285. PlayerTextDrawSetSelectable(playerid, PhoneTD[playerid][18], true);
  286.  
  287. PhoneTD[playerid][19] = CreatePlayerTextDraw(playerid, 541.999694, 333.857299, "admin_report");
  288. PlayerTextDrawLetterSize(playerid, PhoneTD[playerid][19], 0.293333, 1.565154);
  289. PlayerTextDrawAlignment(playerid, PhoneTD[playerid][19], 1);
  290. PlayerTextDrawColor(playerid, PhoneTD[playerid][19], -1);
  291. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][19], 0);
  292. PlayerTextDrawSetOutline(playerid, PhoneTD[playerid][19], 0);
  293. PlayerTextDrawBackgroundColor(playerid, PhoneTD[playerid][19], 255);
  294. PlayerTextDrawFont(playerid, PhoneTD[playerid][19], 1);
  295. PlayerTextDrawSetProportional(playerid, PhoneTD[playerid][19], 1);
  296. PlayerTextDrawSetShadow(playerid, PhoneTD[playerid][19], 0);
  297. PlayerTextDrawSetSelectable(playerid, PhoneTD[playerid][19], true);
  298. for(new p = 0; p < 21; p++)
  299. {
  300. foreach(new i: Player)
  301. {
  302. if(IsPlayerConnected(i))
  303. {
  304. PlayerTextDrawShow(i, PhoneTD[i][p]);
  305. SelectTextDraw(playerid, 0xFFFFFF);
  306. }
  307. }
  308. }
  309. }
  310. if(created == false)
  311. {
  312. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][0]);
  313. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][1]);
  314. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][2]);
  315. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][3]);
  316. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][4]);
  317. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][5]);
  318. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][6]);
  319. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][7]);
  320. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][8]);
  321. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][9]);
  322. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][10]);
  323. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][11]);
  324. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][12]);
  325. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][13]);
  326. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][14]);
  327. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][15]);
  328. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][16]);
  329. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][17]);
  330. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][18]);
  331. PlayerTextDrawDestroy(playerid, PhoneTD[playerid][19]);
  332. }
  333. return 1;
  334. }
  335.  
  336. CMD:phone(playerid)
  337. {
  338. CreatePhoneTD(playerid, true);
  339. return 1;
  340. }
  341.  
  342. CMD:phoneoff(playerid)
  343. {
  344. CreatePhoneTD(playerid, false);
  345. CancelSelectTextDraw(playerid);
  346. return 1;
  347. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement