Guest User

iPhone Script

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