Guest User

Pro-Pawn.Ru

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