Sanady

Phone Textdraw

Jul 26th, 2016
2,741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.69 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. //============================================================
  4. //--->>> Variables
  5. //============================================================
  6. new PlayerText:PhoneGUI[MAX_PLAYERS][44];
  7. new bool:PhoneShow[MAX_PLAYERS];
  8. new PhoneLocked[MAX_PLAYERS] = 0; //0- reseted, 1- locked, 2- unlocked, 3- Internet Item in list
  9. //============================================================
  10. //--->>> Publics
  11. //============================================================
  12. public OnPlayerConnect(playerid)
  13. {
  14. PhoneModeInit(playerid);
  15. PhoneShow[playerid] = false;
  16. PhoneLocked[playerid] = 0;
  17. return 1;
  18. }
  19.  
  20. public OnPlayerDisconnect(playerid, reason)
  21. {
  22. for(new i = 0; i < 44; i++)
  23. {
  24. PlayerTextDrawDestroy(playerid, PhoneGUI[playerid][i]);
  25. }
  26. PhoneShow[playerid] = false;
  27. PhoneLocked[playerid] = 0;
  28. return 1;
  29. }
  30.  
  31. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  32. {
  33. if(newkeys == KEY_YES)
  34. {
  35. if(PhoneShow[playerid] == true && PhoneLocked[playerid] == 1)
  36. {
  37. ShowPlayerPhoneMenu(playerid);
  38. SelectTextDraw(playerid, 0xFFD900FF);
  39. PhoneLocked[playerid] = 2;
  40. SendClientMessage(playerid, -1, "DEBUG: Phone is unlocked!");
  41. }
  42. }
  43. return 1;
  44. }
  45.  
  46. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  47. {
  48. if(clickedid == Text:INVALID_TEXT_DRAW)// ESC
  49. {
  50. if(PhoneShow[playerid] == true && PhoneLocked[playerid] == 2 || PhoneLocked[playerid] == 3)
  51. {
  52. HideWholePhone(playerid);
  53. PhoneLocked[playerid] = 0;
  54. PhoneShow[playerid] = false;
  55. TogglePlayerControllable(playerid, 1);
  56. CancelSelectTextDraw(playerid);
  57. SendClientMessage(playerid, -1, "DEBUG: Phone is reseted also hidden becouse of ESC!");
  58. }
  59. }
  60. return 1;
  61. }
  62.  
  63. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  64. {
  65. if(playertextid == PhoneGUI[playerid][36])//Back botton
  66. {
  67. if(PhoneLocked[playerid] == 2)
  68. {
  69. HidePlayerPhoneMenu(playerid);
  70. PhoneLocked[playerid] = 1;
  71. CancelSelectTextDraw(playerid);
  72. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on BACK!");
  73. }
  74. else if(PhoneLocked[playerid] == 3)
  75. {
  76. ShowPlayerPhoneMenu(playerid);
  77. PlayerTextDrawHide(playerid, PhoneGUI[playerid][31]);
  78. PhoneLocked[playerid] = 2;
  79. SendClientMessage(playerid, -1, "DEBUG: Phone is unlocked also you clicked on BACK to the main menu!");
  80. }
  81. }
  82. if(playertextid == PhoneGUI[playerid][37])//Call
  83. {
  84. if(PhoneLocked[playerid] == 2)
  85. {
  86. HidePlayerPhoneMenu(playerid);
  87. PhoneLocked[playerid] = 1;
  88. CancelSelectTextDraw(playerid);
  89. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on CALL!");
  90. }
  91. }
  92. if(playertextid == PhoneGUI[playerid][38])//SMS
  93. {
  94. if(PhoneLocked[playerid] == 2)
  95. {
  96. HidePlayerPhoneMenu(playerid);
  97. PhoneLocked[playerid] = 1;
  98. CancelSelectTextDraw(playerid);
  99. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on SMS!");
  100. }
  101. }
  102. if(playertextid == PhoneGUI[playerid][39])//Add Contacts
  103. {
  104. if(PhoneLocked[playerid] == 2)
  105. {
  106. HidePlayerPhoneMenu(playerid);
  107. PhoneLocked[playerid] = 1;
  108. CancelSelectTextDraw(playerid);
  109. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on ADD CONTACTS!");
  110. }
  111. }
  112. if(playertextid == PhoneGUI[playerid][40])//List Contacts
  113. {
  114. if(PhoneLocked[playerid] == 2)
  115. {
  116. HidePlayerPhoneMenu(playerid);
  117. PhoneLocked[playerid] = 1;
  118. CancelSelectTextDraw(playerid);
  119. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on LIST OF CONTACTS!");
  120. }
  121. }
  122. if(playertextid == PhoneGUI[playerid][41])//Camera
  123. {
  124. if(PhoneLocked[playerid] == 2)
  125. {
  126. HidePlayerPhoneMenu(playerid);
  127. PhoneLocked[playerid] = 1;
  128. CancelSelectTextDraw(playerid);
  129. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on CAMERA!");
  130. }
  131. }
  132. if(playertextid == PhoneGUI[playerid][42])//Internet
  133. {
  134. if(PhoneLocked[playerid] == 2)
  135. {
  136. HidePlayerPhoneMenu(playerid);
  137. PlayerTextDrawHide(playerid, PhoneGUI[playerid][43]);
  138. PlayerTextDrawHide(playerid, PhoneGUI[playerid][29]);
  139. PlayerTextDrawHide(playerid, PhoneGUI[playerid][27]);
  140. PlayerTextDrawShow(playerid, PhoneGUI[playerid][31]);
  141. PlayerTextDrawShow(playerid, PhoneGUI[playerid][35]);
  142. PlayerTextDrawShow(playerid, PhoneGUI[playerid][36]);
  143. PhoneLocked[playerid] = 3;
  144. SendClientMessage(playerid, -1, "DEBUG: Phone is locked also you clicked on INTERNET!");
  145. }
  146. }
  147. return 1;
  148. }
  149.  
  150. //============================================================
  151. //--->>> Stocks
  152. //============================================================
  153. stock PhoneModeInit(playerid)
  154. {
  155. PhoneGUI[playerid][0] = CreatePlayerTextDraw(playerid,543.000000, 300.000000, "_");
  156. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][0], 255);
  157. PlayerTextDrawFont(playerid,PhoneGUI[playerid][0], 1);
  158. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][0], 0.500000, 13.300001);
  159. PlayerTextDrawColor(playerid,PhoneGUI[playerid][0], -1);
  160. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][0], 0);
  161. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][0], 1);
  162. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][0], 1);
  163. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][0], 1);
  164. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][0], 255);
  165. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][0], 621.000000, 0.000000);
  166. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][0], 0);
  167.  
  168. PhoneGUI[playerid][1] = CreatePlayerTextDraw(playerid,534.000000, 238.000000, "LD_BEAT:chit");
  169. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][1], 255);
  170. PlayerTextDrawFont(playerid,PhoneGUI[playerid][1], 4);
  171. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][1], 0.500000, 1.000000);
  172. PlayerTextDrawColor(playerid,PhoneGUI[playerid][1], 255);
  173. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][1], 0);
  174. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][1], 1);
  175. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][1], 1);
  176. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][1], 1);
  177. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][1], 255);
  178. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][1], 19.000000, 21.000000);
  179. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][1], 0);
  180.  
  181. PhoneGUI[playerid][2] = CreatePlayerTextDraw(playerid,611.000000, 238.000000, "LD_BEAT:chit");
  182. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][2], 255);
  183. PlayerTextDrawFont(playerid,PhoneGUI[playerid][2], 4);
  184. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][2], 0.500000, 1.000000);
  185. PlayerTextDrawColor(playerid,PhoneGUI[playerid][2], 255);
  186. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][2], 0);
  187. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][2], 1);
  188. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][2], 1);
  189. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][2], 1);
  190. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][2], 255);
  191. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][2], 19.000000, 21.000000);
  192. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][2], 0);
  193.  
  194. PhoneGUI[playerid][3] = CreatePlayerTextDraw(playerid,611.000000, 404.000000, "LD_BEAT:chit");
  195. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][3], 255);
  196. PlayerTextDrawFont(playerid,PhoneGUI[playerid][3], 4);
  197. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][3], 0.500000, 1.000000);
  198. PlayerTextDrawColor(playerid,PhoneGUI[playerid][3], 255);
  199. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][3], 0);
  200. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][3], 1);
  201. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][3], 1);
  202. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][3], 1);
  203. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][3], 255);
  204. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][3], 19.000000, 21.000000);
  205. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][3], 0);
  206.  
  207. PhoneGUI[playerid][4] = CreatePlayerTextDraw(playerid,534.000000, 404.000000, "LD_BEAT:chit");
  208. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][4], 255);
  209. PlayerTextDrawFont(playerid,PhoneGUI[playerid][4], 4);
  210. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][4], 0.500000, 1.000000);
  211. PlayerTextDrawColor(playerid,PhoneGUI[playerid][4], 255);
  212. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][4], 0);
  213. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][4], 1);
  214. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][4], 1);
  215. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][4], 1);
  216. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][4], 255);
  217. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][4], 19.000000, 21.000000);
  218. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][4], 0);
  219.  
  220. PhoneGUI[playerid][5] = CreatePlayerTextDraw(playerid,539.000000, 248.000000, "_");
  221. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][5], 255);
  222. PlayerTextDrawFont(playerid,PhoneGUI[playerid][5], 1);
  223. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][5], 0.500000, 18.400001);
  224. PlayerTextDrawColor(playerid,PhoneGUI[playerid][5], -1);
  225. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][5], 0);
  226. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][5], 1);
  227. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][5], 1);
  228. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][5], 1);
  229. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][5], 255);
  230. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][5], 625.000000, 0.000000);
  231. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][5], 0);
  232.  
  233. PhoneGUI[playerid][6] = CreatePlayerTextDraw(playerid,545.000000, 243.000000, "_");
  234. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][6], 255);
  235. PlayerTextDrawFont(playerid,PhoneGUI[playerid][6], 1);
  236. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][6], 0.500000, 18.100000);
  237. PlayerTextDrawColor(playerid,PhoneGUI[playerid][6], -1);
  238. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][6], 0);
  239. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][6], 1);
  240. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][6], 1);
  241. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][6], 1);
  242. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][6], 255);
  243. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][6], 619.000000, 1.000000);
  244. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][6], 0);
  245.  
  246. PhoneGUI[playerid][7] = CreatePlayerTextDraw(playerid,542.000000, 246.000000, "ld_grav:sky");
  247. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][7], 255);
  248. PlayerTextDrawFont(playerid,PhoneGUI[playerid][7], 4);
  249. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][7], 0.500000, 1.000000);
  250. PlayerTextDrawColor(playerid,PhoneGUI[playerid][7], -1);
  251. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][7], 0);
  252. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][7], 1);
  253. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][7], 1);
  254. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][7], 1);
  255. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][7], 255);
  256. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][7], 80.000000, 112.000000);
  257. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][7], 0);
  258.  
  259. PhoneGUI[playerid][8] = CreatePlayerTextDraw(playerid,552.000000, 368.000000, "1");
  260. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][8], 3);
  261. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][8], 255);
  262. PlayerTextDrawFont(playerid,PhoneGUI[playerid][8], 1);
  263. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][8], 0.379999, 1.200000);
  264. PlayerTextDrawColor(playerid,PhoneGUI[playerid][8], -1);
  265. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][8], 0);
  266. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][8], 1);
  267. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][8], 1);
  268. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][8], 0);
  269.  
  270. PhoneGUI[playerid][9] = CreatePlayerTextDraw(playerid,554.000000, 384.000000, "4");
  271. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][9], 3);
  272. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][9], 255);
  273. PlayerTextDrawFont(playerid,PhoneGUI[playerid][9], 1);
  274. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][9], 0.379999, 1.200000);
  275. PlayerTextDrawColor(playerid,PhoneGUI[playerid][9], -1);
  276. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][9], 0);
  277. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][9], 1);
  278. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][9], 1);
  279. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][9], 0);
  280.  
  281. PhoneGUI[playerid][10] = CreatePlayerTextDraw(playerid,554.000000, 399.000000, "7");
  282. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][10], 3);
  283. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][10], 255);
  284. PlayerTextDrawFont(playerid,PhoneGUI[playerid][10], 1);
  285. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][10], 0.379999, 1.200000);
  286. PlayerTextDrawColor(playerid,PhoneGUI[playerid][10], -1);
  287. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][10], 0);
  288. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][10], 1);
  289. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][10], 1);
  290. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][10], 0);
  291.  
  292. PhoneGUI[playerid][11] = CreatePlayerTextDraw(playerid,552.000000, 373.000000, ".");
  293. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][11], 255);
  294. PlayerTextDrawFont(playerid,PhoneGUI[playerid][11], 1);
  295. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][11], 0.379999, 0.799998);
  296. PlayerTextDrawColor(playerid,PhoneGUI[playerid][11], -1);
  297. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][11], 0);
  298. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][11], 1);
  299. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][11], 1);
  300. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][11], 0);
  301.  
  302. PhoneGUI[playerid][12] = CreatePlayerTextDraw(playerid,553.000000, 390.000000, "ghi");
  303. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][12], 255);
  304. PlayerTextDrawFont(playerid,PhoneGUI[playerid][12], 1);
  305. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][12], 0.200000, 0.799998);
  306. PlayerTextDrawColor(playerid,PhoneGUI[playerid][12], -1);
  307. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][12], 0);
  308. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][12], 1);
  309. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][12], 1);
  310. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][12], 0);
  311.  
  312. PhoneGUI[playerid][13] = CreatePlayerTextDraw(playerid,552.000000, 403.000000, "pqrs");
  313. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][13], 255);
  314. PlayerTextDrawFont(playerid,PhoneGUI[playerid][13], 1);
  315. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][13], 0.209999, 0.799998);
  316. PlayerTextDrawColor(playerid,PhoneGUI[playerid][13], -1);
  317. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][13], 0);
  318. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][13], 1);
  319. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][13], 1);
  320. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][13], 0);
  321.  
  322. PhoneGUI[playerid][14] = CreatePlayerTextDraw(playerid,580.000000, 369.000000, "2");
  323. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][14], 3);
  324. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][14], 255);
  325. PlayerTextDrawFont(playerid,PhoneGUI[playerid][14], 1);
  326. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][14], 0.379999, 1.200000);
  327. PlayerTextDrawColor(playerid,PhoneGUI[playerid][14], -1);
  328. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][14], 0);
  329. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][14], 1);
  330. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][14], 1);
  331. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][14], 0);
  332.  
  333. PhoneGUI[playerid][15] = CreatePlayerTextDraw(playerid,580.000000, 385.000000, "5");
  334. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][15], 3);
  335. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][15], 255);
  336. PlayerTextDrawFont(playerid,PhoneGUI[playerid][15], 1);
  337. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][15], 0.379999, 1.200000);
  338. PlayerTextDrawColor(playerid,PhoneGUI[playerid][15], -1);
  339. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][15], 0);
  340. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][15], 1);
  341. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][15], 1);
  342. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][15], 0);
  343.  
  344. PhoneGUI[playerid][16] = CreatePlayerTextDraw(playerid,580.000000, 400.000000, "8");
  345. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][16], 3);
  346. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][16], 255);
  347. PlayerTextDrawFont(playerid,PhoneGUI[playerid][16], 1);
  348. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][16], 0.379999, 1.200000);
  349. PlayerTextDrawColor(playerid,PhoneGUI[playerid][16], -1);
  350. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][16], 0);
  351. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][16], 1);
  352. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][16], 1);
  353. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][16], 0);
  354.  
  355. PhoneGUI[playerid][17] = CreatePlayerTextDraw(playerid,580.000000, 368.000000, "abc");
  356. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][17], 255);
  357. PlayerTextDrawFont(playerid,PhoneGUI[playerid][17], 1);
  358. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][17], 0.189999, 0.799998);
  359. PlayerTextDrawColor(playerid,PhoneGUI[playerid][17], -1);
  360. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][17], 0);
  361. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][17], 1);
  362. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][17], 1);
  363. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][17], 0);
  364.  
  365. PhoneGUI[playerid][18] = CreatePlayerTextDraw(playerid,580.000000, 383.000000, "jkl");
  366. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][18], 255);
  367. PlayerTextDrawFont(playerid,PhoneGUI[playerid][18], 1);
  368. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][18], 0.189999, 0.799998);
  369. PlayerTextDrawColor(playerid,PhoneGUI[playerid][18], -1);
  370. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][18], 0);
  371. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][18], 1);
  372. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][18], 1);
  373. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][18], 0);
  374.  
  375. PhoneGUI[playerid][19] = CreatePlayerTextDraw(playerid,579.000000, 398.000000, "tuv");
  376. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][19], 255);
  377. PlayerTextDrawFont(playerid,PhoneGUI[playerid][19], 1);
  378. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][19], 0.200000, 0.799998);
  379. PlayerTextDrawColor(playerid,PhoneGUI[playerid][19], -1);
  380. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][19], 0);
  381. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][19], 1);
  382. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][19], 1);
  383. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][19], 0);
  384.  
  385. PhoneGUI[playerid][20] = CreatePlayerTextDraw(playerid,605.000000, 370.000000, "3");
  386. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][20], 3);
  387. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][20], 255);
  388. PlayerTextDrawFont(playerid,PhoneGUI[playerid][20], 1);
  389. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][20], 0.379999, 1.200000);
  390. PlayerTextDrawColor(playerid,PhoneGUI[playerid][20], -1);
  391. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][20], 0);
  392. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][20], 1);
  393. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][20], 1);
  394. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][20], 0);
  395.  
  396. PhoneGUI[playerid][21] = CreatePlayerTextDraw(playerid,605.000000, 386.000000, "6");
  397. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][21], 3);
  398. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][21], 255);
  399. PlayerTextDrawFont(playerid,PhoneGUI[playerid][21], 1);
  400. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][21], 0.379999, 1.200000);
  401. PlayerTextDrawColor(playerid,PhoneGUI[playerid][21], -1);
  402. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][21], 0);
  403. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][21], 1);
  404. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][21], 1);
  405. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][21], 0);
  406.  
  407. PhoneGUI[playerid][22] = CreatePlayerTextDraw(playerid,605.000000, 400.000000, "9");
  408. PlayerTextDrawAlignment(playerid,PhoneGUI[playerid][22], 3);
  409. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][22], 255);
  410. PlayerTextDrawFont(playerid,PhoneGUI[playerid][22], 1);
  411. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][22], 0.379999, 1.200000);
  412. PlayerTextDrawColor(playerid,PhoneGUI[playerid][22], -1);
  413. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][22], 0);
  414. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][22], 1);
  415. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][22], 1);
  416. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][22], 0);
  417.  
  418. PhoneGUI[playerid][23] = CreatePlayerTextDraw(playerid,604.000000, 375.000000, "der");
  419. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][23], 255);
  420. PlayerTextDrawFont(playerid,PhoneGUI[playerid][23], 1);
  421. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][23], 0.189999, 0.799998);
  422. PlayerTextDrawColor(playerid,PhoneGUI[playerid][23], -1);
  423. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][23], 0);
  424. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][23], 1);
  425. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][23], 1);
  426. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][23], 0);
  427.  
  428. PhoneGUI[playerid][24] = CreatePlayerTextDraw(playerid,604.000000, 391.000000, "mno");
  429. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][24], 255);
  430. PlayerTextDrawFont(playerid,PhoneGUI[playerid][24], 1);
  431. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][24], 0.189999, 0.799998);
  432. PlayerTextDrawColor(playerid,PhoneGUI[playerid][24], -1);
  433. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][24], 0);
  434. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][24], 1);
  435. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][24], 1);
  436. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][24], 0);
  437.  
  438. PhoneGUI[playerid][25] = CreatePlayerTextDraw(playerid,604.000000, 404.000000, "wxyz");
  439. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][25], 255);
  440. PlayerTextDrawFont(playerid,PhoneGUI[playerid][25], 1);
  441. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][25], 0.189999, 0.799998);
  442. PlayerTextDrawColor(playerid,PhoneGUI[playerid][25], -1);
  443. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][25], 0);
  444. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][25], 1);
  445. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][25], 1);
  446. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][25], 0);
  447.  
  448. PhoneGUI[playerid][26] = CreatePlayerTextDraw(playerid,624.000000, 247.000000, "_");
  449. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][26], 255);
  450. PlayerTextDrawFont(playerid,PhoneGUI[playerid][26], 1);
  451. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][26], 0.500000, 0.599999);
  452. PlayerTextDrawColor(playerid,PhoneGUI[playerid][26], -1);
  453. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][26], 0);
  454. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][26], 1);
  455. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][26], 1);
  456. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][26], 1);
  457. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][26], 102);
  458. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][26], 540.000000, 0.000000);
  459. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][26], 0);
  460.  
  461. PhoneGUI[playerid][27] = CreatePlayerTextDraw(playerid,550.000000, 349.000000, "Press ~h~~g~Y ~w~to unlock.");
  462. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][27], 255);
  463. PlayerTextDrawFont(playerid,PhoneGUI[playerid][27], 1);
  464. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][27], 0.200000, 1.000000);
  465. PlayerTextDrawColor(playerid,PhoneGUI[playerid][27], -1);
  466. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][27], 1);
  467. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][27], 1);
  468. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][27], 0);
  469.  
  470. PhoneGUI[playerid][28] = CreatePlayerTextDraw(playerid,624.000000, 350.000000, "_");
  471. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][28], 255);
  472. PlayerTextDrawFont(playerid,PhoneGUI[playerid][28], 1);
  473. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][28], 0.500000, 0.799998);
  474. PlayerTextDrawColor(playerid,PhoneGUI[playerid][28], -1);
  475. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][28], 0);
  476. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][28], 1);
  477. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][28], 1);
  478. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][28], 1);
  479. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][28], 102);
  480. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][28], 540.000000, 0.000000);
  481. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][28], 0);
  482.  
  483. PhoneGUI[playerid][29] = CreatePlayerTextDraw(playerid,553.000000, 268.000000, "19:24");
  484. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][29], 255);
  485. PlayerTextDrawFont(playerid,PhoneGUI[playerid][29], 2);
  486. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][29], 0.500000, 3.000000);
  487. PlayerTextDrawColor(playerid,PhoneGUI[playerid][29], -1);
  488. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][29], 1);
  489. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][29], 1);
  490. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][29], 0);
  491.  
  492. PhoneGUI[playerid][30] = CreatePlayerTextDraw(playerid,622.000000, 249.000000, "_");
  493. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][30], 255);
  494. PlayerTextDrawFont(playerid,PhoneGUI[playerid][30], 1);
  495. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][30], 0.500000, 0.199998);
  496. PlayerTextDrawColor(playerid,PhoneGUI[playerid][30], -1);
  497. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][30], 0);
  498. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][30], 1);
  499. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][30], 1);
  500. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][30], 1);
  501. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][30], -1);
  502. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][30], 617.000000, -1.000000);
  503. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][30], 0);
  504.  
  505. PhoneGUI[playerid][31] = CreatePlayerTextDraw(playerid,547.000000, 276.000000, "Error:404 ~n~Page not found!");
  506. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][31], 255);
  507. PlayerTextDrawFont(playerid,PhoneGUI[playerid][31], 2);
  508. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][31], 0.189998, 1.100000);
  509. PlayerTextDrawColor(playerid,PhoneGUI[playerid][31], -1);
  510. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][31], 1);
  511. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][31], 1);
  512. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][31], 0);
  513.  
  514. PhoneGUI[playerid][32] = CreatePlayerTextDraw(playerid,616.000000, 250.000000, "_");
  515. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][32], 255);
  516. PlayerTextDrawFont(playerid,PhoneGUI[playerid][32], 1);
  517. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][32], 0.500000, 0.099998);
  518. PlayerTextDrawColor(playerid,PhoneGUI[playerid][32], -1);
  519. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][32], 0);
  520. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][32], 1);
  521. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][32], 1);
  522. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][32], 1);
  523. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][32], -1);
  524. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][32], 616.000000, -1.000000);
  525. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][32], 0);
  526.  
  527. PhoneGUI[playerid][33] = CreatePlayerTextDraw(playerid,545.000000, 249.000000, "_");
  528. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][33], 255);
  529. PlayerTextDrawFont(playerid,PhoneGUI[playerid][33], 1);
  530. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][33], 0.500000, 0.199998);
  531. PlayerTextDrawColor(playerid,PhoneGUI[playerid][33], -1);
  532. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][33], 0);
  533. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][33], 1);
  534. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][33], 1);
  535. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][33], 1);
  536. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][33], 102);
  537. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][33], 554.000000, -1.000000);
  538. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][33], 0);
  539.  
  540. PhoneGUI[playerid][34] = CreatePlayerTextDraw(playerid,545.000000, 249.000000, "_");
  541. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][34], 255);
  542. PlayerTextDrawFont(playerid,PhoneGUI[playerid][34], 1);
  543. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][34], 0.500000, 0.199998);
  544. PlayerTextDrawColor(playerid,PhoneGUI[playerid][34], -1);
  545. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][34], 0);
  546. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][34], 1);
  547. PlayerTextDrawSetShadow(playerid,PhoneGUI[playerid][34], 1);
  548. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][34], 1);
  549. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][34], -1);
  550. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][34], 548.000000, -1.000000);
  551. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][34], 0);
  552.  
  553. PhoneGUI[playerid][35] = CreatePlayerTextDraw(playerid,544.000000, 349.000000, "~h~~g~Select");
  554. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][35], 255);
  555. PlayerTextDrawFont(playerid,PhoneGUI[playerid][35], 1);
  556. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][35], 0.200000, 1.000000);
  557. PlayerTextDrawColor(playerid,PhoneGUI[playerid][35], -1);
  558. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][35], 1);
  559. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][35], 1);
  560. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][35], 0);
  561.  
  562. PhoneGUI[playerid][36] = CreatePlayerTextDraw(playerid,605.000000, 349.000000, "~h~~r~Back");
  563. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][36], 255);
  564. PlayerTextDrawFont(playerid,PhoneGUI[playerid][36], 1);
  565. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][36], 0.200000, 1.000000);
  566. PlayerTextDrawColor(playerid,PhoneGUI[playerid][36], -1);
  567. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][36], 1);
  568. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][36], 1);
  569. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][36], 1);
  570. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][36], 0);
  571. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][36], 620.000000, 8.000000);
  572. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][36], 1);
  573.  
  574. PhoneGUI[playerid][37] = CreatePlayerTextDraw(playerid,549.000000, 261.000000, "Call");
  575. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][37], 255);
  576. PlayerTextDrawFont(playerid,PhoneGUI[playerid][37], 2);
  577. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][37], 0.209999, 1.100000);
  578. PlayerTextDrawColor(playerid,PhoneGUI[playerid][37], -1);
  579. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][37], 1);
  580. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][37], 1);
  581. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][37], 1);
  582. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][37], 0);
  583. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][37], 571.000000, 10.000000);
  584. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][37], 1);
  585.  
  586. PhoneGUI[playerid][38] = CreatePlayerTextDraw(playerid,549.000000, 274.000000, "SMS");
  587. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][38], 255);
  588. PlayerTextDrawFont(playerid,PhoneGUI[playerid][38], 2);
  589. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][38], 0.209999, 1.100000);
  590. PlayerTextDrawColor(playerid,PhoneGUI[playerid][38], -1);
  591. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][38], 1);
  592. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][38], 1);
  593. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][38], 1);
  594. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][38], 0);
  595. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][38], 567.000000, 10.000000);
  596. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][38], 1);
  597.  
  598. PhoneGUI[playerid][39] = CreatePlayerTextDraw(playerid,549.000000, 291.000000, "Add Contacts");
  599. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][39], 255);
  600. PlayerTextDrawFont(playerid,PhoneGUI[playerid][39], 2);
  601. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][39], 0.209999, 1.100000);
  602. PlayerTextDrawColor(playerid,PhoneGUI[playerid][39], -1);
  603. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][39], 1);
  604. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][39], 1);
  605. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][39], 1);
  606. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][39], 0);
  607. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][39], 617.000000, 10.000000);
  608. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][39], 1);
  609.  
  610. PhoneGUI[playerid][40] = CreatePlayerTextDraw(playerid,549.000000, 304.000000, "List Contacts");
  611. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][40], 255);
  612. PlayerTextDrawFont(playerid,PhoneGUI[playerid][40], 2);
  613. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][40], 0.209999, 1.100000);
  614. PlayerTextDrawColor(playerid,PhoneGUI[playerid][40], -1);
  615. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][40], 1);
  616. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][40], 1);
  617. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][40], 1);
  618. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][40], 0);
  619. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][40], 617.000000, 10.000000);
  620. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][40], 1);
  621.  
  622. PhoneGUI[playerid][41] = CreatePlayerTextDraw(playerid,549.000000, 319.000000, "Camera");
  623. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][41], 255);
  624. PlayerTextDrawFont(playerid,PhoneGUI[playerid][41], 2);
  625. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][41], 0.209999, 1.100000);
  626. PlayerTextDrawColor(playerid,PhoneGUI[playerid][41], -1);
  627. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][41], 1);
  628. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][41], 1);
  629. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][41], 1);
  630. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][41], 0);
  631. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][41], 585.000000, 10.000000);
  632. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][41], 1);
  633.  
  634. PhoneGUI[playerid][42] = CreatePlayerTextDraw(playerid,549.000000, 333.000000, "Internet");
  635. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][42], 255);
  636. PlayerTextDrawFont(playerid,PhoneGUI[playerid][42], 2);
  637. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][42], 0.209999, 1.100000);
  638. PlayerTextDrawColor(playerid,PhoneGUI[playerid][42], -1);
  639. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][42], 1);
  640. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][42], 1);
  641. PlayerTextDrawUseBox(playerid,PhoneGUI[playerid][42], 1);
  642. PlayerTextDrawBoxColor(playerid,PhoneGUI[playerid][42], 0);
  643. PlayerTextDrawTextSize(playerid,PhoneGUI[playerid][42], 592.000000, 10.000000);
  644. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][42], 1);
  645.  
  646. PhoneGUI[playerid][43] = CreatePlayerTextDraw(playerid,553.000000, 291.000000, "Roleplay");
  647. PlayerTextDrawBackgroundColor(playerid,PhoneGUI[playerid][43], 255);
  648. PlayerTextDrawFont(playerid,PhoneGUI[playerid][43], 2);
  649. PlayerTextDrawLetterSize(playerid,PhoneGUI[playerid][43], 0.259999, 1.399999);
  650. PlayerTextDrawColor(playerid,PhoneGUI[playerid][43], -1);
  651. PlayerTextDrawSetOutline(playerid,PhoneGUI[playerid][43], 1);
  652. PlayerTextDrawSetProportional(playerid,PhoneGUI[playerid][43], 1);
  653. PlayerTextDrawSetSelectable(playerid,PhoneGUI[playerid][43], 0);
  654. return 1;
  655. }
  656.  
  657. stock ShowPlayerPhone(playerid)
  658. {
  659. PlayerTextDrawShow(playerid, PhoneGUI[playerid][0]);
  660. PlayerTextDrawShow(playerid, PhoneGUI[playerid][1]);
  661. PlayerTextDrawShow(playerid, PhoneGUI[playerid][2]);
  662. PlayerTextDrawShow(playerid, PhoneGUI[playerid][3]);
  663. PlayerTextDrawShow(playerid, PhoneGUI[playerid][4]);
  664. PlayerTextDrawShow(playerid, PhoneGUI[playerid][5]);
  665. PlayerTextDrawShow(playerid, PhoneGUI[playerid][6]);
  666. PlayerTextDrawShow(playerid, PhoneGUI[playerid][7]);
  667. PlayerTextDrawShow(playerid, PhoneGUI[playerid][8]);
  668. PlayerTextDrawShow(playerid, PhoneGUI[playerid][9]);
  669. PlayerTextDrawShow(playerid, PhoneGUI[playerid][10]);
  670. PlayerTextDrawShow(playerid, PhoneGUI[playerid][11]);
  671. PlayerTextDrawShow(playerid, PhoneGUI[playerid][12]);
  672. PlayerTextDrawShow(playerid, PhoneGUI[playerid][13]);
  673. PlayerTextDrawShow(playerid, PhoneGUI[playerid][14]);
  674. PlayerTextDrawShow(playerid, PhoneGUI[playerid][15]);
  675. PlayerTextDrawShow(playerid, PhoneGUI[playerid][16]);
  676. PlayerTextDrawShow(playerid, PhoneGUI[playerid][17]);
  677. PlayerTextDrawShow(playerid, PhoneGUI[playerid][18]);
  678. PlayerTextDrawShow(playerid, PhoneGUI[playerid][19]);
  679. PlayerTextDrawShow(playerid, PhoneGUI[playerid][20]);
  680. PlayerTextDrawShow(playerid, PhoneGUI[playerid][21]);
  681. PlayerTextDrawShow(playerid, PhoneGUI[playerid][22]);
  682. PlayerTextDrawShow(playerid, PhoneGUI[playerid][23]);
  683. PlayerTextDrawShow(playerid, PhoneGUI[playerid][24]);
  684. PlayerTextDrawShow(playerid, PhoneGUI[playerid][25]);
  685. PlayerTextDrawShow(playerid, PhoneGUI[playerid][26]);
  686. PlayerTextDrawShow(playerid, PhoneGUI[playerid][27]);
  687. PlayerTextDrawShow(playerid, PhoneGUI[playerid][28]);
  688. PlayerTextDrawShow(playerid, PhoneGUI[playerid][29]);
  689. PlayerTextDrawShow(playerid, PhoneGUI[playerid][30]);
  690. PlayerTextDrawShow(playerid, PhoneGUI[playerid][32]);
  691. PlayerTextDrawShow(playerid, PhoneGUI[playerid][33]);
  692. PlayerTextDrawShow(playerid, PhoneGUI[playerid][34]);
  693. PlayerTextDrawShow(playerid, PhoneGUI[playerid][43]);
  694. return 1;
  695. }
  696.  
  697. stock HidePlayerPhone(playerid)
  698. {
  699. PlayerTextDrawHide(playerid, PhoneGUI[playerid][0]);
  700. PlayerTextDrawHide(playerid, PhoneGUI[playerid][1]);
  701. PlayerTextDrawHide(playerid, PhoneGUI[playerid][2]);
  702. PlayerTextDrawHide(playerid, PhoneGUI[playerid][3]);
  703. PlayerTextDrawHide(playerid, PhoneGUI[playerid][4]);
  704. PlayerTextDrawHide(playerid, PhoneGUI[playerid][5]);
  705. PlayerTextDrawHide(playerid, PhoneGUI[playerid][6]);
  706. PlayerTextDrawHide(playerid, PhoneGUI[playerid][7]);
  707. PlayerTextDrawHide(playerid, PhoneGUI[playerid][8]);
  708. PlayerTextDrawHide(playerid, PhoneGUI[playerid][9]);
  709. PlayerTextDrawHide(playerid, PhoneGUI[playerid][10]);
  710. PlayerTextDrawHide(playerid, PhoneGUI[playerid][11]);
  711. PlayerTextDrawHide(playerid, PhoneGUI[playerid][12]);
  712. PlayerTextDrawHide(playerid, PhoneGUI[playerid][13]);
  713. PlayerTextDrawHide(playerid, PhoneGUI[playerid][14]);
  714. PlayerTextDrawHide(playerid, PhoneGUI[playerid][15]);
  715. PlayerTextDrawHide(playerid, PhoneGUI[playerid][16]);
  716. PlayerTextDrawHide(playerid, PhoneGUI[playerid][17]);
  717. PlayerTextDrawHide(playerid, PhoneGUI[playerid][18]);
  718. PlayerTextDrawHide(playerid, PhoneGUI[playerid][19]);
  719. PlayerTextDrawHide(playerid, PhoneGUI[playerid][20]);
  720. PlayerTextDrawHide(playerid, PhoneGUI[playerid][21]);
  721. PlayerTextDrawHide(playerid, PhoneGUI[playerid][22]);
  722. PlayerTextDrawHide(playerid, PhoneGUI[playerid][23]);
  723. PlayerTextDrawHide(playerid, PhoneGUI[playerid][24]);
  724. PlayerTextDrawHide(playerid, PhoneGUI[playerid][25]);
  725. PlayerTextDrawHide(playerid, PhoneGUI[playerid][26]);
  726. PlayerTextDrawHide(playerid, PhoneGUI[playerid][27]);
  727. PlayerTextDrawHide(playerid, PhoneGUI[playerid][28]);
  728. PlayerTextDrawHide(playerid, PhoneGUI[playerid][29]);
  729. PlayerTextDrawHide(playerid, PhoneGUI[playerid][31]);
  730. PlayerTextDrawHide(playerid, PhoneGUI[playerid][30]);
  731. PlayerTextDrawHide(playerid, PhoneGUI[playerid][32]);
  732. PlayerTextDrawHide(playerid, PhoneGUI[playerid][33]);
  733. PlayerTextDrawHide(playerid, PhoneGUI[playerid][34]);
  734. PlayerTextDrawHide(playerid, PhoneGUI[playerid][43]);
  735. return 1;
  736. }
  737.  
  738. stock ShowPlayerPhoneMenu(playerid)
  739. {
  740. PlayerTextDrawHide(playerid, PhoneGUI[playerid][43]);
  741. PlayerTextDrawHide(playerid, PhoneGUI[playerid][29]);
  742. PlayerTextDrawHide(playerid, PhoneGUI[playerid][27]);
  743.  
  744. PlayerTextDrawShow(playerid, PhoneGUI[playerid][0]);
  745. PlayerTextDrawShow(playerid, PhoneGUI[playerid][1]);
  746. PlayerTextDrawShow(playerid, PhoneGUI[playerid][2]);
  747. PlayerTextDrawShow(playerid, PhoneGUI[playerid][3]);
  748. PlayerTextDrawShow(playerid, PhoneGUI[playerid][4]);
  749. PlayerTextDrawShow(playerid, PhoneGUI[playerid][5]);
  750. PlayerTextDrawShow(playerid, PhoneGUI[playerid][6]);
  751. PlayerTextDrawShow(playerid, PhoneGUI[playerid][7]);
  752. PlayerTextDrawShow(playerid, PhoneGUI[playerid][8]);
  753. PlayerTextDrawShow(playerid, PhoneGUI[playerid][9]);
  754. PlayerTextDrawShow(playerid, PhoneGUI[playerid][10]);
  755. PlayerTextDrawShow(playerid, PhoneGUI[playerid][11]);
  756. PlayerTextDrawShow(playerid, PhoneGUI[playerid][12]);
  757. PlayerTextDrawShow(playerid, PhoneGUI[playerid][13]);
  758. PlayerTextDrawShow(playerid, PhoneGUI[playerid][14]);
  759. PlayerTextDrawShow(playerid, PhoneGUI[playerid][15]);
  760. PlayerTextDrawShow(playerid, PhoneGUI[playerid][16]);
  761. PlayerTextDrawShow(playerid, PhoneGUI[playerid][17]);
  762. PlayerTextDrawShow(playerid, PhoneGUI[playerid][18]);
  763. PlayerTextDrawShow(playerid, PhoneGUI[playerid][19]);
  764. PlayerTextDrawShow(playerid, PhoneGUI[playerid][20]);
  765. PlayerTextDrawShow(playerid, PhoneGUI[playerid][21]);
  766. PlayerTextDrawShow(playerid, PhoneGUI[playerid][22]);
  767. PlayerTextDrawShow(playerid, PhoneGUI[playerid][23]);
  768. PlayerTextDrawShow(playerid, PhoneGUI[playerid][24]);
  769. PlayerTextDrawShow(playerid, PhoneGUI[playerid][25]);
  770. PlayerTextDrawShow(playerid, PhoneGUI[playerid][26]);
  771. PlayerTextDrawShow(playerid, PhoneGUI[playerid][28]);
  772. PlayerTextDrawShow(playerid, PhoneGUI[playerid][30]);
  773. PlayerTextDrawShow(playerid, PhoneGUI[playerid][32]);
  774. PlayerTextDrawShow(playerid, PhoneGUI[playerid][33]);
  775. PlayerTextDrawShow(playerid, PhoneGUI[playerid][34]);
  776. PlayerTextDrawShow(playerid, PhoneGUI[playerid][35]);
  777. PlayerTextDrawShow(playerid, PhoneGUI[playerid][36]);
  778. PlayerTextDrawShow(playerid, PhoneGUI[playerid][37]);
  779. PlayerTextDrawShow(playerid, PhoneGUI[playerid][38]);
  780. PlayerTextDrawShow(playerid, PhoneGUI[playerid][39]);
  781. PlayerTextDrawShow(playerid, PhoneGUI[playerid][40]);
  782. PlayerTextDrawShow(playerid, PhoneGUI[playerid][41]);
  783. PlayerTextDrawShow(playerid, PhoneGUI[playerid][42]);
  784. return 1;
  785. }
  786.  
  787. stock HidePlayerPhoneMenu(playerid)
  788. {
  789. PlayerTextDrawHide(playerid, PhoneGUI[playerid][35]);
  790. PlayerTextDrawHide(playerid, PhoneGUI[playerid][36]);
  791. PlayerTextDrawHide(playerid, PhoneGUI[playerid][37]);
  792. PlayerTextDrawHide(playerid, PhoneGUI[playerid][38]);
  793. PlayerTextDrawHide(playerid, PhoneGUI[playerid][39]);
  794. PlayerTextDrawHide(playerid, PhoneGUI[playerid][40]);
  795. PlayerTextDrawHide(playerid, PhoneGUI[playerid][41]);
  796. PlayerTextDrawHide(playerid, PhoneGUI[playerid][42]);
  797.  
  798.  
  799. PlayerTextDrawShow(playerid, PhoneGUI[playerid][0]);
  800. PlayerTextDrawShow(playerid, PhoneGUI[playerid][1]);
  801. PlayerTextDrawShow(playerid, PhoneGUI[playerid][2]);
  802. PlayerTextDrawShow(playerid, PhoneGUI[playerid][3]);
  803. PlayerTextDrawShow(playerid, PhoneGUI[playerid][4]);
  804. PlayerTextDrawShow(playerid, PhoneGUI[playerid][5]);
  805. PlayerTextDrawShow(playerid, PhoneGUI[playerid][6]);
  806. PlayerTextDrawShow(playerid, PhoneGUI[playerid][7]);
  807. PlayerTextDrawShow(playerid, PhoneGUI[playerid][8]);
  808. PlayerTextDrawShow(playerid, PhoneGUI[playerid][9]);
  809. PlayerTextDrawShow(playerid, PhoneGUI[playerid][10]);
  810. PlayerTextDrawShow(playerid, PhoneGUI[playerid][11]);
  811. PlayerTextDrawShow(playerid, PhoneGUI[playerid][12]);
  812. PlayerTextDrawShow(playerid, PhoneGUI[playerid][13]);
  813. PlayerTextDrawShow(playerid, PhoneGUI[playerid][14]);
  814. PlayerTextDrawShow(playerid, PhoneGUI[playerid][15]);
  815. PlayerTextDrawShow(playerid, PhoneGUI[playerid][16]);
  816. PlayerTextDrawShow(playerid, PhoneGUI[playerid][17]);
  817. PlayerTextDrawShow(playerid, PhoneGUI[playerid][18]);
  818. PlayerTextDrawShow(playerid, PhoneGUI[playerid][19]);
  819. PlayerTextDrawShow(playerid, PhoneGUI[playerid][20]);
  820. PlayerTextDrawShow(playerid, PhoneGUI[playerid][21]);
  821. PlayerTextDrawShow(playerid, PhoneGUI[playerid][22]);
  822. PlayerTextDrawShow(playerid, PhoneGUI[playerid][23]);
  823. PlayerTextDrawShow(playerid, PhoneGUI[playerid][24]);
  824. PlayerTextDrawShow(playerid, PhoneGUI[playerid][25]);
  825. PlayerTextDrawShow(playerid, PhoneGUI[playerid][26]);
  826. PlayerTextDrawShow(playerid, PhoneGUI[playerid][27]);
  827. PlayerTextDrawShow(playerid, PhoneGUI[playerid][28]);
  828. PlayerTextDrawShow(playerid, PhoneGUI[playerid][29]);
  829. PlayerTextDrawShow(playerid, PhoneGUI[playerid][30]);
  830. PlayerTextDrawShow(playerid, PhoneGUI[playerid][32]);
  831. PlayerTextDrawShow(playerid, PhoneGUI[playerid][33]);
  832. PlayerTextDrawShow(playerid, PhoneGUI[playerid][34]);
  833. PlayerTextDrawShow(playerid, PhoneGUI[playerid][43]);
  834. return 1;
  835. }
  836.  
  837. stock HideWholePhone(playerid)
  838. {
  839. PlayerTextDrawHide(playerid, PhoneGUI[playerid][35]);
  840. PlayerTextDrawHide(playerid, PhoneGUI[playerid][36]);
  841. PlayerTextDrawHide(playerid, PhoneGUI[playerid][37]);
  842. PlayerTextDrawHide(playerid, PhoneGUI[playerid][38]);
  843. PlayerTextDrawHide(playerid, PhoneGUI[playerid][39]);
  844. PlayerTextDrawHide(playerid, PhoneGUI[playerid][40]);
  845. PlayerTextDrawHide(playerid, PhoneGUI[playerid][41]);
  846. PlayerTextDrawHide(playerid, PhoneGUI[playerid][42]);
  847.  
  848.  
  849. PlayerTextDrawHide(playerid, PhoneGUI[playerid][0]);
  850. PlayerTextDrawHide(playerid, PhoneGUI[playerid][1]);
  851. PlayerTextDrawHide(playerid, PhoneGUI[playerid][2]);
  852. PlayerTextDrawHide(playerid, PhoneGUI[playerid][3]);
  853. PlayerTextDrawHide(playerid, PhoneGUI[playerid][4]);
  854. PlayerTextDrawHide(playerid, PhoneGUI[playerid][5]);
  855. PlayerTextDrawHide(playerid, PhoneGUI[playerid][6]);
  856. PlayerTextDrawHide(playerid, PhoneGUI[playerid][7]);
  857. PlayerTextDrawHide(playerid, PhoneGUI[playerid][8]);
  858. PlayerTextDrawHide(playerid, PhoneGUI[playerid][9]);
  859. PlayerTextDrawHide(playerid, PhoneGUI[playerid][10]);
  860. PlayerTextDrawHide(playerid, PhoneGUI[playerid][11]);
  861. PlayerTextDrawHide(playerid, PhoneGUI[playerid][12]);
  862. PlayerTextDrawHide(playerid, PhoneGUI[playerid][13]);
  863. PlayerTextDrawHide(playerid, PhoneGUI[playerid][14]);
  864. PlayerTextDrawHide(playerid, PhoneGUI[playerid][15]);
  865. PlayerTextDrawHide(playerid, PhoneGUI[playerid][16]);
  866. PlayerTextDrawHide(playerid, PhoneGUI[playerid][17]);
  867. PlayerTextDrawHide(playerid, PhoneGUI[playerid][18]);
  868. PlayerTextDrawHide(playerid, PhoneGUI[playerid][19]);
  869. PlayerTextDrawHide(playerid, PhoneGUI[playerid][20]);
  870. PlayerTextDrawHide(playerid, PhoneGUI[playerid][21]);
  871. PlayerTextDrawHide(playerid, PhoneGUI[playerid][22]);
  872. PlayerTextDrawHide(playerid, PhoneGUI[playerid][23]);
  873. PlayerTextDrawHide(playerid, PhoneGUI[playerid][24]);
  874. PlayerTextDrawHide(playerid, PhoneGUI[playerid][25]);
  875. PlayerTextDrawHide(playerid, PhoneGUI[playerid][26]);
  876. PlayerTextDrawHide(playerid, PhoneGUI[playerid][27]);
  877. PlayerTextDrawHide(playerid, PhoneGUI[playerid][28]);
  878. PlayerTextDrawHide(playerid, PhoneGUI[playerid][29]);
  879. PlayerTextDrawHide(playerid, PhoneGUI[playerid][30]);
  880. PlayerTextDrawHide(playerid, PhoneGUI[playerid][32]);
  881. PlayerTextDrawHide(playerid, PhoneGUI[playerid][33]);
  882. PlayerTextDrawHide(playerid, PhoneGUI[playerid][34]);
  883. PlayerTextDrawHide(playerid, PhoneGUI[playerid][43]);
  884. PlayerTextDrawHide(playerid, PhoneGUI[playerid][31]);
  885. return 1;
  886. }
  887. //============================================================
  888. //--->>> Commands
  889. //============================================================
  890. CMD:phone(playerid, params[])
  891. {
  892. if(PhoneShow[playerid] == false)
  893. {
  894. ShowPlayerPhone(playerid);
  895. PhoneShow[playerid] = true;
  896. PhoneLocked[playerid] = 1;
  897. SendClientMessage(playerid, -1, "DEBUG: Phone is showed up!");
  898. TogglePlayerControllable(playerid, 0);
  899. }
  900. else
  901. {
  902. HideWholePhone(playerid);
  903. PhoneShow[playerid] = false;
  904. PhoneLocked[playerid] = 0;
  905. SendClientMessage(playerid, -1, "DEBUG: Phone is hidden!");
  906. TogglePlayerControllable(playerid, 1);
  907. CancelSelectTextDraw(playerid);
  908. }
  909. return 1;
  910. }
  911.  
  912. CMD:sc(playerid, params[])
  913. {
  914. SelectTextDraw(playerid, 0xFFD900FF);
  915. return 1;
  916. }
Advertisement
Add Comment
Please, Sign In to add comment