Skripter11

TELEFON

Feb 16th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.26 KB | None | 0 0
  1. [quote]/*
  2.  
  3. */
  4.  
  5. #include <a_samp>
  6.  
  7.  
  8. #define loop(%0,%1,%2) for(new %2 = %0; %2 < %1; %2++)
  9.  
  10. new Text:TD_iPhone[26];
  11. new Text:TD_iPhone_Clock[2];
  12. new Text:TD_iPhone_Gallery;
  13. new Text:TD_iPhone_Time[3];
  14. new PlayerText:PTD_iPhone_Gallery[MAX_PLAYERS];
  15. new PlayerText:PTD_iPhone[37][MAX_PLAYERS];
  16. new Text:TD_iPhone_GPS;
  17. new PlayerText:PTD_iPhone_GPS[MAX_PLAYERS];
  18. new Text:TD_iPhone_Radio[2];
  19. new Text:TD_iPhone_Music[2];
  20. new Text:TD_iPhone_Map;
  21. new Text:TD_iPhone_Internet[2];
  22. new Text:TD_iPhone_Calculator[16];
  23. new PlayerText:PTD_iPhone_Calculator[MAX_PLAYERS];
  24. new Text:TD_iPhone_Call[13];
  25. new PlayerText:PTD_iPhone_Call[MAX_PLAYERS];
  26. new Text:TD_iPhone_CallYesNo[2];
  27.  
  28. new var1[MAX_PLAYERS][11];
  29. new var2[MAX_PLAYERS][11];
  30. new called[MAX_PLAYERS][11];
  31. new callto[MAX_PLAYERS];
  32.  
  33. new firstperson[MAX_PLAYERS];
  34. new iPhone_CC[4][MAX_PLAYERS];
  35. new iPhoneStatus[MAX_PLAYERS];
  36. new iPhoneCallStatus[MAX_PLAYERS];
  37. new MenuX[MAX_PLAYERS];
  38. new MenuY[MAX_PLAYERS];
  39. new UpdateIPHONETimer;
  40.  
  41. enum pInfo
  42. {
  43. PhoneNumber
  44. }
  45.  
  46. new PlayerInfo[MAX_PLAYERS][pInfo];
  47.  
  48. new Gallery[][] =
  49. {
  50. "loadsc1:loadsc1",
  51. "loadsc2:loadsc2",
  52. "loadsc3:loadsc3",
  53. "loadsc4:loadsc4",
  54. "loadsc5:loadsc5",
  55. "loadsc6:loadsc6",
  56. "loadsc7:loadsc7",
  57. "loadsc8:loadsc8",
  58. "loadsc9:loadsc9",
  59. "loadsc10:loadsc10",
  60. "loadsc11:loadsc11",
  61. "loadsc12:loadsc12",
  62. "loadsc13:loadsc13",
  63. "loadsc14:loadsc14"
  64.  
  65. };
  66.  
  67. new Radio[][] =
  68. {
  69. "http://somafm.com/tags.pls",
  70. "http://bbc.co.uk/radio/listen/live/r1.asx",
  71. "http://www.listenlive.eu/cadenacope.m3u",
  72. "http://onair-ha1.krone.at/kronehit-dance.mp3.m3u",
  73. "http://www.m2radio.fr/pls/m2club.m3u",
  74. "http://mp3.kataweb.it:8000/M2O.m3u",
  75. "http://www.listenlive.eu/vrtklara-low.m3u",
  76. "http://icecast4.play.cz/evropa2-64.mp3.m3u",
  77. "http://broadcast.infomaniak.net/nrj-low.mp3.m3u"
  78.  
  79. };
  80.  
  81. new Music[][] =
  82. {
  83. "https://dl.dropboxusercontent.com/s/nqxrnokp4zspsw5/Basto%20-%20Again%20and%20Again%20%28Original%20Mix%29.mp3",
  84. "https://dl.dropboxusercontent.com/s/ln10micl32ys6yj/Blasterjaxx%20%26amp%3B%20Badd%20Dimes%20-%20Titan%20%28Original%20Mix%29.mp3",
  85. "https://dl.dropboxusercontent.com/s/pj21s5kz5ad5k3d/DVBBS%20%26amp%3B%20Tony%20Junior%20-%20Immortal%20%28Original%20Mix%29.mp3",
  86. "https://dl.dropboxusercontent.com/s/g1iuqoot6z7qfn7/Martin%20Garrix%20-%20Proxy%20%28FREE%20DOWNLOAD%29.mp3",
  87. "https://dl.dropboxusercontent.com/s/68htnt08uzgceqr/Martin%20Garrix%20-%20Animals%20%28Original%20Mix%29.mp3",
  88. "https://dl.dropboxusercontent.com/s/nvzyebx9ydow2ow/Starkillers%20%26%20DJ%20BL3ND%20-%20Xception%20%28Official%20Music%20Video%29.mp3",
  89. "https://dl.dropboxusercontent.com/s/0iof8iei1qxdc4f/Starkillers%20%26amp%3B%20Inpetto%20-%20Game%20Over%20%28Original%20Mix%29.mp3"
  90.  
  91. };
  92.  
  93. enum zoneinfo
  94. {
  95. zone_name[32],
  96. Float:zone_minx,
  97. Float:zone_miny,
  98. Float:zone_minz,
  99. Float:zone_maxx,
  100. Float:zone_maxy,
  101. Float:zone_maxz
  102. }
  103. new zones[][zoneinfo] = {
  104. { "Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
  105. { "Las Venturas", 869.40, 596.30, -242.90, 2997.00, 2993.80, 900.00},
  106. { "Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
  107. { "Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
  108. { "Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
  109. { "San Fierro", -2997.40, -1115.50, -242.90, -1213.90, 1659.60, 900.00},
  110. { "Red County", -1213.90, -768.00, -242.90, 2997.00, 596.30, 900.00},
  111. { "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
  112. { "Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}
  113. };
  114.  
  115. forward UpdateIphone();
  116.  
  117. public OnFilterScriptInit()
  118. {
  119. TD_iPhone[0] = TextDrawCreate(507.000183, 195.792556, "ld_pool:ball");
  120. TextDrawLetterSize(TD_iPhone[0], 0.000000, 0.000000);
  121. TextDrawTextSize(TD_iPhone[0], 16.000000, 16.000000);
  122. TextDrawAlignment(TD_iPhone[0], 1);
  123. TextDrawColor(TD_iPhone[0], -2139062017);
  124. TextDrawSetShadow(TD_iPhone[0], 0);
  125. TextDrawSetOutline(TD_iPhone[0], 0);
  126. TextDrawFont(TD_iPhone[0], 4);
  127.  
  128. TD_iPhone[1] = TextDrawCreate(506.666839, 404.199951, "ld_pool:ball");
  129. TextDrawLetterSize(TD_iPhone[1], 0.000000, 0.000000);
  130. TextDrawTextSize(TD_iPhone[1], 16.000000, -16.000000);
  131. TextDrawAlignment(TD_iPhone[1], 1);
  132. TextDrawColor(TD_iPhone[1], -2139062017);
  133. TextDrawSetShadow(TD_iPhone[1], 0);
  134. TextDrawSetOutline(TD_iPhone[1], 0);
  135. TextDrawFont(TD_iPhone[1], 4);
  136.  
  137. TD_iPhone[2] = TextDrawCreate(578.666870, 404.199951, "ld_pool:ball");
  138. TextDrawLetterSize(TD_iPhone[2], 0.000000, 0.000000);
  139. TextDrawTextSize(TD_iPhone[2], 16.000000, -16.000000);
  140. TextDrawAlignment(TD_iPhone[2], 1);
  141. TextDrawColor(TD_iPhone[2], -2139062017);
  142. TextDrawSetShadow(TD_iPhone[2], 0);
  143. TextDrawSetOutline(TD_iPhone[2], 0);
  144. TextDrawFont(TD_iPhone[2], 4);
  145.  
  146. TD_iPhone[3] = TextDrawCreate(578.666870, 195.792541, "ld_pool:ball");
  147. TextDrawLetterSize(TD_iPhone[3], 0.000000, 0.000000);
  148. TextDrawTextSize(TD_iPhone[3], 16.000000, 16.000000);
  149. TextDrawAlignment(TD_iPhone[3], 1);
  150. TextDrawColor(TD_iPhone[3], -2139062017);
  151. TextDrawSetShadow(TD_iPhone[3], 0);
  152. TextDrawSetOutline(TD_iPhone[3], 0);
  153. TextDrawFont(TD_iPhone[3], 4);
  154.  
  155. TD_iPhone[4] = TextDrawCreate(507.000061, 202.844375, "LD_SPAC:white");
  156. TextDrawLetterSize(TD_iPhone[4], 0.000000, 0.000000);
  157. TextDrawTextSize(TD_iPhone[4], 87.666656, 194.962951);
  158. TextDrawAlignment(TD_iPhone[4], 1);
  159. TextDrawColor(TD_iPhone[4], -2139062017);
  160. TextDrawSetShadow(TD_iPhone[4], 0);
  161. TextDrawSetOutline(TD_iPhone[4], 0);
  162. TextDrawFont(TD_iPhone[4], 4);
  163.  
  164. TD_iPhone[5] = TextDrawCreate(513.666564, 195.548095, "LD_SPAC:white");
  165. TextDrawLetterSize(TD_iPhone[5], 0.000000, 0.000000);
  166. TextDrawTextSize(TD_iPhone[5], 74.666641, 208.651809);
  167. TextDrawAlignment(TD_iPhone[5], 1);
  168. TextDrawColor(TD_iPhone[5], -2139062017);
  169. TextDrawSetShadow(TD_iPhone[5], 0);
  170. TextDrawSetOutline(TD_iPhone[5], 0);
  171. TextDrawFont(TD_iPhone[5], 4);
  172.  
  173. TD_iPhone[6] = TextDrawCreate(507.333496, 196.377746, "ld_pool:ball");
  174. TextDrawLetterSize(TD_iPhone[6], 0.000000, 0.000000);
  175. TextDrawTextSize(TD_iPhone[6], 16.000000, 16.000000);
  176. TextDrawAlignment(TD_iPhone[6], 1);
  177. TextDrawColor(TD_iPhone[6], 255);
  178. TextDrawSetShadow(TD_iPhone[6], 0);
  179. TextDrawSetOutline(TD_iPhone[6], 0);
  180. TextDrawFont(TD_iPhone[6], 4);
  181.  
  182. TD_iPhone[7] = TextDrawCreate(507.333496, 403.540649, "ld_pool:ball");
  183. TextDrawLetterSize(TD_iPhone[7], 0.000000, 0.000000);
  184. TextDrawTextSize(TD_iPhone[7], 16.000000, -16.000000);
  185. TextDrawAlignment(TD_iPhone[7], 1);
  186. TextDrawColor(TD_iPhone[7], 255);
  187. TextDrawSetShadow(TD_iPhone[7], 0);
  188. TextDrawSetOutline(TD_iPhone[7], 0);
  189. TextDrawFont(TD_iPhone[7], 4);
  190.  
  191. TD_iPhone[8] = TextDrawCreate(578.000244, 403.540649, "ld_pool:ball");
  192. TextDrawLetterSize(TD_iPhone[8], 0.000000, 0.000000);
  193. TextDrawTextSize(TD_iPhone[8], 16.000000, -16.000000);
  194. TextDrawAlignment(TD_iPhone[8], 1);
  195. TextDrawColor(TD_iPhone[8], 255);
  196. TextDrawSetShadow(TD_iPhone[8], 0);
  197. TextDrawSetOutline(TD_iPhone[8], 0);
  198. TextDrawFont(TD_iPhone[8], 4);
  199.  
  200. TD_iPhone[9] = TextDrawCreate(578.000305, 196.377746, "ld_pool:ball");
  201. TextDrawLetterSize(TD_iPhone[9], 0.000000, 0.000000);
  202. TextDrawTextSize(TD_iPhone[9], 16.000000, 16.000000);
  203. TextDrawAlignment(TD_iPhone[9], 1);
  204. TextDrawColor(TD_iPhone[9], 255);
  205. TextDrawSetShadow(TD_iPhone[9], 0);
  206. TextDrawSetOutline(TD_iPhone[9], 0);
  207. TextDrawFont(TD_iPhone[9], 4);
  208.  
  209. TD_iPhone[10] = TextDrawCreate(514.666809, 196.622222, "LD_SPAC:white");
  210. TextDrawLetterSize(TD_iPhone[10], 0.000000, 0.000000);
  211. TextDrawTextSize(TD_iPhone[10], 72.000022, 206.992568);
  212. TextDrawAlignment(TD_iPhone[10], 1);
  213. TextDrawColor(TD_iPhone[10], 255);
  214. TextDrawSetShadow(TD_iPhone[10], 0);
  215. TextDrawSetOutline(TD_iPhone[10], 0);
  216. TextDrawFont(TD_iPhone[10], 4);
  217.  
  218. TD_iPhone[11] = TextDrawCreate(507.666656, 204.674133, "LD_SPAC:white");
  219. TextDrawLetterSize(TD_iPhone[11], 0.000000, 0.000000);
  220. TextDrawTextSize(TD_iPhone[11], 86.333419, 191.229660);
  221. TextDrawAlignment(TD_iPhone[11], 1);
  222. TextDrawColor(TD_iPhone[11], 255);
  223. TextDrawSetShadow(TD_iPhone[11], 0);
  224. TextDrawSetOutline(TD_iPhone[11], 0);
  225. TextDrawFont(TD_iPhone[11], 4);
  226.  
  227. TD_iPhone[12] = TextDrawCreate(511.333435, 221.925933, "LD_otb:blue");
  228. TextDrawLetterSize(TD_iPhone[12], 0.000000, 0.000000);
  229. TextDrawTextSize(TD_iPhone[12], 78.666633, 155.140731);
  230. TextDrawAlignment(TD_iPhone[12], 1);
  231. TextDrawColor(TD_iPhone[12], -1768515841);
  232. TextDrawSetShadow(TD_iPhone[12], 0);
  233. TextDrawSetOutline(TD_iPhone[12], 0);
  234. TextDrawFont(TD_iPhone[12], 4);
  235.  
  236. TD_iPhone[13] = TextDrawCreate(549.666809, 201.599945, "ld_pool:ball");
  237. TextDrawLetterSize(TD_iPhone[13], 0.000000, 0.000000);
  238. TextDrawTextSize(TD_iPhone[13], 3.333292, 4.148138);
  239. TextDrawAlignment(TD_iPhone[13], 1);
  240. TextDrawColor(TD_iPhone[13], -2139062142);
  241. TextDrawSetShadow(TD_iPhone[13], 0);
  242. TextDrawSetOutline(TD_iPhone[13], 0);
  243. TextDrawFont(TD_iPhone[13], 4);
  244.  
  245. TD_iPhone[14] = TextDrawCreate(544.999877, 209.896240, "ld_poke:cd1d");
  246. TextDrawLetterSize(TD_iPhone[14], 0.000000, 0.000000);
  247. TextDrawTextSize(TD_iPhone[14], 12.333331, 2.074084);
  248. TextDrawAlignment(TD_iPhone[14], 1);
  249. TextDrawColor(TD_iPhone[14], -2139062142);
  250. TextDrawSetShadow(TD_iPhone[14], 0);
  251. TextDrawSetOutline(TD_iPhone[14], 0);
  252. TextDrawFont(TD_iPhone[14], 4);
  253.  
  254. TD_iPhone[15] = TextDrawCreate(541.000366, 210.066589, "ld_pool:ball");
  255. TextDrawLetterSize(TD_iPhone[15], 0.000000, 0.000000);
  256. TextDrawTextSize(TD_iPhone[15], 1.333292, 1.244433);
  257. TextDrawAlignment(TD_iPhone[15], 1);
  258. TextDrawColor(TD_iPhone[15], -2139062142);
  259. TextDrawSetShadow(TD_iPhone[15], 0);
  260. TextDrawSetOutline(TD_iPhone[15], 0);
  261. TextDrawFont(TD_iPhone[15], 4);
  262.  
  263. TD_iPhone[16] = TextDrawCreate(543.333618, 380.311004, "ld_pool:ball");
  264. TextDrawLetterSize(TD_iPhone[16], 0.000000, 0.000000);
  265. TextDrawTextSize(TD_iPhone[16], 16.333269, 18.251844);
  266. TextDrawAlignment(TD_iPhone[16], 1);
  267. TextDrawColor(TD_iPhone[16], -1061109690);
  268. TextDrawSetShadow(TD_iPhone[16], 0);
  269. TextDrawSetOutline(TD_iPhone[16], 0);
  270. TextDrawFont(TD_iPhone[16], 4);
  271.  
  272. TD_iPhone[17] = TextDrawCreate(511.333496, 221.925994, "ld_plan:tvbase");
  273. TextDrawLetterSize(TD_iPhone[17], 0.000000, 0.000000);
  274. TextDrawTextSize(TD_iPhone[17], 78.666702, 9.540740);
  275. TextDrawAlignment(TD_iPhone[17], 1);
  276. TextDrawColor(TD_iPhone[17], -1);
  277. TextDrawSetShadow(TD_iPhone[17], 0);
  278. TextDrawSetOutline(TD_iPhone[17], 0);
  279. TextDrawFont(TD_iPhone[17], 4);
  280.  
  281. TD_iPhone[18] = TextDrawCreate(550.666687, 221.925918, "4G________________00:00");
  282. TextDrawLetterSize(TD_iPhone[18], 0.194333, 0.865778);
  283. TextDrawAlignment(TD_iPhone[18], 2);
  284. TextDrawColor(TD_iPhone[18], -1);
  285. TextDrawSetShadow(TD_iPhone[18], 0);
  286. TextDrawSetOutline(TD_iPhone[18], 0);
  287. TextDrawBackgroundColor(TD_iPhone[18], 51);
  288. TextDrawFont(TD_iPhone[18], 1);
  289. TextDrawSetProportional(TD_iPhone[18], 1);
  290.  
  291. TD_iPhone[19] = TextDrawCreate(549.999450, 233.125991, "00:00");
  292. TextDrawLetterSize(TD_iPhone[19], 0.460333, 2.666073);
  293. TextDrawAlignment(TD_iPhone[19], 2);
  294. TextDrawColor(TD_iPhone[19], -1);
  295. TextDrawSetShadow(TD_iPhone[19], 0);
  296. TextDrawSetOutline(TD_iPhone[19], 0);
  297. TextDrawBackgroundColor(TD_iPhone[19], 51);
  298. TextDrawFont(TD_iPhone[19], 2);
  299. TextDrawSetProportional(TD_iPhone[19], 1);
  300.  
  301. TD_iPhone[20] = TextDrawCreate(549.332702, 254.866653, "1 de enero");
  302. TextDrawLetterSize(TD_iPhone[20], 0.124999, 0.803554);
  303. TextDrawAlignment(TD_iPhone[20], 2);
  304. TextDrawColor(TD_iPhone[20], -1);
  305. TextDrawSetShadow(TD_iPhone[20], 0);
  306. TextDrawSetOutline(TD_iPhone[20], 0);
  307. TextDrawBackgroundColor(TD_iPhone[20], 51);
  308. TextDrawFont(TD_iPhone[20], 1);
  309. TextDrawSetProportional(TD_iPhone[20], 1);
  310.  
  311. TD_iPhone[21] = TextDrawCreate(549.999572, 342.148040, "Press ~g~Y ~w~to unlock");
  312. TextDrawLetterSize(TD_iPhone[21], 0.257666, 1.276443);
  313. TextDrawAlignment(TD_iPhone[21], 2);
  314. TextDrawColor(TD_iPhone[21], -1);
  315. TextDrawSetShadow(TD_iPhone[21], 0);
  316. TextDrawSetOutline(TD_iPhone[21], 0);
  317. TextDrawBackgroundColor(TD_iPhone[21], 51);
  318. TextDrawFont(TD_iPhone[21], 1);
  319. TextDrawSetProportional(TD_iPhone[21], 1);
  320.  
  321. TD_iPhone[22] = TextDrawCreate(511.333282, 231.466659, "ld_plan:tvbase");
  322. TextDrawLetterSize(TD_iPhone[22], 0.000000, 0.000000);
  323. TextDrawTextSize(TD_iPhone[22], 78.666664, 16.177804);
  324. TextDrawAlignment(TD_iPhone[22], 1);
  325. TextDrawColor(TD_iPhone[22], 8388863);
  326. TextDrawSetShadow(TD_iPhone[22], 0);
  327. TextDrawSetOutline(TD_iPhone[22], 0);
  328. TextDrawFont(TD_iPhone[22], 4);
  329.  
  330. TD_iPhone[23] = TextDrawCreate(511.333282, 231.466705, "LD_SPAC:white");
  331. TextDrawLetterSize(TD_iPhone[23], 0.000000, 0.000000);
  332. TextDrawTextSize(TD_iPhone[23], 78.666656, 1.659255);
  333. TextDrawAlignment(TD_iPhone[23], 1);
  334. TextDrawColor(TD_iPhone[23], 16777215);
  335. TextDrawSetShadow(TD_iPhone[23], 0);
  336. TextDrawSetOutline(TD_iPhone[23], 0);
  337. TextDrawFont(TD_iPhone[23], 4);
  338.  
  339. TD_iPhone[24] = TextDrawCreate(511.333282, 247.814788, "LD_SPAC:white");
  340. TextDrawLetterSize(TD_iPhone[24], 0.000000, 0.000000);
  341. TextDrawTextSize(TD_iPhone[24], 78.666656, 1.659255);
  342. TextDrawAlignment(TD_iPhone[24], 1);
  343. TextDrawColor(TD_iPhone[24], 16777215);
  344. TextDrawSetShadow(TD_iPhone[24], 0);
  345. TextDrawSetOutline(TD_iPhone[24], 0);
  346. TextDrawFont(TD_iPhone[24], 4);
  347.  
  348. TD_iPhone[25] = TextDrawCreate(511.666900, 344.296508, "ld_plan:tvbase");
  349. TextDrawLetterSize(TD_iPhone[25], 0.000000, 0.000000);
  350. TextDrawTextSize(TD_iPhone[25], 78.333389, 33.185237);
  351. TextDrawAlignment(TD_iPhone[25], 1);
  352. TextDrawColor(TD_iPhone[25], -1);
  353. TextDrawSetShadow(TD_iPhone[25], 0);
  354. TextDrawSetOutline(TD_iPhone[25], 0);
  355. TextDrawFont(TD_iPhone[25], 4);
  356.  
  357. //Clock
  358. TD_iPhone_Clock[0] = TextDrawCreate(549.633178, 252.551788, "00:00");
  359. TextDrawLetterSize(TD_iPhone_Clock[0], 0.499667, 2.861037);
  360. TextDrawAlignment(TD_iPhone_Clock[0], 2);
  361. TextDrawColor(TD_iPhone_Clock[0], -1);
  362. TextDrawSetShadow(TD_iPhone_Clock[0], 0);
  363. TextDrawSetOutline(TD_iPhone_Clock[0], 0);
  364. TextDrawBackgroundColor(TD_iPhone_Clock[0], 51);
  365. TextDrawFont(TD_iPhone_Clock[0], 2);
  366. TextDrawSetProportional(TD_iPhone_Clock[0], 1);
  367.  
  368. TD_iPhone_Clock[1] = TextDrawCreate(549.066528, 277.052032, "1 of enero of 1999");
  369. TextDrawLetterSize(TD_iPhone_Clock[1], 0.124999, 0.803554);
  370. TextDrawAlignment(TD_iPhone_Clock[1], 2);
  371. TextDrawColor(TD_iPhone_Clock[1], -1);
  372. TextDrawSetShadow(TD_iPhone_Clock[1], 0);
  373. TextDrawSetOutline(TD_iPhone_Clock[1], 0);
  374. TextDrawBackgroundColor(TD_iPhone_Clock[1], 51);
  375. TextDrawFont(TD_iPhone_Clock[1], 1);
  376. TextDrawSetProportional(TD_iPhone_Clock[1], 1);
  377.  
  378. //Galeria
  379. TD_iPhone_Gallery = TextDrawCreate(542.000122, 340.977722, "~<~_Sin titulo.png_~>~");
  380. TextDrawLetterSize(TD_iPhone_Gallery, 0.202333, 1.069037);
  381. TextDrawAlignment(TD_iPhone_Gallery, 2);
  382. TextDrawColor(TD_iPhone_Gallery, -1);
  383. TextDrawSetShadow(TD_iPhone_Gallery, 0);
  384. TextDrawSetOutline(TD_iPhone_Gallery, 1);
  385. TextDrawBackgroundColor(TD_iPhone_Gallery, 255);
  386. TextDrawFont(TD_iPhone_Gallery, 1);
  387. TextDrawSetProportional(TD_iPhone_Gallery, 1);
  388.  
  389. //Clima
  390. TD_iPhone_Time[0] = TextDrawCreate(582.999938, 335.585296, "Sunny");
  391. TextDrawLetterSize(TD_iPhone_Time[0], 0.236999, 0.998518);
  392. TextDrawAlignment(TD_iPhone_Time[0], 3);
  393. TextDrawColor(TD_iPhone_Time[0], -1);
  394. TextDrawSetShadow(TD_iPhone_Time[0], 0);
  395. TextDrawSetOutline(TD_iPhone_Time[0], 1);
  396. TextDrawBackgroundColor(TD_iPhone_Time[0], 255);
  397. TextDrawFont(TD_iPhone_Time[0], 1);
  398. TextDrawSetProportional(TD_iPhone_Time[0], 1);
  399.  
  400. TD_iPhone_Time[1] = TextDrawCreate(518.333312, 258.844390, "LD_SPAC:white");
  401. TextDrawLetterSize(TD_iPhone_Time[1], 0.000000, 0.000000);
  402. TextDrawTextSize(TD_iPhone_Time[1], 64.666687, 72.177795);
  403. TextDrawAlignment(TD_iPhone_Time[1], 1);
  404. TextDrawColor(TD_iPhone_Time[1], -1);
  405. TextDrawSetShadow(TD_iPhone_Time[1], 0);
  406. TextDrawSetOutline(TD_iPhone_Time[1], 0);
  407. TextDrawFont(TD_iPhone_Time[1], 4);
  408.  
  409. TD_iPhone_Time[2] = TextDrawCreate(555.000000, 323.140777, "wheater.com");
  410. TextDrawLetterSize(TD_iPhone_Time[2], 0.127999, 0.687407);
  411. TextDrawAlignment(TD_iPhone_Time[2], 1);
  412. TextDrawColor(TD_iPhone_Time[2], 255);
  413. TextDrawSetShadow(TD_iPhone_Time[2], 0);
  414. TextDrawSetOutline(TD_iPhone_Time[2], 0);
  415. TextDrawBackgroundColor(TD_iPhone_Time[2], 51);
  416. TextDrawFont(TD_iPhone_Time[2], 1);
  417. TextDrawSetProportional(TD_iPhone_Time[2], 1);
  418.  
  419. //GPS
  420. TD_iPhone_GPS = TextDrawCreate(547.666870, 253.036956, "You are here:");
  421. TextDrawLetterSize(TD_iPhone_GPS, 0.188666, 0.944592);
  422. TextDrawAlignment(TD_iPhone_GPS, 2);
  423. TextDrawColor(TD_iPhone_GPS, -1);
  424. TextDrawSetShadow(TD_iPhone_GPS, 0);
  425. TextDrawSetOutline(TD_iPhone_GPS, 1);
  426. TextDrawBackgroundColor(TD_iPhone_GPS, 255);
  427. TextDrawFont(TD_iPhone_GPS, 1);
  428. TextDrawSetProportional(TD_iPhone_GPS, 1);
  429.  
  430. //Radio
  431. TD_iPhone_Radio[0] = TextDrawCreate(542.333251, 258.844360, "~<~ RADIO ~>~");
  432. TextDrawLetterSize(TD_iPhone_Radio[0], 0.265333, 1.085629);
  433. TextDrawAlignment(TD_iPhone_Radio[0], 2);
  434. TextDrawColor(TD_iPhone_Radio[0], -1);
  435. TextDrawSetShadow(TD_iPhone_Radio[0], 0);
  436. TextDrawSetOutline(TD_iPhone_Radio[0], 0);
  437. TextDrawBackgroundColor(TD_iPhone_Radio[0], 51);
  438. TextDrawFont(TD_iPhone_Radio[0], 1);
  439. TextDrawSetProportional(TD_iPhone_Radio[0], 1);
  440.  
  441. TD_iPhone_Radio[1] = TextDrawCreate(550.999938, 353.592559, "Use ~g~Y~w~ to off");
  442. TextDrawLetterSize(TD_iPhone_Radio[1], 0.227000, 1.006814);
  443. TextDrawAlignment(TD_iPhone_Radio[1], 2);
  444. TextDrawColor(TD_iPhone_Radio[1], -1);
  445. TextDrawSetShadow(TD_iPhone_Radio[1], 0);
  446. TextDrawSetOutline(TD_iPhone_Radio[1], 0);
  447. TextDrawBackgroundColor(TD_iPhone_Radio[1], 51);
  448. TextDrawFont(TD_iPhone_Radio[1], 1);
  449. TextDrawSetProportional(TD_iPhone_Radio[1], 1);
  450.  
  451. //Musica
  452. TD_iPhone_Music[0] = TextDrawCreate(542.333251, 258.844360, "~<~ MUSIC ~>~");
  453. TextDrawLetterSize(TD_iPhone_Music[0], 0.265333, 1.085629);
  454. TextDrawAlignment(TD_iPhone_Music[0], 2);
  455. TextDrawColor(TD_iPhone_Music[0], -1);
  456. TextDrawSetShadow(TD_iPhone_Music[0], 0);
  457. TextDrawSetOutline(TD_iPhone_Music[0], 0);
  458. TextDrawBackgroundColor(TD_iPhone_Music[0], 51);
  459. TextDrawFont(TD_iPhone_Music[0], 1);
  460. TextDrawSetProportional(TD_iPhone_Music[0], 1);
  461.  
  462. TD_iPhone_Music[1] = TextDrawCreate(550.999938, 353.592559, "Use ~g~Y~w~ to stop");
  463. TextDrawLetterSize(TD_iPhone_Music[1], 0.227000, 1.006814);
  464. TextDrawAlignment(TD_iPhone_Music[1], 2);
  465. TextDrawColor(TD_iPhone_Music[1], -1);
  466. TextDrawSetShadow(TD_iPhone_Music[1], 0);
  467. TextDrawSetOutline(TD_iPhone_Music[1], 0);
  468. TextDrawBackgroundColor(TD_iPhone_Music[1], 51);
  469. TextDrawFont(TD_iPhone_Music[1], 1);
  470. TextDrawSetProportional(TD_iPhone_Music[1], 1);
  471.  
  472. //Mapa
  473. TD_iPhone_Map = TextDrawCreate(511.266815, 249.548080, "samaps:map");
  474. TextDrawLetterSize(TD_iPhone_Map, 0.000000, 0.000000);
  475. TextDrawTextSize(TD_iPhone_Map, 78.666656, 126.518585);
  476. TextDrawAlignment(TD_iPhone_Map, 1);
  477. TextDrawColor(TD_iPhone_Map, -1);
  478. TextDrawSetShadow(TD_iPhone_Map, 0);
  479. TextDrawSetOutline(TD_iPhone_Map, 0);
  480. TextDrawFont(TD_iPhone_Map, 4);
  481.  
  482. //Internet
  483. TD_iPhone_Internet[0] = TextDrawCreate(550.666748, 326.459228, "Service maintenance...~n~Sorry");
  484. TextDrawLetterSize(TD_iPhone_Internet[0], 0.151000, 0.836741);
  485. TextDrawAlignment(TD_iPhone_Internet[0], 2);
  486. TextDrawColor(TD_iPhone_Internet[0], -1);
  487. TextDrawSetShadow(TD_iPhone_Internet[0], 0);
  488. TextDrawSetOutline(TD_iPhone_Internet[0], 1);
  489. TextDrawBackgroundColor(TD_iPhone_Internet[0], 255);
  490. TextDrawFont(TD_iPhone_Internet[0], 1);
  491. TextDrawSetProportional(TD_iPhone_Internet[0], 1);
  492.  
  493. TD_iPhone_Internet[1] = TextDrawCreate(515.333374, 261.748046, "404");
  494. TextDrawLetterSize(TD_iPhone_Internet[1], 0.858666, 7.237334);
  495. TextDrawAlignment(TD_iPhone_Internet[1], 1);
  496. TextDrawColor(TD_iPhone_Internet[1], -1);
  497. TextDrawSetShadow(TD_iPhone_Internet[1], 0);
  498. TextDrawSetOutline(TD_iPhone_Internet[1], 0);
  499. TextDrawBackgroundColor(TD_iPhone_Internet[1], 51);
  500. TextDrawFont(TD_iPhone_Internet[1], 2);
  501. TextDrawSetProportional(TD_iPhone_Internet[1], 1);
  502.  
  503. //Calculadora
  504. TD_iPhone_Calculator[0] = TextDrawCreate(522.900268, 354.604370, "0");
  505. TextDrawLetterSize(TD_iPhone_Calculator[0], 0.271333, 1.359405);
  506. TextDrawTextSize(TD_iPhone_Calculator[0], 10.0, 10.370368);
  507. TextDrawAlignment(TD_iPhone_Calculator[0], 2);
  508. TextDrawColor(TD_iPhone_Calculator[0], -1);
  509. TextDrawUseBox(TD_iPhone_Calculator[0], true);
  510. TextDrawBoxColor(TD_iPhone_Calculator[0], -2139062017);
  511. TextDrawSetShadow(TD_iPhone_Calculator[0], 0);
  512. TextDrawSetOutline(TD_iPhone_Calculator[0], 0);
  513. TextDrawBackgroundColor(TD_iPhone_Calculator[0], 51);
  514. TextDrawFont(TD_iPhone_Calculator[0], 1);
  515. TextDrawSetProportional(TD_iPhone_Calculator[0], 1);
  516. TextDrawSetSelectable(TD_iPhone_Calculator[0], true);
  517.  
  518. TD_iPhone_Calculator[1] = TextDrawCreate(549.300354, 354.604370, "=");
  519. TextDrawLetterSize(TD_iPhone_Calculator[1], 0.271333, 1.359405);
  520. TextDrawTextSize(TD_iPhone_Calculator[1], 51.000000, 29.037044);
  521. TextDrawAlignment(TD_iPhone_Calculator[1], 2);
  522. TextDrawColor(TD_iPhone_Calculator[1], -1);
  523. TextDrawUseBox(TD_iPhone_Calculator[1], true);
  524. TextDrawBoxColor(TD_iPhone_Calculator[1], -2139062017);
  525. TextDrawSetShadow(TD_iPhone_Calculator[1], 0);
  526. TextDrawSetOutline(TD_iPhone_Calculator[1], 0);
  527. TextDrawBackgroundColor(TD_iPhone_Calculator[1], 51);
  528. TextDrawFont(TD_iPhone_Calculator[1], 1);
  529. TextDrawSetProportional(TD_iPhone_Calculator[1], 1);
  530. TextDrawSetSelectable(TD_iPhone_Calculator[1], true);
  531.  
  532. TD_iPhone_Calculator[2] = TextDrawCreate(522.900268, 333.204071, "1");
  533. TextDrawLetterSize(TD_iPhone_Calculator[2], 0.271333, 1.359405);
  534. TextDrawTextSize(TD_iPhone_Calculator[2], 10.0, 10.370368);
  535. TextDrawAlignment(TD_iPhone_Calculator[2], 2);
  536. TextDrawColor(TD_iPhone_Calculator[2], -1);
  537. TextDrawUseBox(TD_iPhone_Calculator[2], true);
  538. TextDrawBoxColor(TD_iPhone_Calculator[2], -2139062017);
  539. TextDrawSetShadow(TD_iPhone_Calculator[2], 0);
  540. TextDrawSetOutline(TD_iPhone_Calculator[2], 0);
  541. TextDrawBackgroundColor(TD_iPhone_Calculator[2], 51);
  542. TextDrawFont(TD_iPhone_Calculator[2], 1);
  543. TextDrawSetProportional(TD_iPhone_Calculator[2], 1);
  544. TextDrawSetSelectable(TD_iPhone_Calculator[2], true);
  545.  
  546. TD_iPhone_Calculator[3] = TextDrawCreate(540.233581, 333.204071, "2");
  547. TextDrawLetterSize(TD_iPhone_Calculator[3], 0.271333, 1.359405);
  548. TextDrawTextSize(TD_iPhone_Calculator[3], 10.0, 10.370368);
  549. TextDrawAlignment(TD_iPhone_Calculator[3], 2);
  550. TextDrawColor(TD_iPhone_Calculator[3], -1);
  551. TextDrawUseBox(TD_iPhone_Calculator[3], true);
  552. TextDrawBoxColor(TD_iPhone_Calculator[3], -2139062017);
  553. TextDrawSetShadow(TD_iPhone_Calculator[3], 0);
  554. TextDrawSetOutline(TD_iPhone_Calculator[3], 0);
  555. TextDrawBackgroundColor(TD_iPhone_Calculator[3], 51);
  556. TextDrawFont(TD_iPhone_Calculator[3], 1);
  557. TextDrawSetProportional(TD_iPhone_Calculator[3], 1);
  558. TextDrawSetSelectable(TD_iPhone_Calculator[3], true);
  559.  
  560. TD_iPhone_Calculator[4] = TextDrawCreate(557.900207, 333.204071, "3");
  561. TextDrawLetterSize(TD_iPhone_Calculator[4], 0.271333, 1.359405);
  562. TextDrawTextSize(TD_iPhone_Calculator[4], 10.0, 10.370368);
  563. TextDrawAlignment(TD_iPhone_Calculator[4], 2);
  564. TextDrawColor(TD_iPhone_Calculator[4], -1);
  565. TextDrawUseBox(TD_iPhone_Calculator[4], true);
  566. TextDrawBoxColor(TD_iPhone_Calculator[4], -2139062017);
  567. TextDrawSetShadow(TD_iPhone_Calculator[4], 0);
  568. TextDrawSetOutline(TD_iPhone_Calculator[4], 0);
  569. TextDrawBackgroundColor(TD_iPhone_Calculator[4], 51);
  570. TextDrawFont(TD_iPhone_Calculator[4], 1);
  571. TextDrawSetProportional(TD_iPhone_Calculator[4], 1);
  572. TextDrawSetSelectable(TD_iPhone_Calculator[4], true);
  573.  
  574. TD_iPhone_Calculator[5] = TextDrawCreate(522.900268, 311.803771, "4");
  575. TextDrawLetterSize(TD_iPhone_Calculator[5], 0.271333, 1.359405);
  576. TextDrawTextSize(TD_iPhone_Calculator[5], 10.0, 10.370368);
  577. TextDrawAlignment(TD_iPhone_Calculator[5], 2);
  578. TextDrawColor(TD_iPhone_Calculator[5], -1);
  579. TextDrawUseBox(TD_iPhone_Calculator[5], true);
  580. TextDrawBoxColor(TD_iPhone_Calculator[5], -2139062017);
  581. TextDrawSetShadow(TD_iPhone_Calculator[5], 0);
  582. TextDrawSetOutline(TD_iPhone_Calculator[5], 0);
  583. TextDrawBackgroundColor(TD_iPhone_Calculator[5], 51);
  584. TextDrawFont(TD_iPhone_Calculator[5], 1);
  585. TextDrawSetProportional(TD_iPhone_Calculator[5], 1);
  586. TextDrawSetSelectable(TD_iPhone_Calculator[5], true);
  587.  
  588. TD_iPhone_Calculator[6] = TextDrawCreate(540.233581, 311.803771, "5");
  589. TextDrawLetterSize(TD_iPhone_Calculator[6], 0.271333, 1.359405);
  590. TextDrawTextSize(TD_iPhone_Calculator[6], 10.0, 10.370368);
  591. TextDrawAlignment(TD_iPhone_Calculator[6], 2);
  592. TextDrawColor(TD_iPhone_Calculator[6], -1);
  593. TextDrawUseBox(TD_iPhone_Calculator[6], true);
  594. TextDrawBoxColor(TD_iPhone_Calculator[6], -2139062017);
  595. TextDrawSetShadow(TD_iPhone_Calculator[6], 0);
  596. TextDrawSetOutline(TD_iPhone_Calculator[6], 0);
  597. TextDrawBackgroundColor(TD_iPhone_Calculator[6], 51);
  598. TextDrawFont(TD_iPhone_Calculator[6], 1);
  599. TextDrawSetProportional(TD_iPhone_Calculator[6], 1);
  600. TextDrawSetSelectable(TD_iPhone_Calculator[6], true);
  601.  
  602. TD_iPhone_Calculator[7] = TextDrawCreate(557.900207, 311.803771, "6");
  603. TextDrawLetterSize(TD_iPhone_Calculator[7], 0.271333, 1.359405);
  604. TextDrawTextSize(TD_iPhone_Calculator[7], 10.0, 10.370368);
  605. TextDrawAlignment(TD_iPhone_Calculator[7], 2);
  606. TextDrawColor(TD_iPhone_Calculator[7], -1);
  607. TextDrawUseBox(TD_iPhone_Calculator[7], true);
  608. TextDrawBoxColor(TD_iPhone_Calculator[7], -2139062017);
  609. TextDrawSetShadow(TD_iPhone_Calculator[7], 0);
  610. TextDrawSetOutline(TD_iPhone_Calculator[7], 0);
  611. TextDrawBackgroundColor(TD_iPhone_Calculator[7], 51);
  612. TextDrawFont(TD_iPhone_Calculator[7], 1);
  613. TextDrawSetProportional(TD_iPhone_Calculator[7], 1);
  614. TextDrawSetSelectable(TD_iPhone_Calculator[7], true);
  615.  
  616. TD_iPhone_Calculator[8] = TextDrawCreate(522.900268, 290.403472, "7");
  617. TextDrawLetterSize(TD_iPhone_Calculator[8], 0.271333, 1.359405);
  618. TextDrawTextSize(TD_iPhone_Calculator[8], 10.0, 10.370368);
  619. TextDrawAlignment(TD_iPhone_Calculator[8], 2);
  620. TextDrawColor(TD_iPhone_Calculator[8], -1);
  621. TextDrawUseBox(TD_iPhone_Calculator[8], true);
  622. TextDrawBoxColor(TD_iPhone_Calculator[8], -2139062017);
  623. TextDrawSetShadow(TD_iPhone_Calculator[8], 0);
  624. TextDrawSetOutline(TD_iPhone_Calculator[8], 0);
  625. TextDrawBackgroundColor(TD_iPhone_Calculator[8], 51);
  626. TextDrawFont(TD_iPhone_Calculator[8], 1);
  627. TextDrawSetProportional(TD_iPhone_Calculator[8], 1);
  628. TextDrawSetSelectable(TD_iPhone_Calculator[8], true);
  629.  
  630. TD_iPhone_Calculator[9] = TextDrawCreate(540.233581, 290.403472, "8");
  631. TextDrawLetterSize(TD_iPhone_Calculator[9], 0.271333, 1.359405);
  632. TextDrawTextSize(TD_iPhone_Calculator[9], 10.0, 10.370368);
  633. TextDrawAlignment(TD_iPhone_Calculator[9], 2);
  634. TextDrawColor(TD_iPhone_Calculator[9], -1);
  635. TextDrawUseBox(TD_iPhone_Calculator[9], true);
  636. TextDrawBoxColor(TD_iPhone_Calculator[9], -2139062017);
  637. TextDrawSetShadow(TD_iPhone_Calculator[9], 0);
  638. TextDrawSetOutline(TD_iPhone_Calculator[9], 0);
  639. TextDrawBackgroundColor(TD_iPhone_Calculator[9], 51);
  640. TextDrawFont(TD_iPhone_Calculator[9], 1);
  641. TextDrawSetProportional(TD_iPhone_Calculator[9], 1);
  642. TextDrawSetSelectable(TD_iPhone_Calculator[9], true);
  643.  
  644. TD_iPhone_Calculator[10] = TextDrawCreate(557.900207, 290.403472, "9");
  645. TextDrawLetterSize(TD_iPhone_Calculator[10], 0.271333, 1.359405);
  646. TextDrawTextSize(TD_iPhone_Calculator[10], 10.0, 10.370368);
  647. TextDrawAlignment(TD_iPhone_Calculator[10], 2);
  648. TextDrawColor(TD_iPhone_Calculator[10], -1);
  649. TextDrawUseBox(TD_iPhone_Calculator[10], true);
  650. TextDrawBoxColor(TD_iPhone_Calculator[10], -2139062017);
  651. TextDrawSetShadow(TD_iPhone_Calculator[10], 0);
  652. TextDrawSetOutline(TD_iPhone_Calculator[10], 0);
  653. TextDrawBackgroundColor(TD_iPhone_Calculator[10], 51);
  654. TextDrawFont(TD_iPhone_Calculator[10], 1);
  655. TextDrawSetProportional(TD_iPhone_Calculator[10], 1);
  656. TextDrawSetSelectable(TD_iPhone_Calculator[10], true);
  657.  
  658. TD_iPhone_Calculator[11] = TextDrawCreate(577.899597, 290.403472, "/");
  659. TextDrawLetterSize(TD_iPhone_Calculator[11], 0.271333, 1.359405);
  660. TextDrawTextSize(TD_iPhone_Calculator[11], 10.0, 10.370368);
  661. TextDrawAlignment(TD_iPhone_Calculator[11], 2);
  662. TextDrawColor(TD_iPhone_Calculator[11], -1);
  663. TextDrawUseBox(TD_iPhone_Calculator[11], true);
  664. TextDrawBoxColor(TD_iPhone_Calculator[11], -2139062017);
  665. TextDrawSetShadow(TD_iPhone_Calculator[11], 0);
  666. TextDrawSetOutline(TD_iPhone_Calculator[11], 0);
  667. TextDrawBackgroundColor(TD_iPhone_Calculator[11], 51);
  668. TextDrawFont(TD_iPhone_Calculator[11], 1);
  669. TextDrawSetProportional(TD_iPhone_Calculator[11], 1);
  670. TextDrawSetSelectable(TD_iPhone_Calculator[11], true);
  671.  
  672. TD_iPhone_Calculator[12] = TextDrawCreate(577.899597, 311.803771, "x");
  673. TextDrawLetterSize(TD_iPhone_Calculator[12], 0.271333, 1.359405);
  674. TextDrawTextSize(TD_iPhone_Calculator[12], 10.0, 10.370368);
  675. TextDrawAlignment(TD_iPhone_Calculator[12], 2);
  676. TextDrawColor(TD_iPhone_Calculator[12], -1);
  677. TextDrawUseBox(TD_iPhone_Calculator[12], true);
  678. TextDrawBoxColor(TD_iPhone_Calculator[12], -2139062017);
  679. TextDrawSetShadow(TD_iPhone_Calculator[12], 0);
  680. TextDrawSetOutline(TD_iPhone_Calculator[12], 0);
  681. TextDrawBackgroundColor(TD_iPhone_Calculator[12], 51);
  682. TextDrawFont(TD_iPhone_Calculator[12], 1);
  683. TextDrawSetProportional(TD_iPhone_Calculator[12], 1);
  684. TextDrawSetSelectable(TD_iPhone_Calculator[12], true);
  685.  
  686. TD_iPhone_Calculator[13] = TextDrawCreate(577.899597, 333.204071, "-");
  687. TextDrawLetterSize(TD_iPhone_Calculator[13], 0.271333, 1.359405);
  688. TextDrawTextSize(TD_iPhone_Calculator[13], 10.0, 10.370368);
  689. TextDrawAlignment(TD_iPhone_Calculator[13], 2);
  690. TextDrawColor(TD_iPhone_Calculator[13], -1);
  691. TextDrawUseBox(TD_iPhone_Calculator[13], true);
  692. TextDrawBoxColor(TD_iPhone_Calculator[13], -2139062017);
  693. TextDrawSetShadow(TD_iPhone_Calculator[13], 0);
  694. TextDrawSetOutline(TD_iPhone_Calculator[13], 0);
  695. TextDrawBackgroundColor(TD_iPhone_Calculator[13], 51);
  696. TextDrawFont(TD_iPhone_Calculator[13], 1);
  697. TextDrawSetProportional(TD_iPhone_Calculator[13], 1);
  698. TextDrawSetSelectable(TD_iPhone_Calculator[13], true);
  699.  
  700. TD_iPhone_Calculator[14] = TextDrawCreate(577.899597, 354.604370, "+");
  701. TextDrawLetterSize(TD_iPhone_Calculator[14], 0.271333, 1.359405);
  702. TextDrawTextSize(TD_iPhone_Calculator[14], 10.0, 10.370368);
  703. TextDrawAlignment(TD_iPhone_Calculator[14], 2);
  704. TextDrawColor(TD_iPhone_Calculator[14], -1);
  705. TextDrawUseBox(TD_iPhone_Calculator[14], true);
  706. TextDrawBoxColor(TD_iPhone_Calculator[14], -2139062017);
  707. TextDrawSetShadow(TD_iPhone_Calculator[14], 0);
  708. TextDrawSetOutline(TD_iPhone_Calculator[14], 0);
  709. TextDrawBackgroundColor(TD_iPhone_Calculator[14], 51);
  710. TextDrawFont(TD_iPhone_Calculator[14], 1);
  711. TextDrawSetProportional(TD_iPhone_Calculator[14], 1);
  712. TextDrawSetSelectable(TD_iPhone_Calculator[14], true);
  713.  
  714. TD_iPhone_Calculator[15] = TextDrawCreate(516.666625, 255.940597, "LD_SPAC:white");
  715. TextDrawLetterSize(TD_iPhone_Calculator[15], 0.000000, 0.000000);
  716. TextDrawTextSize(TD_iPhone_Calculator[15], 67.999954, 26.962947);
  717. TextDrawAlignment(TD_iPhone_Calculator[15], 1);
  718. TextDrawColor(TD_iPhone_Calculator[15], -2139062017);
  719. TextDrawSetShadow(TD_iPhone_Calculator[15], 0);
  720. TextDrawSetOutline(TD_iPhone_Calculator[15], 0);
  721. TextDrawFont(TD_iPhone_Calculator[15], 4);
  722.  
  723. //Call
  724. TD_iPhone_Call[0] = TextDrawCreate(511.333312, 278.755523, "LD_SPAC:white");
  725. TextDrawLetterSize(TD_iPhone_Call[0], 0.000000, 0.000000);
  726. TextDrawTextSize(TD_iPhone_Call[0], 78.333259, 98.725921);
  727. TextDrawAlignment(TD_iPhone_Call[0], 1);
  728. TextDrawColor(TD_iPhone_Call[0], -2041184257);
  729. TextDrawSetShadow(TD_iPhone_Call[0], 0);
  730. TextDrawSetOutline(TD_iPhone_Call[0], 0);
  731. TextDrawFont(TD_iPhone_Call[0], 4);
  732.  
  733. TD_iPhone_Call[1] = TextDrawCreate(524.999877, 282.488739, "1");
  734. TextDrawLetterSize(TD_iPhone_Call[1], 0.449999, 1.600000);
  735. TextDrawTextSize(TD_iPhone_Call[1], 10.0, 22.399999);
  736. TextDrawAlignment(TD_iPhone_Call[1], 2);
  737. TextDrawColor(TD_iPhone_Call[1], -1);
  738. TextDrawUseBox(TD_iPhone_Call[1], true);
  739. TextDrawBoxColor(TD_iPhone_Call[1], 0);
  740. TextDrawSetShadow(TD_iPhone_Call[1], 0);
  741. TextDrawSetOutline(TD_iPhone_Call[1], 0);
  742. TextDrawBackgroundColor(TD_iPhone_Call[1], 51);
  743. TextDrawFont(TD_iPhone_Call[1], 1);
  744. TextDrawSetProportional(TD_iPhone_Call[1], 1);
  745. TextDrawSetSelectable(TD_iPhone_Call[1], true);
  746.  
  747. TD_iPhone_Call[2] = TextDrawCreate(549.999328, 282.244262, "2");
  748. TextDrawLetterSize(TD_iPhone_Call[2], 0.449999, 1.600000);
  749. TextDrawTextSize(TD_iPhone_Call[2], 10.0, 22.399999);
  750. TextDrawAlignment(TD_iPhone_Call[2], 2);
  751. TextDrawColor(TD_iPhone_Call[2], -1);
  752. TextDrawUseBox(TD_iPhone_Call[2], true);
  753. TextDrawBoxColor(TD_iPhone_Call[2], 0);
  754. TextDrawSetShadow(TD_iPhone_Call[2], 0);
  755. TextDrawSetOutline(TD_iPhone_Call[2], 0);
  756. TextDrawBackgroundColor(TD_iPhone_Call[2], 51);
  757. TextDrawFont(TD_iPhone_Call[2], 1);
  758. TextDrawSetProportional(TD_iPhone_Call[2], 1);
  759. TextDrawSetSelectable(TD_iPhone_Call[2], true);
  760.  
  761. TD_iPhone_Call[3] = TextDrawCreate(574.999084, 282.414581, "3");
  762. TextDrawLetterSize(TD_iPhone_Call[3], 0.449999, 1.600000);
  763. TextDrawTextSize(TD_iPhone_Call[3], 10.0, 22.399999);
  764. TextDrawAlignment(TD_iPhone_Call[3], 2);
  765. TextDrawColor(TD_iPhone_Call[3], -1);
  766. TextDrawUseBox(TD_iPhone_Call[3], true);
  767. TextDrawBoxColor(TD_iPhone_Call[3], 0);
  768. TextDrawSetShadow(TD_iPhone_Call[3], 0);
  769. TextDrawSetOutline(TD_iPhone_Call[3], 0);
  770. TextDrawBackgroundColor(TD_iPhone_Call[3], 51);
  771. TextDrawFont(TD_iPhone_Call[3], 1);
  772. TextDrawSetProportional(TD_iPhone_Call[3], 1);
  773. TextDrawSetSelectable(TD_iPhone_Call[3], true);
  774.  
  775. TD_iPhone_Call[4] = TextDrawCreate(524.999877, 304.229614, "4");
  776. TextDrawLetterSize(TD_iPhone_Call[4], 0.449999, 1.600000);
  777. TextDrawTextSize(TD_iPhone_Call[4], 10.0, 22.399999);
  778. TextDrawAlignment(TD_iPhone_Call[4], 2);
  779. TextDrawColor(TD_iPhone_Call[4], -1);
  780. TextDrawUseBox(TD_iPhone_Call[4], true);
  781. TextDrawBoxColor(TD_iPhone_Call[4], 0);
  782. TextDrawSetShadow(TD_iPhone_Call[4], 0);
  783. TextDrawSetOutline(TD_iPhone_Call[4], 0);
  784. TextDrawBackgroundColor(TD_iPhone_Call[4], 51);
  785. TextDrawFont(TD_iPhone_Call[4], 1);
  786. TextDrawSetProportional(TD_iPhone_Call[4], 1);
  787. TextDrawSetSelectable(TD_iPhone_Call[4], true);
  788.  
  789. TD_iPhone_Call[5] = TextDrawCreate(549.999328, 304.229614, "5");
  790. TextDrawLetterSize(TD_iPhone_Call[5], 0.449999, 1.600000);
  791. TextDrawTextSize(TD_iPhone_Call[5], 10.0, 22.399999);
  792. TextDrawAlignment(TD_iPhone_Call[5], 2);
  793. TextDrawColor(TD_iPhone_Call[5], -1);
  794. TextDrawUseBox(TD_iPhone_Call[5], true);
  795. TextDrawBoxColor(TD_iPhone_Call[5], 0);
  796. TextDrawSetShadow(TD_iPhone_Call[5], 0);
  797. TextDrawSetOutline(TD_iPhone_Call[5], 0);
  798. TextDrawBackgroundColor(TD_iPhone_Call[5], 51);
  799. TextDrawFont(TD_iPhone_Call[5], 1);
  800. TextDrawSetProportional(TD_iPhone_Call[5], 1);
  801. TextDrawSetSelectable(TD_iPhone_Call[5], true);
  802.  
  803. TD_iPhone_Call[6] = TextDrawCreate(574.999084, 304.229614, "6");
  804. TextDrawLetterSize(TD_iPhone_Call[6], 0.449999, 1.600000);
  805. TextDrawTextSize(TD_iPhone_Call[6], 10.0, 22.399999);
  806. TextDrawAlignment(TD_iPhone_Call[6], 2);
  807. TextDrawColor(TD_iPhone_Call[6], -1);
  808. TextDrawUseBox(TD_iPhone_Call[6], true);
  809. TextDrawBoxColor(TD_iPhone_Call[6], 0);
  810. TextDrawSetShadow(TD_iPhone_Call[6], 0);
  811. TextDrawSetOutline(TD_iPhone_Call[6], 0);
  812. TextDrawBackgroundColor(TD_iPhone_Call[6], 51);
  813. TextDrawFont(TD_iPhone_Call[6], 1);
  814. TextDrawSetProportional(TD_iPhone_Call[6], 1);
  815. TextDrawSetSelectable(TD_iPhone_Call[6], true);
  816.  
  817. TD_iPhone_Call[7] = TextDrawCreate(524.999877, 326.800170, "7");
  818. TextDrawLetterSize(TD_iPhone_Call[7], 0.449999, 1.600000);
  819. TextDrawTextSize(TD_iPhone_Call[7], 10.0, 22.399999);
  820. TextDrawAlignment(TD_iPhone_Call[7], 2);
  821. TextDrawColor(TD_iPhone_Call[7], -1);
  822. TextDrawUseBox(TD_iPhone_Call[7], true);
  823. TextDrawBoxColor(TD_iPhone_Call[7], 0);
  824. TextDrawSetShadow(TD_iPhone_Call[7], 0);
  825. TextDrawSetOutline(TD_iPhone_Call[7], 0);
  826. TextDrawBackgroundColor(TD_iPhone_Call[7], 51);
  827. TextDrawFont(TD_iPhone_Call[7], 1);
  828. TextDrawSetProportional(TD_iPhone_Call[7], 1);
  829. TextDrawSetSelectable(TD_iPhone_Call[7], true);
  830.  
  831. TD_iPhone_Call[8] = TextDrawCreate(549.999328, 326.800170, "8");
  832. TextDrawLetterSize(TD_iPhone_Call[8], 0.449999, 1.600000);
  833. TextDrawTextSize(TD_iPhone_Call[8], 10.0, 22.399999);
  834. TextDrawAlignment(TD_iPhone_Call[8], 2);
  835. TextDrawColor(TD_iPhone_Call[8], -1);
  836. TextDrawUseBox(TD_iPhone_Call[8], true);
  837. TextDrawBoxColor(TD_iPhone_Call[8], 0);
  838. TextDrawSetShadow(TD_iPhone_Call[8], 0);
  839. TextDrawSetOutline(TD_iPhone_Call[8], 0);
  840. TextDrawBackgroundColor(TD_iPhone_Call[8], 51);
  841. TextDrawFont(TD_iPhone_Call[8], 1);
  842. TextDrawSetProportional(TD_iPhone_Call[8], 1);
  843. TextDrawSetSelectable(TD_iPhone_Call[8], true);
  844.  
  845. TD_iPhone_Call[9] = TextDrawCreate(574.999084, 326.800170, "9");
  846. TextDrawLetterSize(TD_iPhone_Call[9], 0.449999, 1.600000);
  847. TextDrawTextSize(TD_iPhone_Call[9], 10.0, 22.399999);
  848. TextDrawAlignment(TD_iPhone_Call[9], 2);
  849. TextDrawColor(TD_iPhone_Call[9], -1);
  850. TextDrawUseBox(TD_iPhone_Call[9], true);
  851. TextDrawBoxColor(TD_iPhone_Call[9], 0);
  852. TextDrawSetShadow(TD_iPhone_Call[9], 0);
  853. TextDrawSetOutline(TD_iPhone_Call[9], 0);
  854. TextDrawBackgroundColor(TD_iPhone_Call[9], 51);
  855. TextDrawFont(TD_iPhone_Call[9], 1);
  856. TextDrawSetProportional(TD_iPhone_Call[9], 1);
  857. TextDrawSetSelectable(TD_iPhone_Call[9], true);
  858.  
  859. TD_iPhone_Call[10] = TextDrawCreate(549.999328, 349.370727, "0");
  860. TextDrawLetterSize(TD_iPhone_Call[10], 0.449999, 1.600000);
  861. TextDrawTextSize(TD_iPhone_Call[10], 10.0, 22.399999);
  862. TextDrawAlignment(TD_iPhone_Call[10], 2);
  863. TextDrawColor(TD_iPhone_Call[10], -1);
  864. TextDrawUseBox(TD_iPhone_Call[10], true);
  865. TextDrawBoxColor(TD_iPhone_Call[10], 0);
  866. TextDrawSetShadow(TD_iPhone_Call[10], 0);
  867. TextDrawSetOutline(TD_iPhone_Call[10], 0);
  868. TextDrawBackgroundColor(TD_iPhone_Call[10], 51);
  869. TextDrawFont(TD_iPhone_Call[10], 1);
  870. TextDrawSetProportional(TD_iPhone_Call[10], 1);
  871. TextDrawSetSelectable(TD_iPhone_Call[10], true);
  872.  
  873. TD_iPhone_Call[11] = TextDrawCreate(524.999877, 349.370727, "C");
  874. TextDrawLetterSize(TD_iPhone_Call[11], 0.449999, 1.600000);
  875. TextDrawTextSize(TD_iPhone_Call[11], 10.0, 22.399999);
  876. TextDrawAlignment(TD_iPhone_Call[11], 2);
  877. TextDrawColor(TD_iPhone_Call[11], -1);
  878. TextDrawUseBox(TD_iPhone_Call[11], true);
  879. TextDrawBoxColor(TD_iPhone_Call[11], 0);
  880. TextDrawSetShadow(TD_iPhone_Call[11], 0);
  881. TextDrawSetOutline(TD_iPhone_Call[11], 0);
  882. TextDrawBackgroundColor(TD_iPhone_Call[11], 51);
  883. TextDrawFont(TD_iPhone_Call[11], 1);
  884. TextDrawSetProportional(TD_iPhone_Call[11], 1);
  885. TextDrawSetSelectable(TD_iPhone_Call[11], true);
  886.  
  887. TD_iPhone_Call[12] = TextDrawCreate(574.999084, 349.370727, "D");
  888. TextDrawLetterSize(TD_iPhone_Call[12], 0.449999, 1.600000);
  889. TextDrawTextSize(TD_iPhone_Call[12], 10.0, 22.399999);
  890. TextDrawAlignment(TD_iPhone_Call[12], 2);
  891. TextDrawColor(TD_iPhone_Call[12], -1);
  892. TextDrawUseBox(TD_iPhone_Call[12], true);
  893. TextDrawBoxColor(TD_iPhone_Call[12], 0);
  894. TextDrawSetShadow(TD_iPhone_Call[12], 0);
  895. TextDrawSetOutline(TD_iPhone_Call[12], 0);
  896. TextDrawBackgroundColor(TD_iPhone_Call[12], 51);
  897. TextDrawFont(TD_iPhone_Call[12], 1);
  898. TextDrawSetProportional(TD_iPhone_Call[12], 1);
  899. TextDrawSetSelectable(TD_iPhone_Call[12], true);
  900.  
  901. //Call YES/NO
  902. TD_iPhone_CallYesNo[0] = TextDrawCreate(534.333129, 320.651794, "N");
  903. TextDrawLetterSize(TD_iPhone_CallYesNo[0], 0.449999, 1.600000);
  904. TextDrawTextSize(TD_iPhone_CallYesNo[0], 5.000000, 20.325927);
  905. TextDrawAlignment(TD_iPhone_CallYesNo[0], 2);
  906. TextDrawColor(TD_iPhone_CallYesNo[0], -1);
  907. TextDrawUseBox(TD_iPhone_CallYesNo[0], true);
  908. TextDrawBoxColor(TD_iPhone_CallYesNo[0], 2080375039);
  909. TextDrawSetShadow(TD_iPhone_CallYesNo[0], 0);
  910. TextDrawSetOutline(TD_iPhone_CallYesNo[0], 0);
  911. TextDrawBackgroundColor(TD_iPhone_CallYesNo[0], 51);
  912. TextDrawFont(TD_iPhone_CallYesNo[0], 1);
  913. TextDrawSetProportional(TD_iPhone_CallYesNo[0], 1);
  914.  
  915. TD_iPhone_CallYesNo[1] = TextDrawCreate(563.666198, 320.651794, "Y");
  916. TextDrawLetterSize(TD_iPhone_CallYesNo[1], 0.449999, 1.600000);
  917. TextDrawTextSize(TD_iPhone_CallYesNo[1], 5.000000, 20.325927);
  918. TextDrawAlignment(TD_iPhone_CallYesNo[1], 2);
  919. TextDrawColor(TD_iPhone_CallYesNo[1], -1);
  920. TextDrawUseBox(TD_iPhone_CallYesNo[1], true);
  921. TextDrawBoxColor(TD_iPhone_CallYesNo[1], 8388863);
  922. TextDrawSetShadow(TD_iPhone_CallYesNo[1], 0);
  923. TextDrawSetOutline(TD_iPhone_CallYesNo[1], 0);
  924. TextDrawBackgroundColor(TD_iPhone_CallYesNo[1], 51);
  925. TextDrawFont(TD_iPhone_CallYesNo[1], 1);
  926. TextDrawSetProportional(TD_iPhone_CallYesNo[1], 1);
  927.  
  928. UpdateIphone();
  929. UpdateIPHONETimer = SetTimer("UpdateIphone", 60000, true);
  930. return 1;
  931. }
  932.  
  933. #pragma unused UpdateIPHONETimer
  934. /*
  935. public OnFilterScriptExit()
  936. {
  937. for(new i = 0; i != MAX_PLAYERS; i++)
  938. {
  939. if(IsPlayerConnected(i))
  940. {
  941. MenuX[i] = 1;
  942. MenuY[i] = 1;
  943. iPhoneStatus[i] = 0;
  944. iPhone_CC[0][i] = 0;
  945. iPhone_CC[1][i] = 0;
  946. iPhone_CC[2][i] = 0;
  947. iPhone_CC[3][i] = 0;
  948. var1[i] = "";
  949. var2[i] = "";
  950. called[i] = "";
  951. DeletePVar(i,"tovar");
  952. DestroyPlayerIphone(i);
  953. }
  954. }
  955. loop(0, sizeof(TD_iPhone), PHONE) TextDrawDestroy(TD_iPhone[PHONE]);
  956. KillTimer(UpdateIPHONETimer);
  957. return 1;
  958. }
  959. */
  960.  
  961. public UpdateIphone()
  962. {
  963. new Hour, Minute;
  964. gettime(Hour, Minute);
  965. new str[64];
  966. format(str,sizeof(str),"4G________________%02d:%02d",Hour,Minute);
  967. TextDrawSetString(TD_iPhone[18], str);
  968. format(str,sizeof(str),"%02d:%02d",Hour,Minute);
  969. TextDrawSetString(TD_iPhone_Clock[0], str);
  970. TextDrawSetString(TD_iPhone[19], str);
  971.  
  972. new Year, Month, Day;
  973. getdate(Year, Month, Day);
  974. format(str,sizeof(str),"%s, %02d %d",GetMonth(Month), Day, Year);
  975. TextDrawSetString(TD_iPhone[20], str);
  976. TextDrawSetString(TD_iPhone_Clock[1], str);
  977. ActualizarTiempo();
  978. return 1;
  979. }
  980.  
  981. stock ActualizarTiempo()
  982. {
  983. new weather[64],idwea;
  984. GetServerVarAsString("weather", weather, sizeof(weather));
  985. idwea = strval(weather);
  986. if(idwea >= 0 && idwea <= 7) TextDrawSetString(TD_iPhone_Time[0],"Sunny");
  987. else if(idwea == 8) TextDrawSetString(TD_iPhone_Time[0],"Stormy");
  988. else if(idwea == 9) TextDrawSetString(TD_iPhone_Time[0],"Fog");
  989. else if(idwea == 10) TextDrawSetString(TD_iPhone_Time[0],"Sunny");
  990. else if(idwea == 11) TextDrawSetString(TD_iPhone_Time[0],"Hot");
  991. else if(idwea >= 12 && idwea <= 15) TextDrawSetString(TD_iPhone_Time[0],"Aburro");
  992. else if(idwea == 16) TextDrawSetString(TD_iPhone_Time[0],"Rain");
  993. else if(idwea >= 17 && idwea <= 18) TextDrawSetString(TD_iPhone_Time[0],"Hot");
  994. else if(idwea == 19) TextDrawSetString(TD_iPhone_Time[0],"Sand");
  995. else if(idwea == 20) TextDrawSetString(TD_iPhone_Time[0],"Fog");
  996. else if(idwea == 21) TextDrawSetString(TD_iPhone_Time[0],"Very dark");
  997. else if(idwea == 22) TextDrawSetString(TD_iPhone_Time[0],"Very dark");
  998. else if(idwea >= 23 && idwea <= 26) TextDrawSetString(TD_iPhone_Time[0],"Orange");
  999. else if(idwea >= 27 && idwea <= 29) TextDrawSetString(TD_iPhone_Time[0],"Sunny");
  1000. else if(idwea >= 30 && idwea <= 32) TextDrawSetString(TD_iPhone_Time[0],"Dark");
  1001. else if(idwea == 33) TextDrawSetString(TD_iPhone_Time[0],"Dark");
  1002. else if(idwea == 34) TextDrawSetString(TD_iPhone_Time[0],"Blue");
  1003. else if(idwea == 35) TextDrawSetString(TD_iPhone_Time[0],"Marron");
  1004. else if(idwea >= 36 && idwea <= 38) TextDrawSetString(TD_iPhone_Time[0],"Brillant");
  1005. else if(idwea == 39) TextDrawSetString(TD_iPhone_Time[0],"Very brillant");
  1006. else if(idwea >= 40 && idwea <= 42) TextDrawSetString(TD_iPhone_Time[0],"Blue/Purple");
  1007. else if(idwea == 43) TextDrawSetString(TD_iPhone_Time[0],"Toxic");
  1008. else if(idwea == 44) TextDrawSetString(TD_iPhone_Time[0],"Black");
  1009. else if(idwea == 45) TextDrawSetString(TD_iPhone_Time[0],"Black");
  1010. return 1;
  1011. }
  1012.  
  1013. stock GetMonth(Month)
  1014. {
  1015. new MonthStr[15];
  1016. switch(Month)
  1017. {
  1018. case 1: MonthStr = "January";
  1019. case 2: MonthStr = "February";
  1020. case 3: MonthStr = "March";
  1021. case 4: MonthStr = "April";
  1022. case 5: MonthStr = "May";
  1023. case 6: MonthStr = "June";
  1024. case 7: MonthStr = "July";
  1025. case 8: MonthStr = "Agoust";
  1026. case 9: MonthStr = "September";
  1027. case 10: MonthStr = "October";
  1028. case 11: MonthStr = "November";
  1029. case 12: MonthStr = "Dicember";
  1030. }
  1031. return MonthStr;
  1032. }
  1033.  
  1034. public OnPlayerConnect(playerid)
  1035. {
  1036. new number = random(9999);
  1037. PlayerInfo[playerid][PhoneNumber] = number;
  1038. new str[64]; format(str, 64, "Your iPhone phone number is {FFFF00}%d", number);
  1039. SendClientMessage(playerid, -1, str);
  1040. MenuX[playerid] = 1;
  1041. MenuY[playerid] = 1;
  1042. CreatePlayerIphone(playerid);
  1043. return 1;
  1044. }
  1045.  
  1046. public OnPlayerDisconnect(playerid, reason)
  1047. {
  1048. if(iPhoneCallStatus[playerid] == 2)
  1049. {
  1050. iPhoneCallStatus[callto[playerid]] = 0;
  1051. iPhoneStatus[callto[playerid]] = 0;
  1052.  
  1053. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(callto[playerid], TD_iPhone[PHONE]);
  1054. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(callto[playerid], PTD_iPhone[PPHONE][callto[playerid]]);
  1055. PlayerTextDrawHide(callto[playerid], PTD_iPhone_Call[callto[playerid]]);
  1056. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[0]);
  1057. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[1]);
  1058.  
  1059. SendClientMessage(callto[playerid], -1, "Not answered...");
  1060. callto[callto[playerid]] = 0;
  1061. }
  1062. else if(iPhoneCallStatus[playerid] == 3)
  1063. {
  1064. iPhoneCallStatus[callto[playerid]] = 0;
  1065. iPhoneStatus[callto[playerid]] = 0;
  1066.  
  1067. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(callto[playerid], TD_iPhone[PHONE]);
  1068. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(callto[playerid], PTD_iPhone[PPHONE][callto[playerid]]);
  1069. PlayerTextDrawHide(callto[playerid], PTD_iPhone_Call[callto[playerid]]);
  1070. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[0]);
  1071. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[1]);
  1072.  
  1073. SendClientMessage(callto[playerid], -1, "They have hung...");
  1074. callto[callto[playerid]] = 0;
  1075. }
  1076. var1[playerid] = "";
  1077. var2[playerid] = "";
  1078. called[playerid] = "";
  1079. callto[playerid] = 0;
  1080. DeletePVar(playerid,"tovar");
  1081. iPhoneStatus[playerid] = 0;
  1082. iPhone_CC[0][playerid] = 0;
  1083. iPhone_CC[1][playerid] = 0;
  1084. iPhone_CC[2][playerid] = 0;
  1085. iPhone_CC[3][playerid] = 0;
  1086. DestroyPlayerIphone(playerid);
  1087. return 1;
  1088. }
  1089.  
  1090. public OnPlayerDeath(playerid, killerid, reason)
  1091. {
  1092. if(iPhoneStatus[playerid] > 0)
  1093. {
  1094. if(IsValidObject(firstperson[playerid])) DestroyObject(firstperson[playerid]);
  1095. DeletePVar(playerid,"tovar");
  1096. var1[playerid] = "";
  1097. var2[playerid] = "";
  1098. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone[PHONE]);
  1099. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(playerid, PTD_iPhone[PPHONE][playerid]);
  1100. HideIphoneMenu(playerid);
  1101. iPhoneStatus[playerid] = 0;
  1102. }
  1103. return 1;
  1104. }
  1105.  
  1106. public OnPlayerCommandText(playerid, cmdtext[])
  1107. {
  1108. if(strcmp("/iphone", cmdtext, true, 10) == 0)
  1109. {
  1110. if(iPhoneStatus[playerid] == 0)
  1111. {
  1112. loop(0, 22, PHONE) TextDrawShowForPlayer(playerid, TD_iPhone[PHONE]);
  1113. iPhoneStatus[playerid] = 1;
  1114. }
  1115. else
  1116. {
  1117. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone[PHONE]);
  1118. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(playerid, PTD_iPhone[PPHONE][playerid]);
  1119. HideIphoneMenu(playerid);
  1120. iPhoneStatus[playerid] = 0;
  1121. }
  1122. return 1;
  1123. }
  1124. return 0;
  1125. }
  1126.  
  1127. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  1128. {
  1129. if(clickedid == TD_iPhone_Call[1])
  1130. {
  1131. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1132. strcat(called[playerid], "1");
  1133. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1134. }
  1135. if(clickedid == TD_iPhone_Call[2])
  1136. {
  1137. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1138. strcat(called[playerid], "2");
  1139. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1140. }
  1141. if(clickedid == TD_iPhone_Call[3])
  1142. {
  1143. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1144. strcat(called[playerid], "3");
  1145. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1146. }
  1147. if(clickedid == TD_iPhone_Call[4])
  1148. {
  1149. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1150. strcat(called[playerid], "4");
  1151. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1152. }
  1153. if(clickedid == TD_iPhone_Call[5])
  1154. {
  1155. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1156. strcat(called[playerid], "5");
  1157. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1158. }
  1159. if(clickedid == TD_iPhone_Call[6])
  1160. {
  1161. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1162. strcat(called[playerid], "6");
  1163. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1164. }
  1165. if(clickedid == TD_iPhone_Call[7])
  1166. {
  1167. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1168. strcat(called[playerid], "7");
  1169. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1170. }
  1171. if(clickedid == TD_iPhone_Call[8])
  1172. {
  1173. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1174. strcat(called[playerid], "8");
  1175. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1176. }
  1177. if(clickedid == TD_iPhone_Call[9])
  1178. {
  1179. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1180. strcat(called[playerid], "9");
  1181. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1182. }
  1183. if(clickedid == TD_iPhone_Call[10])
  1184. {
  1185. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1186. strcat(called[playerid], "0");
  1187. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], called[playerid]);
  1188. }
  1189. if(clickedid == TD_iPhone_Call[11]) //Call
  1190. {
  1191. PlayerPlaySound(playerid, 3600, 0.0, 0.0, 0.0);
  1192. CancelSelectTextDraw(playerid);
  1193. loop(0, sizeof(TD_iPhone_Call), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone_Call[PHONE]);
  1194. SendClientMessage(playerid, -1, "Establishing call...");
  1195. TextDrawShowForPlayer(playerid, TD_iPhone_CallYesNo[0]);
  1196. TextDrawShowForPlayer(playerid, TD_iPhone_CallYesNo[1]);
  1197. iPhoneCallStatus[playerid] = 1;
  1198. new c;
  1199. new ph = strval(called[playerid]);
  1200. for(new i = 0; i != MAX_PLAYERS; i ++)
  1201. {
  1202. if(IsPlayerConnected(i))
  1203. {
  1204. if(playerid != i)
  1205. {
  1206. if(PlayerInfo[i][PhoneNumber] == ph)
  1207. {
  1208. if(iPhoneStatus[i] == 3) HideIphoneMenu(i);
  1209. iPhoneCallStatus[playerid] = 2;
  1210. iPhoneCallStatus[i] = 2;
  1211. callto[playerid] = i;
  1212. callto[i] = playerid;
  1213. c = 1;
  1214. PlayerPlaySound(i, 20600, 0.0, 0.0, 0.0);
  1215. TextDrawShowForPlayer(i, TD_iPhone_CallYesNo[0]);
  1216. TextDrawShowForPlayer(i, TD_iPhone_CallYesNo[1]);
  1217. iPhoneStatus[i] = 3;
  1218. TextDrawHideForPlayer(i, TD_iPhone[25]);
  1219. loop(0, 19, PHONE) TextDrawShowForPlayer(i, TD_iPhone[PHONE]);
  1220. loop(19, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(i, TD_iPhone[PHONE]);
  1221. loop(1, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(i, PTD_iPhone[PPHONE][i]);
  1222. TextDrawShowForPlayer(i, TD_iPhone[22]);
  1223. TextDrawShowForPlayer(i, TD_iPhone[23]);
  1224. TextDrawShowForPlayer(i, TD_iPhone[24]);
  1225. PlayerTextDrawSetString(i, PTD_iPhone[0][i], "Call");
  1226. PlayerTextDrawShow(i, PTD_iPhone[0][i]);
  1227. break;
  1228. }
  1229. }
  1230. }
  1231. }
  1232. if(c == 0)
  1233. {
  1234. iPhoneCallStatus[playerid] = 0;
  1235. PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  1236. iPhoneStatus[playerid] = 2;
  1237. HideIphoneMenu(playerid);
  1238. TextDrawShowForPlayer(playerid, TD_iPhone[25]);
  1239. loop(1, 37, PPHONE) PlayerTextDrawShow(playerid, PTD_iPhone[PPHONE][playerid]);
  1240. SendClientMessage(playerid, -1, "The dialed number does not exist or is out of coverage.");
  1241. }
  1242. else SendClientMessage(playerid, -1, "Calling...");
  1243. }
  1244. if(clickedid == TD_iPhone_Call[12]) //Delete
  1245. {
  1246. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1247. new size = strlen(called[playerid]);
  1248. if(size == 1) strdel(called[playerid],0,1),PlayerTextDrawSetString(playerid,PTD_iPhone_Call[playerid],"_");
  1249. else strdel(called[playerid],size-1,size), PlayerTextDrawSetString(playerid,PTD_iPhone_Call[playerid],called[playerid]);
  1250. }
  1251. if(clickedid == TD_iPhone_Calculator[0])
  1252. {
  1253. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1254. if(!GetPVarInt(playerid, "tovar"))
  1255. {
  1256. strcat(var1[playerid], "0");
  1257. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1258. }
  1259. else
  1260. {
  1261. strcat(var2[playerid], "0");
  1262. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1263. }
  1264. }
  1265. if(clickedid == TD_iPhone_Calculator[1])
  1266. {
  1267. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1268. if(!GetPVarInt(playerid, "tovar"))
  1269. {
  1270. var1[playerid] = "";
  1271. var2[playerid] = "";
  1272. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "ERROR");
  1273. }
  1274. else
  1275. {
  1276. new s = GetPVarInt(playerid, "tovar");
  1277. switch(s)
  1278. {
  1279. case 1:
  1280. {
  1281. new str[24];
  1282. format(str, 24, "%d", (strval(var1[playerid])/strval(var2[playerid])));
  1283. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], str);
  1284. }
  1285. case 2:
  1286. {
  1287. new str[24];
  1288. format(str, 24, "%d", (strval(var1[playerid])*strval(var2[playerid])));
  1289. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], str);
  1290. }
  1291. case 3:
  1292. {
  1293. new str[24];
  1294. format(str, 24, "%d", (strval(var1[playerid])-strval(var2[playerid])));
  1295. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], str);
  1296. }
  1297. case 4:
  1298. {
  1299. new str[24];
  1300. format(str, 24, "%d", (strval(var1[playerid])+strval(var2[playerid])));
  1301. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], str);
  1302. }
  1303. }
  1304. DeletePVar(playerid, "tovar");
  1305. var1[playerid] = "";
  1306. var2[playerid] = "";
  1307. }
  1308. }
  1309. if(clickedid == TD_iPhone_Calculator[2])
  1310. {
  1311. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1312. if(!GetPVarInt(playerid, "tovar"))
  1313. {
  1314. strcat(var1[playerid], "1");
  1315. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1316. }
  1317. else
  1318. {
  1319. strcat(var2[playerid], "1");
  1320. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1321. }
  1322. }
  1323. if(clickedid == TD_iPhone_Calculator[3])
  1324. {
  1325. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1326. if(!GetPVarInt(playerid, "tovar"))
  1327. {
  1328. strcat(var1[playerid], "2");
  1329. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1330. }
  1331. else
  1332. {
  1333. strcat(var2[playerid], "2");
  1334. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1335. }
  1336. }
  1337. if(clickedid == TD_iPhone_Calculator[4])
  1338. {
  1339. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1340. if(!GetPVarInt(playerid, "tovar"))
  1341. {
  1342. strcat(var1[playerid], "3");
  1343. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1344. }
  1345. else
  1346. {
  1347. strcat(var2[playerid], "3");
  1348. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1349. }
  1350. }
  1351. if(clickedid == TD_iPhone_Calculator[5])
  1352. {
  1353. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1354. if(!GetPVarInt(playerid, "tovar"))
  1355. {
  1356. strcat(var1[playerid], "4");
  1357. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1358. }
  1359. else
  1360. {
  1361. strcat(var2[playerid], "4");
  1362. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1363. }
  1364. }
  1365. if(clickedid == TD_iPhone_Calculator[6])
  1366. {
  1367. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1368. if(!GetPVarInt(playerid, "tovar"))
  1369. {
  1370. strcat(var1[playerid], "5");
  1371. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1372. }
  1373. else
  1374. {
  1375. strcat(var2[playerid], "5");
  1376. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1377. }
  1378. }
  1379. if(clickedid == TD_iPhone_Calculator[7])
  1380. {
  1381. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1382. if(!GetPVarInt(playerid, "tovar"))
  1383. {
  1384. strcat(var1[playerid], "6");
  1385. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1386. }
  1387. else
  1388. {
  1389. strcat(var2[playerid], "6");
  1390. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1391. }
  1392. }
  1393. if(clickedid == TD_iPhone_Calculator[8])
  1394. {
  1395. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1396. if(!GetPVarInt(playerid, "tovar"))
  1397. {
  1398. strcat(var1[playerid], "7");
  1399. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1400. }
  1401. else
  1402. {
  1403. strcat(var2[playerid], "7");
  1404. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1405. }
  1406. }
  1407. if(clickedid == TD_iPhone_Calculator[9])
  1408. {
  1409. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1410. if(!GetPVarInt(playerid, "tovar"))
  1411. {
  1412. strcat(var1[playerid], "8");
  1413. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1414. }
  1415. else
  1416. {
  1417. strcat(var2[playerid], "8");
  1418. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1419. }
  1420. }
  1421. if(clickedid == TD_iPhone_Calculator[10])
  1422. {
  1423. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1424. if(!GetPVarInt(playerid, "tovar"))
  1425. {
  1426. strcat(var1[playerid], "9");
  1427. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var1[playerid]);
  1428. }
  1429. else
  1430. {
  1431. strcat(var2[playerid], "9");
  1432. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], var2[playerid]);
  1433. }
  1434. }
  1435. if(clickedid == TD_iPhone_Calculator[11])
  1436. {
  1437. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1438. if(!GetPVarInt(playerid, "tovar"))
  1439. {
  1440. SetPVarInt(playerid, "tovar", 1);
  1441. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "/");
  1442. }
  1443. else
  1444. {
  1445. DeletePVar(playerid, "tovar");
  1446. var1[playerid] = "";
  1447. var2[playerid] = "";
  1448. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "ERROR");
  1449. }
  1450. }
  1451. if(clickedid == TD_iPhone_Calculator[12])
  1452. {
  1453. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1454. if(!GetPVarInt(playerid, "tovar"))
  1455. {
  1456. SetPVarInt(playerid, "tovar", 2);
  1457. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "X");
  1458. }
  1459. else
  1460. {
  1461. DeletePVar(playerid, "tovar");
  1462. var1[playerid] = "";
  1463. var2[playerid] = "";
  1464. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "ERROR");
  1465. }
  1466. }
  1467. if(clickedid == TD_iPhone_Calculator[13])
  1468. {
  1469. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1470. if(!GetPVarInt(playerid, "tovar"))
  1471. {
  1472. SetPVarInt(playerid, "tovar", 3);
  1473. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "-");
  1474. }
  1475. else
  1476. {
  1477. DeletePVar(playerid, "tovar");
  1478. var1[playerid] = "";
  1479. var2[playerid] = "";
  1480. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "ERROR");
  1481. }
  1482. }
  1483. if(clickedid == TD_iPhone_Calculator[14])
  1484. {
  1485. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1486. if(!GetPVarInt(playerid, "tovar"))
  1487. {
  1488. SetPVarInt(playerid, "tovar", 4);
  1489. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "+");
  1490. }
  1491. else
  1492. {
  1493. DeletePVar(playerid, "tovar");
  1494. var1[playerid] = "";
  1495. var2[playerid] = "";
  1496. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "ERROR");
  1497. }
  1498. }
  1499. return 1;
  1500. }
  1501.  
  1502. public OnPlayerText(playerid, text[])
  1503. {
  1504. if(iPhoneCallStatus[playerid] == 3)
  1505. {
  1506. new str[256];
  1507. format(str, 256, "{00CCFF}* Phone: {FFFFFF}%s", text);
  1508. SendClientMessage(callto[playerid], -1, str);
  1509. format(str, 256, "{CCCCCC}* Phone: {FFFFFF}%s", text);
  1510. SendClientMessage(playerid, -1, str);
  1511. return 0;
  1512. }
  1513. return 1;
  1514. }
  1515.  
  1516. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1517. {
  1518. if(newkeys & KEY_YES)
  1519. {
  1520. if(iPhoneCallStatus[playerid] == 2)
  1521. {
  1522. iPhoneCallStatus[playerid] = 3;
  1523. iPhoneCallStatus[callto[playerid]] = 3;
  1524. SendClientMessage(callto[playerid], -1, "Call established");
  1525. return 1;
  1526. }
  1527. if(iPhone_CC[1][playerid] == 1 || iPhone_CC[2][playerid] == 1)
  1528. {
  1529. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1530. StopAudioStreamForPlayer(playerid);
  1531. return 1;
  1532. }
  1533. if(iPhoneStatus[playerid] == 1)
  1534. {
  1535. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1536. iPhoneStatus[playerid] = 2;
  1537. TextDrawHideForPlayer(playerid, TD_iPhone[19]);
  1538. TextDrawHideForPlayer(playerid, TD_iPhone[20]);
  1539. TextDrawHideForPlayer(playerid, TD_iPhone[21]);
  1540. loop(22, 26, PHONE) TextDrawShowForPlayer(playerid, TD_iPhone[PHONE]);
  1541. loop(0, 37, PPHONE) PlayerTextDrawShow(playerid, PTD_iPhone[PPHONE][playerid]);
  1542. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1543. }
  1544. else if(iPhoneStatus[playerid] == 2)
  1545. {
  1546. new menuid = UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1547. if(menuid == 12) return PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  1548. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1549. iPhoneStatus[playerid] = 3;
  1550. TextDrawHideForPlayer(playerid, TD_iPhone[25]);
  1551. loop(1, 37, PPHONE) PlayerTextDrawHide(playerid, PTD_iPhone[PPHONE][playerid]);
  1552. ShowIphoneMenu(playerid, menuid);
  1553. }
  1554. return 1;
  1555. }
  1556. if(newkeys & KEY_NO)
  1557. {
  1558. if(iPhoneStatus[playerid] == 1)
  1559. {
  1560. PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  1561. loop(0, 22, PHONE) TextDrawHideForPlayer(playerid, TD_iPhone[PHONE]);
  1562. iPhoneStatus[playerid] = 0;
  1563. }
  1564. else if(iPhoneStatus[playerid] == 2)
  1565. {
  1566. PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  1567. iPhoneStatus[playerid] = 1;
  1568. loop(22, 26, PHONE) TextDrawHideForPlayer(playerid, TD_iPhone[PHONE]);
  1569. loop(0, 37, PPHONE) PlayerTextDrawHide(playerid, PTD_iPhone[PPHONE][playerid]);
  1570. TextDrawShowForPlayer(playerid, TD_iPhone[19]);
  1571. TextDrawShowForPlayer(playerid, TD_iPhone[20]);
  1572. TextDrawShowForPlayer(playerid, TD_iPhone[21]);
  1573. }
  1574. else if(iPhoneStatus[playerid] == 3)
  1575. {
  1576. PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  1577. iPhoneStatus[playerid] = 2;
  1578. TextDrawShowForPlayer(playerid, TD_iPhone[25]);
  1579. loop(1, 37, PPHONE) PlayerTextDrawShow(playerid, PTD_iPhone[PPHONE][playerid]);
  1580. HideIphoneMenu(playerid);
  1581. }
  1582. return 1;
  1583. }
  1584. if(newkeys & KEY_ANALOG_LEFT)
  1585. {
  1586. if(iPhone_CC[0][playerid] == 1)
  1587. {
  1588. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1589. PlayerTextDrawSetString(playerid, PTD_iPhone_Gallery[playerid], Gallery[random(sizeof(Gallery))]);
  1590. return 1;
  1591. }
  1592. if(iPhone_CC[1][playerid] == 1)
  1593. {
  1594. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1595. StopAudioStreamForPlayer(playerid);
  1596. PlayAudioStreamForPlayer(playerid, Radio[random(sizeof(Radio))]);
  1597. return 1;
  1598. }
  1599. if(iPhone_CC[2][playerid] == 1)
  1600. {
  1601. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1602. StopAudioStreamForPlayer(playerid);
  1603. PlayAudioStreamForPlayer(playerid, Music[random(sizeof(Music))]);
  1604. return 1;
  1605. }
  1606. if(iPhoneStatus[playerid] == 2)
  1607. {
  1608. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1609. if(MenuX[playerid] == 0)
  1610. {
  1611. if(MenuY[playerid] == 0)
  1612. {
  1613. MenuX[playerid] = 2;
  1614. MenuY[playerid] = 3;
  1615. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1616. return 1;
  1617. }
  1618. MenuY[playerid] -= 1;
  1619. MenuX[playerid] = 2;
  1620. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1621. return 1;
  1622. }
  1623. MenuX[playerid] -= 1;
  1624. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1625. }
  1626. return 1;
  1627. }
  1628. if(newkeys & KEY_ANALOG_RIGHT)
  1629. {
  1630. if(iPhone_CC[0][playerid] == 1)
  1631. {
  1632. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1633. PlayerTextDrawSetString(playerid, PTD_iPhone_Gallery[playerid], Gallery[random(sizeof(Gallery))]);
  1634. return 1;
  1635. }
  1636. if(iPhone_CC[1][playerid] == 1)
  1637. {
  1638. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1639. StopAudioStreamForPlayer(playerid);
  1640. PlayAudioStreamForPlayer(playerid, Radio[random(sizeof(Radio))]);
  1641. return 1;
  1642. }
  1643. if(iPhone_CC[2][playerid] == 1)
  1644. {
  1645. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1646. StopAudioStreamForPlayer(playerid);
  1647. PlayAudioStreamForPlayer(playerid, Music[random(sizeof(Music))]);
  1648. return 1;
  1649. }
  1650. if(iPhoneStatus[playerid] == 2)
  1651. {
  1652. PlayerPlaySound(playerid, 17803, 0.0, 0.0, 0.0);
  1653. if(MenuX[playerid] == 2)
  1654. {
  1655. if(MenuY[playerid] == 3)
  1656. {
  1657. MenuY[playerid] = 0;
  1658. MenuX[playerid] = 0;
  1659. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1660. return 1;
  1661. }
  1662. MenuY[playerid] += 1;
  1663. MenuX[playerid] = 0;
  1664. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1665. return 1;
  1666. }
  1667. MenuX[playerid] += 1;
  1668. UpdateCoordinates(playerid, MenuX[playerid], MenuY[playerid]);
  1669. }
  1670. return 1;
  1671. }
  1672. return 1;
  1673. }
  1674.  
  1675. public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
  1676. {
  1677. return 1;
  1678. }
  1679.  
  1680. stock ShowIphoneMenu(playerid, menuid)
  1681. {
  1682. switch(menuid)
  1683. {
  1684. case 1:
  1685. {
  1686. TextDrawShowForPlayer(playerid, TD_iPhone_Clock[0]);
  1687. TextDrawShowForPlayer(playerid, TD_iPhone_Clock[1]);
  1688. }
  1689. case 2:
  1690. {
  1691. iPhone_CC[3][playerid] = 1;
  1692. firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1693. AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
  1694. AttachCameraToObject(playerid, firstperson[playerid]);
  1695. }
  1696. case 3:
  1697. {
  1698. iPhone_CC[0][playerid] = 1;
  1699. TextDrawShowForPlayer(playerid, TD_iPhone_Gallery);
  1700. PlayerTextDrawShow(playerid, PTD_iPhone_Gallery[playerid]);
  1701. }
  1702. case 4:
  1703. {
  1704. TextDrawShowForPlayer(playerid, TD_iPhone_Time[0]);
  1705. TextDrawShowForPlayer(playerid, TD_iPhone_Time[1]);
  1706. TextDrawShowForPlayer(playerid, TD_iPhone_Time[2]);
  1707. }
  1708. case 5:
  1709. {
  1710. SelectTextDraw(playerid, -1);
  1711. PlayerTextDrawShow(playerid, PTD_iPhone_Calculator[playerid]);
  1712. loop(0, sizeof(TD_iPhone_Calculator), PHONE) TextDrawShowForPlayer(playerid, TD_iPhone_Calculator[PHONE]);
  1713. }
  1714. case 6:
  1715. {
  1716. GetPlayerZone(playerid);
  1717. TextDrawShowForPlayer(playerid, TD_iPhone_GPS);
  1718. PlayerTextDrawShow(playerid, PTD_iPhone_GPS[playerid]);
  1719. }
  1720. case 7:
  1721. {
  1722. iPhone_CC[1][playerid] = 1;
  1723. TextDrawShowForPlayer(playerid, TD_iPhone_Radio[0]);
  1724. TextDrawShowForPlayer(playerid, TD_iPhone_Radio[1]);
  1725. }
  1726. case 8:
  1727. {
  1728. iPhone_CC[2][playerid] = 1;
  1729. TextDrawShowForPlayer(playerid, TD_iPhone_Music[0]);
  1730. TextDrawShowForPlayer(playerid, TD_iPhone_Music[1]);
  1731. }
  1732. case 9: TextDrawShowForPlayer(playerid, TD_iPhone_Map);
  1733. case 10:
  1734. {
  1735. SelectTextDraw(playerid, -1);
  1736. loop(0, sizeof(TD_iPhone_Call), PHONE) TextDrawShowForPlayer(playerid, TD_iPhone_Call[PHONE]);
  1737. PlayerTextDrawShow(playerid, PTD_iPhone_Call[playerid]);
  1738. }
  1739. case 11:
  1740. {
  1741. TextDrawShowForPlayer(playerid, TD_iPhone_Internet[0]);
  1742. TextDrawShowForPlayer(playerid, TD_iPhone_Internet[1]);
  1743. }
  1744. }
  1745. return 1;
  1746. }
  1747.  
  1748. stock HideIphoneMenu(playerid)
  1749. {
  1750. if(iPhoneCallStatus[playerid] == 1) return 1;
  1751. else if(iPhoneCallStatus[playerid] == 2)
  1752. {
  1753. iPhoneCallStatus[playerid] = 0;
  1754. iPhoneCallStatus[callto[playerid]] = 0;
  1755. iPhoneStatus[playerid] = 0;
  1756. iPhoneStatus[callto[playerid]] = 0;
  1757.  
  1758. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone[PHONE]);
  1759. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(playerid, PTD_iPhone[PPHONE][playerid]);
  1760. PlayerTextDrawHide(playerid, PTD_iPhone_Call[playerid]);
  1761. TextDrawHideForPlayer(playerid, TD_iPhone_CallYesNo[0]);
  1762. TextDrawHideForPlayer(playerid, TD_iPhone_CallYesNo[1]);
  1763.  
  1764. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(callto[playerid], TD_iPhone[PHONE]);
  1765. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(callto[playerid], PTD_iPhone[PPHONE][callto[playerid]]);
  1766. PlayerTextDrawHide(callto[playerid], PTD_iPhone_Call[callto[playerid]]);
  1767. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[0]);
  1768. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[1]);
  1769.  
  1770. SendClientMessage(callto[playerid], -1, "Not answered...");
  1771. callto[callto[playerid]] = 0;
  1772. callto[playerid] = 0;
  1773. return 1;
  1774. }
  1775. else if(iPhoneCallStatus[playerid] == 3)
  1776. {
  1777. iPhoneCallStatus[playerid] = 0;
  1778. iPhoneCallStatus[callto[playerid]] = 0;
  1779. iPhoneStatus[playerid] = 0;
  1780. iPhoneStatus[callto[playerid]] = 0;
  1781.  
  1782. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone[PHONE]);
  1783. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(playerid, PTD_iPhone[PPHONE][playerid]);
  1784. PlayerTextDrawHide(playerid, PTD_iPhone_Call[playerid]);
  1785. TextDrawHideForPlayer(playerid, TD_iPhone_CallYesNo[0]);
  1786. TextDrawHideForPlayer(playerid, TD_iPhone_CallYesNo[1]);
  1787.  
  1788. loop(0, sizeof(TD_iPhone), PHONE) TextDrawHideForPlayer(callto[playerid], TD_iPhone[PHONE]);
  1789. loop(0, sizeof(PTD_iPhone), PPHONE) PlayerTextDrawHide(callto[playerid], PTD_iPhone[PPHONE][callto[playerid]]);
  1790. PlayerTextDrawHide(callto[playerid], PTD_iPhone_Call[callto[playerid]]);
  1791. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[0]);
  1792. TextDrawHideForPlayer(callto[playerid], TD_iPhone_CallYesNo[1]);
  1793.  
  1794. SendClientMessage(callto[playerid], -1, "They have hung...");
  1795. callto[callto[playerid]] = 0;
  1796. callto[playerid] = 0;
  1797. return 1;
  1798. }
  1799. CancelSelectTextDraw(playerid);
  1800. TextDrawHideForPlayer(playerid, TD_iPhone_Clock[0]);
  1801. TextDrawHideForPlayer(playerid, TD_iPhone_Clock[1]);
  1802. TextDrawHideForPlayer(playerid, TD_iPhone_Gallery);
  1803. PlayerTextDrawHide(playerid, PTD_iPhone_Gallery[playerid]);
  1804. TextDrawHideForPlayer(playerid, TD_iPhone_Time[0]);
  1805. TextDrawHideForPlayer(playerid, TD_iPhone_Time[1]);
  1806. TextDrawHideForPlayer(playerid, TD_iPhone_Time[2]);
  1807. TextDrawHideForPlayer(playerid, TD_iPhone_GPS);
  1808. PlayerTextDrawHide(playerid, PTD_iPhone_GPS[playerid]);
  1809. TextDrawHideForPlayer(playerid, TD_iPhone_Radio[0]);
  1810. TextDrawHideForPlayer(playerid, TD_iPhone_Radio[1]);
  1811. TextDrawHideForPlayer(playerid, TD_iPhone_Music[0]);
  1812. TextDrawHideForPlayer(playerid, TD_iPhone_Music[1]);
  1813. TextDrawHideForPlayer(playerid, TD_iPhone_Map);
  1814. TextDrawHideForPlayer(playerid, TD_iPhone_Internet[0]);
  1815. TextDrawHideForPlayer(playerid, TD_iPhone_Internet[1]);
  1816. PlayerTextDrawHide(playerid, PTD_iPhone_Calculator[playerid]);
  1817. loop(0, sizeof(TD_iPhone_Calculator), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone_Calculator[PHONE]);
  1818. loop(0, sizeof(TD_iPhone_Call), PHONE) TextDrawHideForPlayer(playerid, TD_iPhone_Call[PHONE]);
  1819. PlayerTextDrawHide(playerid, PTD_iPhone_Call[playerid]);
  1820. var1[playerid] = "";
  1821. var2[playerid] = "";
  1822. called[playerid] = "";
  1823. TextDrawHideForPlayer(playerid, TD_iPhone_CallYesNo[0]);
  1824. TextDrawHideForPlayer(playerid, TD_iPhone_CallYesNo[1]);
  1825. PlayerTextDrawSetString(playerid, PTD_iPhone_Call[playerid], "");
  1826. PlayerTextDrawSetString(playerid, PTD_iPhone_Calculator[playerid], "0");
  1827. DeletePVar(playerid,"tovar");
  1828. iPhone_CC[0][playerid] = 0;
  1829. iPhone_CC[1][playerid] = 0;
  1830. iPhone_CC[2][playerid] = 0;
  1831. if(iPhone_CC[3][playerid] == 1)
  1832. {
  1833. iPhone_CC[3][playerid] = 0;
  1834. SetCameraBehindPlayer(playerid);
  1835. DestroyObject(firstperson[playerid]);
  1836. }
  1837. return 1;
  1838. }
  1839.  
  1840. stock ReturnPlayerZone(playerid)
  1841. {
  1842. new playerzone[256] = "Unknown";
  1843. for(new j; j < sizeof(zones); j++) {
  1844. if(IsPlayerInZone(playerid,j)) {
  1845. memcpy(playerzone, zones[j][zone_name], 0, 108);
  1846. break;
  1847. }
  1848. }
  1849. return playerzone;
  1850. }
  1851. stock IsPlayerInZone(playerid, zoneid) {
  1852. if(zoneid == -1) return false;
  1853. new Float:x, Float:y, Float:z;
  1854. GetPlayerPos(playerid, x, y, z);
  1855. if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx] && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy] && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz] && z < 900.0) return true;
  1856. return false;
  1857. }
  1858. stock GetPlayerZone(playerid)
  1859. {
  1860. new string[256];
  1861. format(string,sizeof(string),"%s",ReturnPlayerZone(playerid));
  1862. PlayerTextDrawSetString(playerid,PTD_iPhone_GPS[playerid],string);
  1863. return 1;
  1864. }
  1865.  
  1866. stock UpdateCoordinates(playerid, aMenuX, aMenuY)
  1867. {
  1868. switch(aMenuX)
  1869. {
  1870. case 0:
  1871. {
  1872. switch(aMenuY)
  1873. {
  1874. case 0:
  1875. {
  1876. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Clock");
  1877. loop(1, 13, i)
  1878. {
  1879. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1880. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1881. }
  1882. PlayerTextDrawColor(playerid, PTD_iPhone[1][playerid], -1);
  1883. PlayerTextDrawShow(playerid, PTD_iPhone[1][playerid]);
  1884. return 1;
  1885. }
  1886. case 1:
  1887. {
  1888. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Weather");
  1889. loop(1, 13, i)
  1890. {
  1891. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1892. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1893. }
  1894. PlayerTextDrawColor(playerid, PTD_iPhone[4][playerid], -1);
  1895. PlayerTextDrawShow(playerid, PTD_iPhone[4][playerid]);
  1896. return 4;
  1897. }
  1898. case 2:
  1899. {
  1900. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Radio");
  1901. loop(1, 13, i)
  1902. {
  1903. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1904. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1905. }
  1906. PlayerTextDrawColor(playerid, PTD_iPhone[7][playerid], -1);
  1907. PlayerTextDrawShow(playerid, PTD_iPhone[7][playerid]);
  1908. return 7;
  1909. }
  1910. case 3:
  1911. {
  1912. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Call");
  1913. loop(1, 13, i)
  1914. {
  1915. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1916. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1917. }
  1918. PlayerTextDrawColor(playerid, PTD_iPhone[10][playerid], -1);
  1919. PlayerTextDrawShow(playerid, PTD_iPhone[10][playerid]);
  1920. return 10;
  1921. }
  1922. }
  1923. }
  1924. case 1:
  1925. {
  1926. switch(aMenuY)
  1927. {
  1928. case 0:
  1929. {
  1930. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Camera");
  1931. loop(1, 13, i)
  1932. {
  1933. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1934. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1935. }
  1936. PlayerTextDrawColor(playerid, PTD_iPhone[2][playerid], -1);
  1937. PlayerTextDrawShow(playerid, PTD_iPhone[2][playerid]);
  1938. return 2;
  1939. }
  1940. case 1:
  1941. {
  1942. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Calculator");
  1943. loop(1, 13, i)
  1944. {
  1945. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1946. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1947. }
  1948. PlayerTextDrawColor(playerid, PTD_iPhone[5][playerid], -1);
  1949. PlayerTextDrawShow(playerid, PTD_iPhone[5][playerid]);
  1950. return 5;
  1951. }
  1952. case 2:
  1953. {
  1954. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Music");
  1955. loop(1, 13, i)
  1956. {
  1957. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1958. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1959. }
  1960. PlayerTextDrawColor(playerid, PTD_iPhone[8][playerid], -1);
  1961. PlayerTextDrawShow(playerid, PTD_iPhone[8][playerid]);
  1962. return 8;
  1963. }
  1964. case 3:
  1965. {
  1966. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Internet");
  1967. loop(1, 13, i)
  1968. {
  1969. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1970. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1971. }
  1972. PlayerTextDrawColor(playerid, PTD_iPhone[11][playerid], -1);
  1973. PlayerTextDrawShow(playerid, PTD_iPhone[11][playerid]);
  1974. return 11;
  1975. }
  1976. }
  1977. }
  1978. case 2:
  1979. {
  1980. switch(aMenuY)
  1981. {
  1982. case 0:
  1983. {
  1984. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Gallery");
  1985. loop(1, 13, i)
  1986. {
  1987. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  1988. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  1989. }
  1990. PlayerTextDrawColor(playerid, PTD_iPhone[3][playerid], -1);
  1991. PlayerTextDrawShow(playerid, PTD_iPhone[3][playerid]);
  1992. return 3;
  1993. }
  1994. case 1:
  1995. {
  1996. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "GPS");
  1997. loop(1, 13, i)
  1998. {
  1999. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  2000. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  2001. }
  2002. PlayerTextDrawColor(playerid, PTD_iPhone[6][playerid], -1);
  2003. PlayerTextDrawShow(playerid, PTD_iPhone[6][playerid]);
  2004. return 6;
  2005. }
  2006. case 2:
  2007. {
  2008. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "Map");
  2009. loop(1, 13, i)
  2010. {
  2011. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  2012. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  2013. }
  2014. PlayerTextDrawColor(playerid, PTD_iPhone[9][playerid], -1);
  2015. PlayerTextDrawShow(playerid, PTD_iPhone[9][playerid]);
  2016. return 9;
  2017. }
  2018. case 3:
  2019. {
  2020. PlayerTextDrawSetString(playerid, PTD_iPhone[0][playerid], "SMS");
  2021. loop(1, 13, i)
  2022. {
  2023. PlayerTextDrawColor(playerid, PTD_iPhone[i][playerid], -256);
  2024. PlayerTextDrawShow(playerid, PTD_iPhone[i][playerid]);
  2025. }
  2026. PlayerTextDrawColor(playerid, PTD_iPhone[12][playerid], -1);
  2027. PlayerTextDrawShow(playerid, PTD_iPhone[12][playerid]);
  2028. return 12;
  2029. }
  2030. }
  2031. }
  2032. }
  2033. return 0;
  2034. }
  2035.  
  2036. stock CreatePlayerIphone(playerid)
  2037. {
  2038. PTD_iPhone[0][playerid] = CreatePlayerTextDraw(playerid, 550.133544, 233.225967, "Not selected");
  2039. PlayerTextDrawLetterSize(playerid, PTD_iPhone[0][playerid], 0.276333, 1.346963);
  2040. PlayerTextDrawAlignment(playerid, PTD_iPhone[0][playerid], 2);
  2041. PlayerTextDrawColor(playerid, PTD_iPhone[0][playerid], -1);
  2042. PlayerTextDrawSetShadow(playerid, PTD_iPhone[0][playerid], 0);
  2043. PlayerTextDrawSetOutline(playerid, PTD_iPhone[0][playerid], 1);
  2044. PlayerTextDrawBackgroundColor(playerid, PTD_iPhone[0][playerid], 255);
  2045. PlayerTextDrawFont(playerid, PTD_iPhone[0][playerid], 1);
  2046. PlayerTextDrawSetProportional(playerid, PTD_iPhone[0][playerid], 1);
  2047.  
  2048. PTD_iPhone[1][playerid] = CreatePlayerTextDraw(playerid, 516.600280, 254.681549, "ld_poke:cd1d");
  2049. PlayerTextDrawLetterSize(playerid, PTD_iPhone[1][playerid], 0.000000, 0.000000);
  2050. PlayerTextDrawTextSize(playerid, PTD_iPhone[1][playerid], 19.000009, 23.644432);
  2051. PlayerTextDrawAlignment(playerid, PTD_iPhone[1][playerid], 1);
  2052. PlayerTextDrawColor(playerid, PTD_iPhone[1][playerid], -256);
  2053. PlayerTextDrawSetShadow(playerid, PTD_iPhone[1][playerid], 0);
  2054. PlayerTextDrawSetOutline(playerid, PTD_iPhone[1][playerid], 0);
  2055. PlayerTextDrawFont(playerid, PTD_iPhone[1][playerid], 4);
  2056.  
  2057. PTD_iPhone[2][playerid] = CreatePlayerTextDraw(playerid, 540.866333, 254.681549, "ld_poke:cd1d");
  2058. PlayerTextDrawLetterSize(playerid, PTD_iPhone[2][playerid], 0.000000, 0.000000);
  2059. PlayerTextDrawTextSize(playerid, PTD_iPhone[2][playerid], 19.000009, 23.644432);
  2060. PlayerTextDrawAlignment(playerid, PTD_iPhone[2][playerid], 1);
  2061. PlayerTextDrawColor(playerid, PTD_iPhone[2][playerid], -256);
  2062. PlayerTextDrawSetShadow(playerid, PTD_iPhone[2][playerid], 0);
  2063. PlayerTextDrawSetOutline(playerid, PTD_iPhone[2][playerid], 0);
  2064. PlayerTextDrawFont(playerid, PTD_iPhone[2][playerid], 4);
  2065.  
  2066. PTD_iPhone[3][playerid] = CreatePlayerTextDraw(playerid, 565.599304, 254.681549, "ld_poke:cd1d");
  2067. PlayerTextDrawLetterSize(playerid, PTD_iPhone[3][playerid], 0.000000, 0.000000);
  2068. PlayerTextDrawTextSize(playerid, PTD_iPhone[3][playerid], 19.000009, 23.644432);
  2069. PlayerTextDrawAlignment(playerid, PTD_iPhone[3][playerid], 1);
  2070. PlayerTextDrawColor(playerid, PTD_iPhone[3][playerid], -256);
  2071. PlayerTextDrawSetShadow(playerid, PTD_iPhone[3][playerid], 0);
  2072. PlayerTextDrawSetOutline(playerid, PTD_iPhone[3][playerid], 0);
  2073. PlayerTextDrawFont(playerid, PTD_iPhone[3][playerid], 4);
  2074.  
  2075. PTD_iPhone[4][playerid] = CreatePlayerTextDraw(playerid, 516.600280, 284.445159, "ld_poke:cd1d");
  2076. PlayerTextDrawLetterSize(playerid, PTD_iPhone[4][playerid], 0.000000, 0.000000);
  2077. PlayerTextDrawTextSize(playerid, PTD_iPhone[4][playerid], 19.000009, 23.644432);
  2078. PlayerTextDrawAlignment(playerid, PTD_iPhone[4][playerid], 1);
  2079. PlayerTextDrawColor(playerid, PTD_iPhone[4][playerid], -256);
  2080. PlayerTextDrawSetShadow(playerid, PTD_iPhone[4][playerid], 0);
  2081. PlayerTextDrawSetOutline(playerid, PTD_iPhone[4][playerid], 0);
  2082. PlayerTextDrawFont(playerid, PTD_iPhone[4][playerid], 4);
  2083.  
  2084. PTD_iPhone[5][playerid] = CreatePlayerTextDraw(playerid, 540.866333, 284.445159, "ld_poke:cd1d");
  2085. PlayerTextDrawLetterSize(playerid, PTD_iPhone[5][playerid], 0.000000, 0.000000);
  2086. PlayerTextDrawTextSize(playerid, PTD_iPhone[5][playerid], 19.000009, 23.644432);
  2087. PlayerTextDrawAlignment(playerid, PTD_iPhone[5][playerid], 1);
  2088. PlayerTextDrawColor(playerid, PTD_iPhone[5][playerid], -1);
  2089. PlayerTextDrawSetShadow(playerid, PTD_iPhone[5][playerid], 0);
  2090. PlayerTextDrawSetOutline(playerid, PTD_iPhone[5][playerid], 0);
  2091. PlayerTextDrawFont(playerid, PTD_iPhone[5][playerid], 4);
  2092.  
  2093. PTD_iPhone[6][playerid] = CreatePlayerTextDraw(playerid, 565.599304, 284.445159, "ld_poke:cd1d");
  2094. PlayerTextDrawLetterSize(playerid, PTD_iPhone[6][playerid], 0.000000, 0.000000);
  2095. PlayerTextDrawTextSize(playerid, PTD_iPhone[6][playerid], 19.000009, 23.644432);
  2096. PlayerTextDrawAlignment(playerid, PTD_iPhone[6][playerid], 1);
  2097. PlayerTextDrawColor(playerid, PTD_iPhone[6][playerid], -256);
  2098. PlayerTextDrawSetShadow(playerid, PTD_iPhone[6][playerid], 0);
  2099. PlayerTextDrawSetOutline(playerid, PTD_iPhone[6][playerid], 0);
  2100. PlayerTextDrawFont(playerid, PTD_iPhone[6][playerid], 4);
  2101.  
  2102. PTD_iPhone[7][playerid] = CreatePlayerTextDraw(playerid, 516.600280, 314.208770, "ld_poke:cd1d");
  2103. PlayerTextDrawLetterSize(playerid, PTD_iPhone[7][playerid], 0.000000, 0.000000);
  2104. PlayerTextDrawTextSize(playerid, PTD_iPhone[7][playerid], 19.000009, 23.644432);
  2105. PlayerTextDrawAlignment(playerid, PTD_iPhone[7][playerid], 1);
  2106. PlayerTextDrawColor(playerid, PTD_iPhone[7][playerid], -256);
  2107. PlayerTextDrawSetShadow(playerid, PTD_iPhone[7][playerid], 0);
  2108. PlayerTextDrawSetOutline(playerid, PTD_iPhone[7][playerid], 0);
  2109. PlayerTextDrawFont(playerid, PTD_iPhone[7][playerid], 4);
  2110.  
  2111. PTD_iPhone[8][playerid] = CreatePlayerTextDraw(playerid, 540.866333, 314.208770, "ld_poke:cd1d");
  2112. PlayerTextDrawLetterSize(playerid, PTD_iPhone[8][playerid], 0.000000, 0.000000);
  2113. PlayerTextDrawTextSize(playerid, PTD_iPhone[8][playerid], 19.000009, 23.644432);
  2114. PlayerTextDrawAlignment(playerid, PTD_iPhone[8][playerid], 1);
  2115. PlayerTextDrawColor(playerid, PTD_iPhone[8][playerid], -256);
  2116. PlayerTextDrawSetShadow(playerid, PTD_iPhone[8][playerid], 0);
  2117. PlayerTextDrawSetOutline(playerid, PTD_iPhone[8][playerid], 0);
  2118. PlayerTextDrawFont(playerid, PTD_iPhone[8][playerid], 4);
  2119.  
  2120. PTD_iPhone[9][playerid] = CreatePlayerTextDraw(playerid, 565.599304, 314.208770, "ld_poke:cd1d");
  2121. PlayerTextDrawLetterSize(playerid, PTD_iPhone[9][playerid], 0.000000, 0.000000);
  2122. PlayerTextDrawTextSize(playerid, PTD_iPhone[9][playerid], 19.000009, 23.644432);
  2123. PlayerTextDrawAlignment(playerid, PTD_iPhone[9][playerid], 1);
  2124. PlayerTextDrawColor(playerid, PTD_iPhone[9][playerid], -256);
  2125. PlayerTextDrawSetShadow(playerid, PTD_iPhone[9][playerid], 0);
  2126. PlayerTextDrawSetOutline(playerid, PTD_iPhone[9][playerid], 0);
  2127. PlayerTextDrawFont(playerid, PTD_iPhone[9][playerid], 4);
  2128.  
  2129. PTD_iPhone[10][playerid] = CreatePlayerTextDraw(playerid, 516.600280, 348.338378, "ld_poke:cd1d");
  2130. PlayerTextDrawLetterSize(playerid, PTD_iPhone[10][playerid], 0.000000, 0.000000);
  2131. PlayerTextDrawTextSize(playerid, PTD_iPhone[10][playerid], 19.000009, 23.644432);
  2132. PlayerTextDrawAlignment(playerid, PTD_iPhone[10][playerid], 1);
  2133. PlayerTextDrawColor(playerid, PTD_iPhone[10][playerid], -256);
  2134. PlayerTextDrawSetShadow(playerid, PTD_iPhone[10][playerid], 0);
  2135. PlayerTextDrawSetOutline(playerid, PTD_iPhone[10][playerid], 0);
  2136. PlayerTextDrawFont(playerid, PTD_iPhone[10][playerid], 4);
  2137.  
  2138. PTD_iPhone[11][playerid] = CreatePlayerTextDraw(playerid, 540.866333, 348.338378, "ld_poke:cd1d");
  2139. PlayerTextDrawLetterSize(playerid, PTD_iPhone[11][playerid], 0.000000, 0.000000);
  2140. PlayerTextDrawTextSize(playerid, PTD_iPhone[11][playerid], 19.000009, 23.644432);
  2141. PlayerTextDrawAlignment(playerid, PTD_iPhone[11][playerid], 1);
  2142. PlayerTextDrawColor(playerid, PTD_iPhone[11][playerid], -256);
  2143. PlayerTextDrawSetShadow(playerid, PTD_iPhone[11][playerid], 0);
  2144. PlayerTextDrawSetOutline(playerid, PTD_iPhone[11][playerid], 0);
  2145. PlayerTextDrawFont(playerid, PTD_iPhone[11][playerid], 4);
  2146.  
  2147. PTD_iPhone[12][playerid] = CreatePlayerTextDraw(playerid, 565.599304, 348.338378, "ld_poke:cd1d");
  2148. PlayerTextDrawLetterSize(playerid, PTD_iPhone[12][playerid], 0.000000, 0.000000);
  2149. PlayerTextDrawTextSize(playerid, PTD_iPhone[12][playerid], 19.000009, 23.644432);
  2150. PlayerTextDrawAlignment(playerid, PTD_iPhone[12][playerid], 1);
  2151. PlayerTextDrawColor(playerid, PTD_iPhone[12][playerid], -256);
  2152. PlayerTextDrawSetShadow(playerid, PTD_iPhone[12][playerid], 0);
  2153. PlayerTextDrawSetOutline(playerid, PTD_iPhone[12][playerid], 0);
  2154. PlayerTextDrawFont(playerid, PTD_iPhone[12][playerid], 4);
  2155.  
  2156. PTD_iPhone[13][playerid] = CreatePlayerTextDraw(playerid, 517.000122, 255.526031, "ld_poke:cd1d");
  2157. PlayerTextDrawLetterSize(playerid, PTD_iPhone[13][playerid], 0.000000, 0.000000);
  2158. PlayerTextDrawTextSize(playerid, PTD_iPhone[13][playerid], 18.333343, 22.399990);
  2159. PlayerTextDrawAlignment(playerid, PTD_iPhone[13][playerid], 1);
  2160. PlayerTextDrawColor(playerid, PTD_iPhone[13][playerid], 255);
  2161. PlayerTextDrawSetShadow(playerid, PTD_iPhone[13][playerid], 0);
  2162. PlayerTextDrawSetOutline(playerid, PTD_iPhone[13][playerid], 0);
  2163. PlayerTextDrawFont(playerid, PTD_iPhone[13][playerid], 4);
  2164.  
  2165. PTD_iPhone[14][playerid] = CreatePlayerTextDraw(playerid, 541.266174, 255.526031, "ld_poke:cd1d");
  2166. PlayerTextDrawLetterSize(playerid, PTD_iPhone[14][playerid], 0.000000, 0.000000);
  2167. PlayerTextDrawTextSize(playerid, PTD_iPhone[14][playerid], 18.333343, 22.399990);
  2168. PlayerTextDrawAlignment(playerid, PTD_iPhone[14][playerid], 1);
  2169. PlayerTextDrawColor(playerid, PTD_iPhone[14][playerid], 255);
  2170. PlayerTextDrawSetShadow(playerid, PTD_iPhone[14][playerid], 0);
  2171. PlayerTextDrawSetOutline(playerid, PTD_iPhone[14][playerid], 0);
  2172. PlayerTextDrawFont(playerid, PTD_iPhone[14][playerid], 4);
  2173.  
  2174. PTD_iPhone[15][playerid] = CreatePlayerTextDraw(playerid, 565.999145, 255.526031, "ld_poke:cd1d");
  2175. PlayerTextDrawLetterSize(playerid, PTD_iPhone[15][playerid], 0.000000, 0.000000);
  2176. PlayerTextDrawTextSize(playerid, PTD_iPhone[15][playerid], 18.333343, 22.399990);
  2177. PlayerTextDrawAlignment(playerid, PTD_iPhone[15][playerid], 1);
  2178. PlayerTextDrawColor(playerid, PTD_iPhone[15][playerid], 255);
  2179. PlayerTextDrawSetShadow(playerid, PTD_iPhone[15][playerid], 0);
  2180. PlayerTextDrawSetOutline(playerid, PTD_iPhone[15][playerid], 0);
  2181. PlayerTextDrawFont(playerid, PTD_iPhone[15][playerid], 4);
  2182.  
  2183. PTD_iPhone[16][playerid] = CreatePlayerTextDraw(playerid, 517.000122, 285.289642, "ld_poke:cd1d");
  2184. PlayerTextDrawLetterSize(playerid, PTD_iPhone[16][playerid], 0.000000, 0.000000);
  2185. PlayerTextDrawTextSize(playerid, PTD_iPhone[16][playerid], 18.333343, 22.399990);
  2186. PlayerTextDrawAlignment(playerid, PTD_iPhone[16][playerid], 1);
  2187. PlayerTextDrawColor(playerid, PTD_iPhone[16][playerid], 255);
  2188. PlayerTextDrawSetShadow(playerid, PTD_iPhone[16][playerid], 0);
  2189. PlayerTextDrawSetOutline(playerid, PTD_iPhone[16][playerid], 0);
  2190. PlayerTextDrawFont(playerid, PTD_iPhone[16][playerid], 4);
  2191.  
  2192. PTD_iPhone[17][playerid] = CreatePlayerTextDraw(playerid, 541.266174, 285.289642, "ld_poke:cd1d");
  2193. PlayerTextDrawLetterSize(playerid, PTD_iPhone[17][playerid], 0.000000, 0.000000);
  2194. PlayerTextDrawTextSize(playerid, PTD_iPhone[17][playerid], 18.333343, 22.399990);
  2195. PlayerTextDrawAlignment(playerid, PTD_iPhone[17][playerid], 1);
  2196. PlayerTextDrawColor(playerid, PTD_iPhone[17][playerid], 255);
  2197. PlayerTextDrawSetShadow(playerid, PTD_iPhone[17][playerid], 0);
  2198. PlayerTextDrawSetOutline(playerid, PTD_iPhone[17][playerid], 0);
  2199. PlayerTextDrawFont(playerid, PTD_iPhone[17][playerid], 4);
  2200.  
  2201. PTD_iPhone[18][playerid] = CreatePlayerTextDraw(playerid, 565.999145, 285.289642, "ld_poke:cd1d");
  2202. PlayerTextDrawLetterSize(playerid, PTD_iPhone[18][playerid], 0.000000, 0.000000);
  2203. PlayerTextDrawTextSize(playerid, PTD_iPhone[18][playerid], 18.333343, 22.399990);
  2204. PlayerTextDrawAlignment(playerid, PTD_iPhone[18][playerid], 1);
  2205. PlayerTextDrawColor(playerid, PTD_iPhone[18][playerid], 255);
  2206. PlayerTextDrawSetShadow(playerid, PTD_iPhone[18][playerid], 0);
  2207. PlayerTextDrawSetOutline(playerid, PTD_iPhone[18][playerid], 0);
  2208. PlayerTextDrawFont(playerid, PTD_iPhone[18][playerid], 4);
  2209.  
  2210. PTD_iPhone[19][playerid] = CreatePlayerTextDraw(playerid, 517.000122, 315.053253, "ld_poke:cd1d");
  2211. PlayerTextDrawLetterSize(playerid, PTD_iPhone[19][playerid], 0.000000, 0.000000);
  2212. PlayerTextDrawTextSize(playerid, PTD_iPhone[19][playerid], 18.333343, 22.399990);
  2213. PlayerTextDrawAlignment(playerid, PTD_iPhone[19][playerid], 1);
  2214. PlayerTextDrawColor(playerid, PTD_iPhone[19][playerid], 255);
  2215. PlayerTextDrawSetShadow(playerid, PTD_iPhone[19][playerid], 0);
  2216. PlayerTextDrawSetOutline(playerid, PTD_iPhone[19][playerid], 0);
  2217. PlayerTextDrawFont(playerid, PTD_iPhone[19][playerid], 4);
  2218.  
  2219. PTD_iPhone[20][playerid] = CreatePlayerTextDraw(playerid, 541.266174, 315.053253, "ld_poke:cd1d");
  2220. PlayerTextDrawLetterSize(playerid, PTD_iPhone[20][playerid], 0.000000, 0.000000);
  2221. PlayerTextDrawTextSize(playerid, PTD_iPhone[20][playerid], 18.333343, 22.399990);
  2222. PlayerTextDrawAlignment(playerid, PTD_iPhone[20][playerid], 1);
  2223. PlayerTextDrawColor(playerid, PTD_iPhone[20][playerid], 255);
  2224. PlayerTextDrawSetShadow(playerid, PTD_iPhone[20][playerid], 0);
  2225. PlayerTextDrawSetOutline(playerid, PTD_iPhone[20][playerid], 0);
  2226. PlayerTextDrawFont(playerid, PTD_iPhone[20][playerid], 4);
  2227.  
  2228. PTD_iPhone[21][playerid] = CreatePlayerTextDraw(playerid, 565.999145, 315.053253, "ld_poke:cd1d");
  2229. PlayerTextDrawLetterSize(playerid, PTD_iPhone[21][playerid], 0.000000, 0.000000);
  2230. PlayerTextDrawTextSize(playerid, PTD_iPhone[21][playerid], 18.333343, 22.399990);
  2231. PlayerTextDrawAlignment(playerid, PTD_iPhone[21][playerid], 1);
  2232. PlayerTextDrawColor(playerid, PTD_iPhone[21][playerid], 255);
  2233. PlayerTextDrawSetShadow(playerid, PTD_iPhone[21][playerid], 0);
  2234. PlayerTextDrawSetOutline(playerid, PTD_iPhone[21][playerid], 0);
  2235. PlayerTextDrawFont(playerid, PTD_iPhone[21][playerid], 4);
  2236.  
  2237. PTD_iPhone[22][playerid] = CreatePlayerTextDraw(playerid, 517.000122, 349.182861, "ld_poke:cd1d");
  2238. PlayerTextDrawLetterSize(playerid, PTD_iPhone[22][playerid], 0.000000, 0.000000);
  2239. PlayerTextDrawTextSize(playerid, PTD_iPhone[22][playerid], 18.333343, 22.399990);
  2240. PlayerTextDrawAlignment(playerid, PTD_iPhone[22][playerid], 1);
  2241. PlayerTextDrawColor(playerid, PTD_iPhone[22][playerid], 255);
  2242. PlayerTextDrawSetShadow(playerid, PTD_iPhone[22][playerid], 0);
  2243. PlayerTextDrawSetOutline(playerid, PTD_iPhone[22][playerid], 0);
  2244. PlayerTextDrawFont(playerid, PTD_iPhone[22][playerid], 4);
  2245.  
  2246. PTD_iPhone[23][playerid] = CreatePlayerTextDraw(playerid, 541.266174, 349.182861, "ld_poke:cd1d");
  2247. PlayerTextDrawLetterSize(playerid, PTD_iPhone[23][playerid], 0.000000, 0.000000);
  2248. PlayerTextDrawTextSize(playerid, PTD_iPhone[23][playerid], 18.333343, 22.399990);
  2249. PlayerTextDrawAlignment(playerid, PTD_iPhone[23][playerid], 1);
  2250. PlayerTextDrawColor(playerid, PTD_iPhone[23][playerid], 255);
  2251. PlayerTextDrawSetShadow(playerid, PTD_iPhone[23][playerid], 0);
  2252. PlayerTextDrawSetOutline(playerid, PTD_iPhone[23][playerid], 0);
  2253. PlayerTextDrawFont(playerid, PTD_iPhone[23][playerid], 4);
  2254.  
  2255. PTD_iPhone[24][playerid] = CreatePlayerTextDraw(playerid, 565.999145, 349.182861, "ld_poke:cd1d");
  2256. PlayerTextDrawLetterSize(playerid, PTD_iPhone[24][playerid], 0.000000, 0.000000);
  2257. PlayerTextDrawTextSize(playerid, PTD_iPhone[24][playerid], 18.333343, 22.399990);
  2258. PlayerTextDrawAlignment(playerid, PTD_iPhone[24][playerid], 1);
  2259. PlayerTextDrawColor(playerid, PTD_iPhone[24][playerid], 255);
  2260. PlayerTextDrawSetShadow(playerid, PTD_iPhone[24][playerid], 0);
  2261. PlayerTextDrawSetOutline(playerid, PTD_iPhone[24][playerid], 0);
  2262. PlayerTextDrawFont(playerid, PTD_iPhone[24][playerid], 4);
  2263.  
  2264. PTD_iPhone[25][playerid] = CreatePlayerTextDraw(playerid, 518.700134, 257.085144, "ld_grav:timer");
  2265. PlayerTextDrawLetterSize(playerid, PTD_iPhone[25][playerid], 0.000000, 0.000000);
  2266. PlayerTextDrawTextSize(playerid, PTD_iPhone[25][playerid], 14.999999, 17.422224);
  2267. PlayerTextDrawAlignment(playerid, PTD_iPhone[25][playerid], 1);
  2268. PlayerTextDrawColor(playerid, PTD_iPhone[25][playerid], -1);
  2269. PlayerTextDrawSetShadow(playerid, PTD_iPhone[25][playerid], 0);
  2270. PlayerTextDrawSetOutline(playerid, PTD_iPhone[25][playerid], 0);
  2271. PlayerTextDrawFont(playerid, PTD_iPhone[25][playerid], 4);
  2272.  
  2273. PTD_iPhone[26][playerid] = CreatePlayerTextDraw(playerid, 543.000000, 258.140777, "hud:radar_gym");
  2274. PlayerTextDrawLetterSize(playerid, PTD_iPhone[26][playerid], 0.000000, 0.000000);
  2275. PlayerTextDrawTextSize(playerid, PTD_iPhone[26][playerid], 14.999999, 17.422224);
  2276. PlayerTextDrawAlignment(playerid, PTD_iPhone[26][playerid], 1);
  2277. PlayerTextDrawColor(playerid, PTD_iPhone[26][playerid], -1);
  2278. PlayerTextDrawSetShadow(playerid, PTD_iPhone[26][playerid], 0);
  2279. PlayerTextDrawSetOutline(playerid, PTD_iPhone[26][playerid], 0);
  2280. PlayerTextDrawFont(playerid, PTD_iPhone[26][playerid], 4);
  2281.  
  2282. PTD_iPhone[27][playerid] = CreatePlayerTextDraw(playerid, 567.699951, 257.611114, "hud:radar_enemyattack");
  2283. PlayerTextDrawLetterSize(playerid, PTD_iPhone[27][playerid], 0.000000, 0.000000);
  2284. PlayerTextDrawTextSize(playerid, PTD_iPhone[27][playerid], 14.999999, 17.422224);
  2285. PlayerTextDrawAlignment(playerid, PTD_iPhone[27][playerid], 1);
  2286. PlayerTextDrawColor(playerid, PTD_iPhone[27][playerid], -1);
  2287. PlayerTextDrawSetShadow(playerid, PTD_iPhone[27][playerid], 0);
  2288. PlayerTextDrawSetOutline(playerid, PTD_iPhone[27][playerid], 0);
  2289. PlayerTextDrawFont(playerid, PTD_iPhone[27][playerid], 4);
  2290.  
  2291. PTD_iPhone[28][playerid] = CreatePlayerTextDraw(playerid, 518.500183, 287.118560, "hud:radar_fire");
  2292. PlayerTextDrawLetterSize(playerid, PTD_iPhone[28][playerid], 0.000000, 0.000000);
  2293. PlayerTextDrawTextSize(playerid, PTD_iPhone[28][playerid], 14.999999, 17.422224);
  2294. PlayerTextDrawAlignment(playerid, PTD_iPhone[28][playerid], 1);
  2295. PlayerTextDrawColor(playerid, PTD_iPhone[28][playerid], -1);
  2296. PlayerTextDrawSetShadow(playerid, PTD_iPhone[28][playerid], 0);
  2297. PlayerTextDrawSetOutline(playerid, PTD_iPhone[28][playerid], 0);
  2298. PlayerTextDrawFont(playerid, PTD_iPhone[28][playerid], 4);
  2299.  
  2300. PTD_iPhone[29][playerid] = CreatePlayerTextDraw(playerid, 542.966796, 287.288879, "hud:radar_modgarage");
  2301. PlayerTextDrawLetterSize(playerid, PTD_iPhone[29][playerid], 0.000000, 0.000000);
  2302. PlayerTextDrawTextSize(playerid, PTD_iPhone[29][playerid], 14.999999, 17.422224);
  2303. PlayerTextDrawAlignment(playerid, PTD_iPhone[29][playerid], 1);
  2304. PlayerTextDrawColor(playerid, PTD_iPhone[29][playerid], -1);
  2305. PlayerTextDrawSetShadow(playerid, PTD_iPhone[29][playerid], 0);
  2306. PlayerTextDrawSetOutline(playerid, PTD_iPhone[29][playerid], 0);
  2307. PlayerTextDrawFont(playerid, PTD_iPhone[29][playerid], 4);
  2308.  
  2309. PTD_iPhone[30][playerid] = CreatePlayerTextDraw(playerid, 567.633361, 287.359222, "hud:arrow");
  2310. PlayerTextDrawLetterSize(playerid, PTD_iPhone[30][playerid], 0.000000, 0.000000);
  2311. PlayerTextDrawTextSize(playerid, PTD_iPhone[30][playerid], 14.999999, 17.422224);
  2312. PlayerTextDrawAlignment(playerid, PTD_iPhone[30][playerid], 1);
  2313. PlayerTextDrawColor(playerid, PTD_iPhone[30][playerid], -1);
  2314. PlayerTextDrawSetShadow(playerid, PTD_iPhone[30][playerid], 0);
  2315. PlayerTextDrawSetOutline(playerid, PTD_iPhone[30][playerid], 0);
  2316. PlayerTextDrawFont(playerid, PTD_iPhone[30][playerid], 4);
  2317.  
  2318. PTD_iPhone[31][playerid] = CreatePlayerTextDraw(playerid, 518.900207, 316.781402, "hud:radar_flag");
  2319. PlayerTextDrawLetterSize(playerid, PTD_iPhone[31][playerid], 0.000000, 0.000000);
  2320. PlayerTextDrawTextSize(playerid, PTD_iPhone[31][playerid], 14.999999, 17.422224);
  2321. PlayerTextDrawAlignment(playerid, PTD_iPhone[31][playerid], 1);
  2322. PlayerTextDrawColor(playerid, PTD_iPhone[31][playerid], -1);
  2323. PlayerTextDrawSetShadow(playerid, PTD_iPhone[31][playerid], 0);
  2324. PlayerTextDrawSetOutline(playerid, PTD_iPhone[31][playerid], 0);
  2325. PlayerTextDrawFont(playerid, PTD_iPhone[31][playerid], 4);
  2326.  
  2327. PTD_iPhone[32][playerid] = CreatePlayerTextDraw(playerid, 542.866943, 317.151763, "hud:radar_datedisco");
  2328. PlayerTextDrawLetterSize(playerid, PTD_iPhone[32][playerid], 0.000000, 0.000000);
  2329. PlayerTextDrawTextSize(playerid, PTD_iPhone[32][playerid], 14.999999, 17.422224);
  2330. PlayerTextDrawAlignment(playerid, PTD_iPhone[32][playerid], 1);
  2331. PlayerTextDrawColor(playerid, PTD_iPhone[32][playerid], -1);
  2332. PlayerTextDrawSetShadow(playerid, PTD_iPhone[32][playerid], 0);
  2333. PlayerTextDrawSetOutline(playerid, PTD_iPhone[32][playerid], 0);
  2334. PlayerTextDrawFont(playerid, PTD_iPhone[32][playerid], 4);
  2335.  
  2336. PTD_iPhone[33][playerid] = CreatePlayerTextDraw(playerid, 567.500305, 317.007293, "hud:radar_light");
  2337. PlayerTextDrawLetterSize(playerid, PTD_iPhone[33][playerid], 0.000000, 0.000000);
  2338. PlayerTextDrawTextSize(playerid, PTD_iPhone[33][playerid], 14.999999, 17.422224);
  2339. PlayerTextDrawAlignment(playerid, PTD_iPhone[33][playerid], 1);
  2340. PlayerTextDrawColor(playerid, PTD_iPhone[33][playerid], -1);
  2341. PlayerTextDrawSetShadow(playerid, PTD_iPhone[33][playerid], 0);
  2342. PlayerTextDrawSetOutline(playerid, PTD_iPhone[33][playerid], 0);
  2343. PlayerTextDrawFont(playerid, PTD_iPhone[33][playerid], 4);
  2344.  
  2345. PTD_iPhone[34][playerid] = CreatePlayerTextDraw(playerid, 518.566955, 351.092498, "hud:radar_propertyg");
  2346. PlayerTextDrawLetterSize(playerid, PTD_iPhone[34][playerid], 0.000000, 0.000000);
  2347. PlayerTextDrawTextSize(playerid, PTD_iPhone[34][playerid], 14.999999, 17.422224);
  2348. PlayerTextDrawAlignment(playerid, PTD_iPhone[34][playerid], 1);
  2349. PlayerTextDrawColor(playerid, PTD_iPhone[34][playerid], -1);
  2350. PlayerTextDrawSetShadow(playerid, PTD_iPhone[34][playerid], 0);
  2351. PlayerTextDrawSetOutline(playerid, PTD_iPhone[34][playerid], 0);
  2352. PlayerTextDrawFont(playerid, PTD_iPhone[34][playerid], 4);
  2353.  
  2354. PTD_iPhone[35][playerid] = CreatePlayerTextDraw(playerid, 543.100280, 351.103698, "hud:radar_locosyndicate");
  2355. PlayerTextDrawLetterSize(playerid, PTD_iPhone[35][playerid], 0.000000, 0.000000);
  2356. PlayerTextDrawTextSize(playerid, PTD_iPhone[35][playerid], 14.999999, 17.422224);
  2357. PlayerTextDrawAlignment(playerid, PTD_iPhone[35][playerid], 1);
  2358. PlayerTextDrawColor(playerid, PTD_iPhone[35][playerid], -1);
  2359. PlayerTextDrawSetShadow(playerid, PTD_iPhone[35][playerid], 0);
  2360. PlayerTextDrawSetOutline(playerid, PTD_iPhone[35][playerid], 0);
  2361. PlayerTextDrawFont(playerid, PTD_iPhone[35][playerid], 4);
  2362.  
  2363. PTD_iPhone[36][playerid] = CreatePlayerTextDraw(playerid, 567.566833, 351.147979, "hud:radar_propertyr");
  2364. PlayerTextDrawLetterSize(playerid, PTD_iPhone[36][playerid], 0.000000, 0.000000);
  2365. PlayerTextDrawTextSize(playerid, PTD_iPhone[36][playerid], 14.999999, 17.422224);
  2366. PlayerTextDrawAlignment(playerid, PTD_iPhone[36][playerid], 1);
  2367. PlayerTextDrawColor(playerid, PTD_iPhone[36][playerid], -1);
  2368. PlayerTextDrawSetShadow(playerid, PTD_iPhone[36][playerid], 0);
  2369. PlayerTextDrawSetOutline(playerid, PTD_iPhone[36][playerid], 0);
  2370. PlayerTextDrawFont(playerid, PTD_iPhone[36][playerid], 4);
  2371.  
  2372. PTD_iPhone_Gallery[playerid] = CreatePlayerTextDraw(playerid, 511.266784, 249.677749, "loadsc1:loadsc1");
  2373. PlayerTextDrawLetterSize(playerid, PTD_iPhone_Gallery[playerid], 0.000000, 0.000000);
  2374. PlayerTextDrawTextSize(playerid, PTD_iPhone_Gallery[playerid], 78.666625, 70.518501);
  2375. PlayerTextDrawAlignment(playerid, PTD_iPhone_Gallery[playerid], 1);
  2376. PlayerTextDrawColor(playerid, PTD_iPhone_Gallery[playerid], -1);
  2377. PlayerTextDrawSetShadow(playerid, PTD_iPhone_Gallery[playerid], 0);
  2378. PlayerTextDrawSetOutline(playerid, PTD_iPhone_Gallery[playerid], 0);
  2379. PlayerTextDrawFont(playerid, PTD_iPhone_Gallery[playerid], 4);
  2380.  
  2381. PTD_iPhone_GPS[playerid] = CreatePlayerTextDraw(playerid, 548.666931, 266.481384, "Los Santos");
  2382. PlayerTextDrawLetterSize(playerid, PTD_iPhone_GPS[playerid], 0.253666, 1.322074);
  2383. PlayerTextDrawAlignment(playerid, PTD_iPhone_GPS[playerid], 2);
  2384. PlayerTextDrawColor(playerid, PTD_iPhone_GPS[playerid], -5963521);
  2385. PlayerTextDrawSetShadow(playerid, PTD_iPhone_GPS[playerid], 0);
  2386. PlayerTextDrawSetOutline(playerid, PTD_iPhone_GPS[playerid], 1);
  2387. PlayerTextDrawBackgroundColor(playerid, PTD_iPhone_GPS[playerid], 255);
  2388. PlayerTextDrawFont(playerid, PTD_iPhone_GPS[playerid], 1);
  2389. PlayerTextDrawSetProportional(playerid, PTD_iPhone_GPS[playerid], 1);
  2390.  
  2391. PTD_iPhone_Calculator[playerid] = CreatePlayerTextDraw(playerid, 583.899963, 268.370300, "0");
  2392. PlayerTextDrawLetterSize(playerid, PTD_iPhone_Calculator[playerid], 0.267999, 1.599999);
  2393. PlayerTextDrawAlignment(playerid, PTD_iPhone_Calculator[playerid], 3);
  2394. PlayerTextDrawColor(playerid, PTD_iPhone_Calculator[playerid], -1);
  2395. PlayerTextDrawSetShadow(playerid, PTD_iPhone_Calculator[playerid], 0);
  2396. PlayerTextDrawSetOutline(playerid, PTD_iPhone_Calculator[playerid], 0);
  2397. PlayerTextDrawBackgroundColor(playerid, PTD_iPhone_Calculator[playerid], 51);
  2398. PlayerTextDrawFont(playerid, PTD_iPhone_Calculator[playerid], 2);
  2399. PlayerTextDrawSetProportional(playerid, PTD_iPhone_Calculator[playerid], 1);
  2400.  
  2401. PTD_iPhone_Call[playerid] = CreatePlayerTextDraw(playerid, 586.666870, 264.651885, "_");
  2402. PlayerTextDrawLetterSize(playerid, PTD_iPhone_Call[playerid], 0.333332, 1.239110);
  2403. PlayerTextDrawAlignment(playerid, PTD_iPhone_Call[playerid], 3);
  2404. PlayerTextDrawColor(playerid, PTD_iPhone_Call[playerid], -1);
  2405. PlayerTextDrawSetShadow(playerid, PTD_iPhone_Call[playerid], 0);
  2406. PlayerTextDrawSetOutline(playerid, PTD_iPhone_Call[playerid], 0);
  2407. PlayerTextDrawBackgroundColor(playerid, PTD_iPhone_Call[playerid], 51);
  2408. PlayerTextDrawFont(playerid, PTD_iPhone_Call[playerid], 1);
  2409. PlayerTextDrawSetProportional(playerid, PTD_iPhone_Call[playerid], 1);
  2410. return 1;
  2411. }
  2412.  
  2413. stock DestroyPlayerIphone(playerid)
  2414. {
  2415. loop(0, 37, PHONE) PlayerTextDrawDestroy(playerid, PTD_iPhone[PHONE][playerid]);
  2416. PlayerTextDrawDestroy(playerid, PTD_iPhone_Gallery[playerid]);
  2417. PlayerTextDrawDestroy(playerid, PTD_iPhone_GPS[playerid]);
  2418. PlayerTextDrawDestroy(playerid, PTD_iPhone_Calculator[playerid]);
  2419. PlayerTextDrawDestroy(playerid, PTD_iPhone_Call[playerid]);
  2420. DestroyObject(firstperson[playerid]);
  2421. return 1;
  2422. }
  2423.  
  2424.  
  2425. /*
  2426. */[/quote]
Advertisement
Add Comment
Please, Sign In to add comment