phone_new.pwn 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220
  1. #include <YSI\y_hooks>
  2. #define PHONE_NAME "jPhone"
  3. #define DIALOG_PHONE_DIAL 9200
  4. #define DIALOG_PHONE_CONTACTS 9201
  5. #define DIALOG_PHONE_CAMERA 9202
  6. #define DIALOG_PHONE_SETTINGS 9203
  7. #define DIALOG_PHONE_RINGTONES 9204
  8. #define DIALOG_PHONE_RINGTONES2 9205
  9. #define DIALOG_PHONE_WALLPAPERS 9206
  10. #define DIALOG_PHONE_CONTACTLIST 9207
  11. #define DIALOG_PHONE_ADDCONTACT 9208
  12. #define DIALOG_PHONE_CONTACTLISTDEL 9209
  13. #define DIALOG_PHONE_YPAGES 9210
  14. #define DIALOG_PHONE_BUSINESSES 9211
  15. #define DIALOG_PHONE_BUSINESSES2 9212
  16. #define DIALOG_PHONE_PAYPHONES 9213
  17. #define DIALOG_PHONE_ADDCONTACT1 9214
  18. #define MAX_CONTACTS 10
  19. #define MAX_RADIOTOWERS 10
  20. #define PVAR_PLAYINGRINGTONE "PH_PR"
  21. #define PVAR_PHONEDELCONTACT "PH_DC"
  22. enum eRadioTowerData {
  23. rt_szName[16],
  24. rt_iObjectID,
  25. rt_iAreaID
  26. };
  27. new arrRadioTowerData[MAX_RADIOTOWERS][eRadioTowerData];
  28. new szPhoneWP[][] = {
  29. "LD_DUAL:Health",
  30. "splash1:splash1",
  31. "splash2:splash2",
  32. "NGRP:background",
  33. "load0uk:load0uk",
  34. "loadsc1:loadsc1",
  35. "loadsc2:loadsc2",
  36. "loadsc3:loadsc3",
  37. "loadsc4:loadsc4",
  38. "loadsc5:loadsc5",
  39. "loadsc6:loadsc6",
  40. "loadsc7:loadsc7",
  41. "loadsc8:loadsc8",
  42. "loadsc9:loadsc9",
  43. "loadsc10:loadsc10",
  44. "loadsc11:loadsc11",
  45. "loadsc12:loadsc12",
  46. "loadsc13:loadsc13",
  47. "loadsc14:loadsc14",
  48. "LD_BUM:bum1",
  49. "LD_BUM:bum2",
  50. "LD_DUAL:backgnd",
  51. "ld_grav:sky"
  52. };
  53. new iPhoneRingTone[] = {
  54. 1062, // SOUND_GOGO_TRACK_START
  55. 1068, // SOUND_DUAL_TRACK_START
  56. 1076, // SOUND_BEE_TRACK_START
  57. 1097, // SOUND_AWARD_TRACK_START
  58. 1183, // SOUND_DRIVING_AWARD_TRACK_START
  59. 1185, // SOUND_BIKE_AWARD_TRACK_START
  60. 1187, // SOUND_PILOT_AWARD_TRAC_START
  61. };
  62. // new Text:PhoneTD[43];
  63. timer Phone_StopRingtone[5000](iPlayerID) {
  64. PlayerPlaySound(iPlayerID, 1188, 0.0, 0.0, 0.0);
  65. return 1;
  66. }
  67. hook OnGameModeInit() {
  68. Phone_InitRadioTowers();
  69. }
  70. hook OnPlayerConnect(playerid) {
  71. Phone_InitTD(playerid);
  72. }
  73. hook OnPlayerDisconnect(playerid, reason) {
  74. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][0]);
  75. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][1]);
  76. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][2]);
  77. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][3]);
  78. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][4]);
  79. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][5]);
  80. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][6]);
  81. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][7]);
  82. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][8]);
  83. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][9]);
  84. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][10]);
  85. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][11]);
  86. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][12]);
  87. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][13]);
  88. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][14]);
  89. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][15]);
  90. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][16]);
  91. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][17]);
  92. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][18]);
  93. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][19]);
  94. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][20]);
  95. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][21]);
  96. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][22]);
  97. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][23]);
  98. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][0]);
  99. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][1]);
  100. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][2]);
  101. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][3]);
  102. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][4]);
  103. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][5]);
  104. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][6]);
  105. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][7]);
  106. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][8]);
  107. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][9]);
  108. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][10]);
  109. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][11]);
  110. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][12]);
  111. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][13]);
  112. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][14]);
  113. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][15]);
  114. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][16]);
  115. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][17]);
  116. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][18]);
  117. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][19]);
  118. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][20]);
  119. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][21]);
  120. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][22]);
  121. PlayerTextDrawDestroy(playerid, phone_PTextDraw[playerid][23]);
  122. return 1;
  123. }
  124. hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
  125. if(newkeys == KEY_YES) {
  126. if(Bit_State(arrPlayerBits[playerid], phone_bitState)) {
  127. new iPMenuItem = GetPVarInt(playerid, "PMenuItem");
  128. if(iPMenuItem != 0) {
  129. SetPVarInt(playerid, "PMenuItem", iPMenuItem-1);
  130. PlayerTextDrawBoxColor(playerid, phone_PTextDraw[playerid][12 + iPMenuItem-1], 0x22222266);
  131. PlayerTextDrawBoxColor(playerid, phone_PTextDraw[playerid][12 + iPMenuItem], 0xFFFFFF00);
  132. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][12 + iPMenuItem-1]);
  133. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][12 + iPMenuItem]);
  134. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][12 + iPMenuItem-1]);
  135. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][12 + iPMenuItem]);
  136. }
  137. }
  138. }
  139. if(newkeys == KEY_NO) {
  140. if(Bit_State(arrPlayerBits[playerid], phone_bitState)) {
  141. new iPMenuItem = GetPVarInt(playerid, "PMenuItem");
  142. if(iPMenuItem < 8) { // max menu item
  143. SetPVarInt(playerid, "PMenuItem", GetPVarInt(playerid, "PMenuItem")+1);
  144. PlayerTextDrawBoxColor(playerid, phone_PTextDraw[playerid][12 + iPMenuItem+1], 0x22222266);
  145. PlayerTextDrawBoxColor(playerid, phone_PTextDraw[playerid][12 + iPMenuItem], 0xFFFFFF00);
  146. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][12 + iPMenuItem+1]);
  147. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][12 + iPMenuItem]);
  148. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][12 + iPMenuItem+1]);
  149. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][12 + iPMenuItem]);
  150. }
  151. }
  152. }
  153. if(newkeys & KEY_SPRINT) {
  154. if(Bit_State(arrPlayerBits[playerid], phone_bitState)) {
  155. Phone_SelectMenu(playerid);
  156. }
  157. }
  158. if(newkeys & KEY_ANALOG_RIGHT) {
  159. if(Bit_State(arrPlayerBits[playerid], phone_bitCamState)) {
  160. new Float:fPos[4],
  161. Float:fCam[2];
  162. GetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]);
  163. //GetPlayerFacingAngle(playerid, fPos[3]);
  164. if(!GetPVarType(playerid, "Flt")) GetPlayerFacingAngle(playerid, fPos[3]);
  165. fPos[3] = GetPVarFloat(playerid, "Flt");
  166. if(fPos[3] >= 360) fPos[3] = 0;
  167. fPos[3] += 1.25;
  168. fCam[0] = fPos[0] + 1.4 * floatcos(fPos[3], degrees);
  169. fCam[1] = fPos[1] + 1.4 * floatsin(fPos[3], degrees);
  170. SetPlayerCameraPos(playerid, fCam[0], fCam[1], fPos[2] + 0.9);
  171. SetPlayerCameraLookAt(playerid, fPos[0], fPos[1], fPos[2] + 0.9);
  172. SetPlayerFacingAngle(playerid, fPos[3] - 90.0);
  173. SetPVarFloat(playerid, "Flt", fPos[3]);
  174. }
  175. }
  176. if(newkeys & KEY_ANALOG_LEFT)
  177. {
  178. if(Bit_State(arrPlayerBits[playerid], phone_bitCamState)) {
  179. new Float:fPos[4],
  180. Float:fCam[2];
  181. GetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]);
  182. GetXYInFrontOfPlayer(playerid, fPos[0], fPos[1], -0.25);
  183. // GetPlayerFacingAngle(playerid, fPos[3]);
  184. if(!GetPVarType(playerid, "Flt")) GetPlayerFacingAngle(playerid, fPos[3]);
  185. fPos[3] = GetPVarFloat(playerid, "Flt");
  186. if(fPos[3] >= 360) fPos[3] = 0;
  187. fPos[3] -= 1.25;
  188. fCam[0] = fPos[0] + 1.4 * floatcos(fPos[3], degrees);
  189. fCam[1] = fPos[1] + 1.4 * floatsin(fPos[3], degrees);
  190. SetPlayerCameraPos(playerid, fCam[0], fCam[1], fPos[2] + 0.9);
  191. SetPlayerCameraLookAt(playerid, fPos[0], fPos[1], fPos[2] + 0.9);
  192. SetPlayerFacingAngle(playerid, fPos[3] - 90.0);
  193. SetPVarFloat(playerid, "Flt", fPos[3]);
  194. }
  195. }
  196. return 1;
  197. }
  198. Phone_SelectMenu(playerid) {
  199. new iPMenuItem = GetPVarInt(playerid, "PMenuItem");
  200. PlayerTextDrawBoxColor(playerid, phone_PTextDraw[playerid][12 + iPMenuItem], 0x00000000);
  201. switch(iPMenuItem) {
  202. case 0: Phone_Call(playerid);
  203. case 1: Phone_Contacts(playerid);
  204. case 2: Phone_Events(playerid);
  205. case 3: Phone_Ads(playerid);
  206. case 4: Phone_Music(playerid);
  207. case 5: Phone_SAN(playerid);
  208. case 6: Phone_Map(playerid);
  209. case 7: Phone_Camera(playerid);
  210. case 8: Phone_Settings(playerid);
  211. }
  212. Phone_Main(playerid);
  213. }
  214. hook OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  215. if(arrAntiCheat[playerid][ac_iFlags][AC_DIALOGSPOOFING] > 0) return 1;
  216. switch(dialogid)
  217. {
  218. case DIALOG_PHONE_COLOR:
  219. {
  220. if(response)
  221. {
  222. PlayerInfo[playerid][pPhoneColor] = listitem;
  223. }
  224. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Use /phone to access your phone. {BBBBBB}(Use /pcl to get the mouse cursor back when accidentally cancelling your interaction.)");
  225. return 1;
  226. }
  227. case DIALOG_PHONE_DIAL:
  228. {
  229. if(!response) return 1;
  230. if(isnull(inputtext)) return 1;
  231. cmd_call(playerid, inputtext);
  232. return 1;
  233. }
  234. case DIALOG_PHONE_PAYPHONES: {
  235. cmd_call(playerid, arrPayPhoneData[ListItemTrackId[playerid][listitem]][pp_iNumber]);
  236. return 1;
  237. }
  238. case DIALOG_PHONE_CONTACTS:
  239. {
  240. if(!response) return DeletePVar(playerid, PVAR_PHONEDELCONTACT), 1;
  241. switch(listitem)
  242. {
  243. case 0: ShowPlayerDialogEx(playerid, DIALOG_PHONE_YPAGES, DIALOG_STYLE_TABLIST_HEADERS, "Yellow Pages", "Name\tPhone Number\n\
  244. --> Businesses\tMENU ->\n\
  245. Government - City Hall/White House\t1-800-4444\n\
  246. SA News\t1-800-1800\n\
  247. BubbaGump Fish 'n Shrimps Shipment Service\t1-800-6666\n\
  248. Frontier Transportation Services\t1-800-8080\n\
  249. San Andreas Towing and Repossession\t1-800-1111\n\
  250. San Andreas Prison Service\t18001020\n\
  251. Farva Car Repair Co.\t1-800-2232 ", "Select", "Cancel");
  252. case 1: {
  253. szMiscArray[0] = 0;
  254. new x,
  255. szZone[MAX_ZONE_NAME];
  256. szMiscArray[0] = 0;
  257. szMiscArray = "Area Code\tNumber\tZone\n";
  258. for(new i = 0; i < MAX_PAYPHONES; ++i) {
  259. if(IsValidDynamicArea(arrPayPhoneData[i][pp_iAreaID])) {
  260. szZone[0] = 0;
  261. GetPhoneZone(i, szZone, sizeof(szZone));
  262. format(szMiscArray, sizeof(szMiscArray), "%sArea: %d\tNumber: %d\tZone: %s\n", szMiscArray, GetPhoneAreaCode(i), arrPayPhoneData[i][pp_iNumber], szZone);
  263. ListItemTrackId[playerid][x] = arrPayPhoneData[i][pp_iNumber];
  264. x++;
  265. }
  266. }
  267. if(isnull(szMiscArray)) return SendClientMessageEx(playerid, COLOR_GRAD1, "There are no pay phones.");
  268. ShowPlayerDialogEx(playerid, DIALOG_PHONE_PAYPHONES, DIALOG_STYLE_TABLIST_HEADERS, "Pay Phones", szMiscArray, "Call", "Cancel");
  269. }
  270. case 2: {
  271. mysql_format(MainPipeline, szMiscArray, sizeof(szMiscArray), "SELECT * FROM `phone_contacts` WHERE id = '%d'", GetPlayerSQLId(playerid));
  272. mysql_tquery(MainPipeline, szMiscArray, "Phone_OnGetContacts", "i", playerid);
  273. }
  274. case 3: ShowPlayerDialogEx(playerid, DIALOG_PHONE_ADDCONTACT, DIALOG_STYLE_INPUT, "Phone | Add Contact", "Please enter the name of the contact you would like to add.\nExample: Sugar Daddy", "Add", "<<");
  275. case 4: {
  276. SetPVarInt(playerid, PVAR_PHONEDELCONTACT, 1);
  277. mysql_format(MainPipeline, szMiscArray, sizeof(szMiscArray), "SELECT * FROM `phone_contacts` WHERE id = '%d'", GetPlayerSQLId(playerid));
  278. mysql_tquery(MainPipeline, szMiscArray, "Phone_OnGetContacts", "i", playerid);
  279. }
  280. }
  281. }
  282. case DIALOG_PHONE_YPAGES: {
  283. if(!response) return Phone_Contacts(playerid), 1;
  284. switch(listitem) {
  285. case 0: {
  286. return ShowPlayerDialogEx(playerid, DIALOG_PHONE_BUSINESSES, DIALOG_STYLE_LIST, "Yellow Pages | Businesses", "\
  287. 24/7\n\
  288. Clothing Stores\n\
  289. Restaurants\n\
  290. Bars\n\
  291. Gun Stores\n\
  292. Petrol Stations\n\
  293. Car Dealerships\n\
  294. Clubs", "Select", "Back");
  295. }
  296. case 1: cmd_call(playerid, "18004444");
  297. case 2: cmd_call(playerid, "18001800");
  298. case 3: cmd_call(playerid, "1738");
  299. case 4: cmd_call(playerid, "18008080");
  300. case 5: cmd_call(playerid, "18001111");
  301. case 6: cmd_call(playerid, "18001020");
  302. case 7: cmd_service(playerid, "mechanic");
  303. }
  304. }
  305. case DIALOG_PHONE_BUSINESSES: {
  306. if(!response) {
  307. return ShowPlayerDialogEx(playerid, DIALOG_PHONE_YPAGES, DIALOG_STYLE_TABLIST_HEADERS, "Yellow Pages", "Name\tPhone Number\n\
  308. --> Businesses\tMENU ->\n\
  309. SA News\t1-800-1800\n\
  310. Government - City Hall/White House\t1-800-4444\n\
  311. BubbaGump Fish 'n Shrimps Shipment Service\t1-800-6666\n\
  312. Frontier Transportation Services\t1-800-8080\n\
  313. San Andreas Towing and Repossession\t1-800-1111\n\
  314. San Andreas Prison Service\t1-800-1020\n\
  315. Farva Car Repair Co.\t1-800-2232 ", "Select", "Cancel");
  316. }
  317. Phone_Businesses(playerid, listitem);
  318. return 1;
  319. }
  320. case DIALOG_PHONE_BUSINESSES2: {
  321. if(!response) {
  322. return ShowPlayerDialogEx(playerid, DIALOG_PHONE_BUSINESSES, DIALOG_STYLE_LIST, "Yellow Pages | Businesses", "\
  323. 24/7\n\
  324. Clothing Stores\n\
  325. Restaurants\n\
  326. Bars\n\
  327. Gun Stores\n\
  328. Petrol Stations\n\
  329. Car Dealerships\n\
  330. Clubs", "Select", "Back");
  331. }
  332. new id = ListItemTrackId[playerid][listitem];
  333. SetPVarInt(playerid, "BUSICALL", id);
  334. cmd_call(playerid, "000000");
  335. return 1;
  336. }
  337. case DIALOG_PHONE_CONTACTLIST:
  338. {
  339. if(!response) return DeletePVar(playerid, PVAR_PHONEDELCONTACT), Phone_Contacts(playerid), 1;
  340. format(szMiscArray, sizeof(szMiscArray), "%d", ListItemTrackId[playerid][listitem]);
  341. cmd_call(playerid, szMiscArray);
  342. return 1;
  343. }
  344. case DIALOG_PHONE_ADDCONTACT:
  345. {
  346. if(!response) return Phone_Contacts(playerid);
  347. SetPVarString(playerid, "PHN_CONTACT", inputtext);
  348. mysql_format(MainPipeline, szMiscArray, sizeof(szMiscArray), "SELECT * FROM `phone_contacts` WHERE id = '%d'", GetPlayerSQLId(playerid));
  349. mysql_tquery(MainPipeline, szMiscArray, "Phone_CheckContacts", "is", playerid, inputtext);
  350. DeletePVar(playerid, PVAR_PHONEDELCONTACT);
  351. }
  352. case DIALOG_PHONE_ADDCONTACT1: {
  353. if(!response) {
  354. DeletePVar(playerid, "PHN_CONTACT");
  355. Phone_Contacts(playerid);
  356. return 1;
  357. }
  358. szMiscArray[0] = 0;
  359. GetPVarString(playerid, "PHN_CONTACT", szMiscArray, sizeof(szMiscArray));
  360. if(strlen(szMiscArray) > 16) {
  361. SendClientMessage(playerid, COLOR_YELLOW, "[PHONE] {DDDDDD} The name was too long. Please try again.");
  362. return ShowPlayerDialogEx(playerid, DIALOG_PHONE_ADDCONTACT1, DIALOG_STYLE_INPUT, "Add Contact | Number", "Please enter the number of the contact you would like to add.", "Add", "Cancel");
  363. }
  364. mysql_format(MainPipeline, szMiscArray, sizeof(szMiscArray), "INSERT INTO `phone_contacts` (id, `contactname`, `contactnr`) VALUES ('%d', '%e', '%d')", GetPlayerSQLId(playerid), szMiscArray, strval(inputtext));
  365. mysql_tquery(MainPipeline, szMiscArray, "Phone_OnAddContactFinish", "i", playerid);
  366. return 1;
  367. }
  368. case DIALOG_PHONE_CONTACTLISTDEL:
  369. {
  370. if(!response) return DeletePVar(playerid, PVAR_PHONEDELCONTACT), Phone_Contacts(playerid), 1;
  371. mysql_format(MainPipeline, szMiscArray, sizeof(szMiscArray), "DELETE FROM `phone_contacts` WHERE id = '%d' AND `contactnr` = '%d'", GetPlayerSQLId(playerid), ListItemTrackId[playerid][listitem]);
  372. mysql_tquery(MainPipeline, szMiscArray, "Phone_OnDeleteContact", "i", playerid);
  373. }
  374. case DIALOG_PHONE_CAMERA:
  375. {
  376. if(!response) return 1;
  377. switch(listitem)
  378. {
  379. case 0: cmd_picture(playerid, "");
  380. case 1: cmd_selfie(playerid, "");
  381. case 2: cmd_selfie(playerid, "");
  382. }
  383. }
  384. case DIALOG_PHONE_SETTINGS:
  385. {
  386. if(!response) return 1;
  387. switch(listitem)
  388. {
  389. case 0:
  390. {
  391. ShowPlayerDialogEx(playerid, DIALOG_PHONE_RINGTONES, DIALOG_STYLE_LIST, "Phone | Ringtones", "\
  392. Go Go Track!\n\
  393. Dual Dual!\n\
  394. Bee Bees\n\
  395. So many awards!\n\
  396. Drive with me\n\
  397. While cycling\n\
  398. I'm a pilot", "Select", "<<");
  399. }
  400. case 1:
  401. {
  402. Phone_WallPaperMenu(playerid);
  403. }
  404. }
  405. }
  406. case DIALOG_PHONE_RINGTONES:
  407. {
  408. if(!response) Phone_Settings(playerid);
  409. PlayerPlaySound(playerid, iPhoneRingTone[listitem], 0.0, 0.0, 0.0);
  410. SetPVarInt(playerid, PVAR_PLAYINGRINGTONE, listitem);
  411. ShowPlayerDialogEx(playerid, DIALOG_PHONE_RINGTONES2, DIALOG_STYLE_MSGBOX, "Phone | Ringtones | Preview", "Press 'Select' to confirm.\nPress 'Cancel' to cancel.", "Select", "Cancel");
  412. }
  413. case DIALOG_PHONE_RINGTONES2:
  414. {
  415. PlayerPlaySound(playerid, iPhoneRingTone[GetPVarInt(playerid, PVAR_PLAYINGRINGTONE)]+1, 0.0, 0.0, 0.0);
  416. if(!response) return DeletePVar(playerid, PVAR_PLAYINGRINGTONE), 1;
  417. PlayerInfo[playerid][pRingtone] = GetPVarInt(playerid, PVAR_PLAYINGRINGTONE);
  418. DeletePVar(playerid, PVAR_PLAYINGRINGTONE);
  419. Phone_Settings(playerid);
  420. }
  421. case DIALOG_PHONE_WALLPAPERS:
  422. {
  423. if(!response) {
  424. Phone_Settings(playerid);
  425. return 1;
  426. }
  427. PlayerInfo[playerid][pWallpaper] = listitem;
  428. Phone_ShowWallPaper(playerid, listitem);
  429. Phone_Settings(playerid);
  430. }
  431. }
  432. return 0;
  433. }
  434. Phone_Businesses(playerid, btype)
  435. {
  436. szMiscArray[0] = 0;
  437. new szStatus[20],
  438. j;
  439. switch(btype)
  440. {
  441. case 0:
  442. {
  443. for(new i; i < MAX_BUSINESSES; ++i)
  444. {
  445. if(Businesses[i][bType] == BUSINESS_TYPE_STORE)
  446. {
  447. switch(Businesses[i][bStatus])
  448. {
  449. case 0: szStatus = "{FF0000} CLOSED";
  450. case 1: szStatus = "{00FF00} OPEN";
  451. }
  452. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  453. ListItemTrackId[playerid][j++] = i;
  454. }
  455. }
  456. }
  457. case 1:
  458. {
  459. for(new i; i < MAX_BUSINESSES; ++i)
  460. {
  461. if(Businesses[i][bType] == BUSINESS_TYPE_CLOTHING)
  462. {
  463. switch(Businesses[i][bStatus])
  464. {
  465. case 0: szStatus = "{FF0000} CLOSED";
  466. case 1: szStatus = "{00FF00} OPEN";
  467. }
  468. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  469. ListItemTrackId[playerid][j++] = i;
  470. }
  471. }
  472. }
  473. case 2:
  474. {
  475. for(new i; i < MAX_BUSINESSES; ++i)
  476. {
  477. if(Businesses[i][bType] == BUSINESS_TYPE_RESTAURANT)
  478. {
  479. switch(Businesses[i][bStatus])
  480. {
  481. case 0: szStatus = "{FF0000} CLOSED";
  482. case 1: szStatus = "{00FF00} OPEN";
  483. }
  484. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  485. ListItemTrackId[playerid][j++] = i;
  486. }
  487. }
  488. if(j == 0) return SendClientMessage(playerid, COLOR_GRAD1, "There are none.");
  489. }
  490. case 3:
  491. {
  492. for(new i; i < MAX_BUSINESSES; ++i)
  493. {
  494. if(Businesses[i][bType] == BUSINESS_TYPE_BAR)
  495. {
  496. switch(Businesses[i][bStatus])
  497. {
  498. case 0: szStatus = "{FF0000} CLOSED";
  499. case 1: szStatus = "{00FF00} OPEN";
  500. }
  501. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  502. ListItemTrackId[playerid][j++] = i;
  503. }
  504. }
  505. if(j == 0) return SendClientMessage(playerid, COLOR_GRAD1, "There are none.");
  506. }
  507. case 4:
  508. {
  509. for(new i; i < MAX_BUSINESSES; ++i)
  510. {
  511. if(Businesses[i][bType] == BUSINESS_TYPE_GUNSHOP)
  512. {
  513. switch(Businesses[i][bStatus])
  514. {
  515. case 0: szStatus = "{FF0000} CLOSED";
  516. case 1: szStatus = "{00FF00} OPEN";
  517. }
  518. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  519. ListItemTrackId[playerid][j++] = i;
  520. }
  521. }
  522. if(j == 0) return SendClientMessage(playerid, COLOR_GRAD1, "There are none.");
  523. }
  524. case 5:
  525. {
  526. for(new i; i < MAX_BUSINESSES; ++i)
  527. {
  528. if(Businesses[i][bType] == BUSINESS_TYPE_GASSTATION)
  529. {
  530. switch(Businesses[i][bStatus])
  531. {
  532. case 0: szStatus = "{FF0000} CLOSED";
  533. case 1: szStatus = "{00FF00} OPEN";
  534. }
  535. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  536. ListItemTrackId[playerid][j++] = i;
  537. }
  538. }
  539. if(j == 0) return SendClientMessage(playerid, COLOR_GRAD1, "There are none.");
  540. }
  541. case 6:
  542. {
  543. for(new i; i < MAX_BUSINESSES; ++i)
  544. {
  545. if(Businesses[i][bType] == BUSINESS_TYPE_NEWCARDEALERSHIP)
  546. {
  547. switch(Businesses[i][bStatus])
  548. {
  549. case 0: szStatus = "{FF0000} CLOSED";
  550. case 1: szStatus = "{00FF00} OPEN";
  551. }
  552. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  553. ListItemTrackId[playerid][j++] = i;
  554. }
  555. }
  556. if(j == 0) return SendClientMessage(playerid, COLOR_GRAD1, "There are none.");
  557. }
  558. case 7:
  559. {
  560. for(new i; i < MAX_BUSINESSES; ++i)
  561. {
  562. if(Businesses[i][bType] == BUSINESS_TYPE_CLUB)
  563. {
  564. switch(Businesses[i][bStatus])
  565. {
  566. case 0: szStatus = "{FF0000} CLOSED";
  567. case 1: szStatus = "{00FF00} OPEN";
  568. }
  569. format(szMiscArray, sizeof(szMiscArray), "%s%s\t%s\n", szMiscArray, Businesses[i][bName], szStatus);
  570. ListItemTrackId[playerid][j++] = i;
  571. }
  572. }
  573. if(j == 0) return SendClientMessage(playerid, COLOR_GRAD1, "There are none.");
  574. }
  575. }
  576. ShowPlayerDialogEx(playerid, DIALOG_PHONE_BUSINESSES2, DIALOG_STYLE_TABLIST, "San Andreas | Map | Businesses", szMiscArray, "Select", "Back");
  577. return 1;
  578. }
  579. Phone_InitRadioTowers() {
  580. strcat(arrRadioTowerData[0][rt_szName], "Flint County", 16);
  581. arrRadioTowerData[0][rt_iObjectID] = CreateDynamicObject(16335, -908.49377, -984.00830, 126.67799, 0.00000, 0.00000, 200.00000);
  582. strcat(arrRadioTowerData[1][rt_szName], "Verdant Bluffs", 16);
  583. arrRadioTowerData[1][rt_iObjectID] = CreateDynamicObject(16335, 1497.64832, -2018.86731, 30.01224, 0.00000, 0.00000, 61.46917);
  584. strcat(arrRadioTowerData[2][rt_szName], "Red County", 16);
  585. arrRadioTowerData[2][rt_iObjectID] = CreateDynamicObject(16335, 1518.65039, 343.89783, 17.42963, 0.00000, 0.00000, 358.23730);
  586. strcat(arrRadioTowerData[3][rt_szName], "Whetstone", 16);
  587. arrRadioTowerData[3][rt_iObjectID] = CreateDynamicObject(16335, -2216.93042, -2241.66577, 29.16674, 0.00000, 0.00000, 109.12535);
  588. strcat(arrRadioTowerData[4][rt_szName], "San Fierro", 16);
  589. arrRadioTowerData[4][rt_iObjectID] = CreateDynamicObject(16335, -2503.39893, -702.40356, 137.81853, 0.00000, 0.00000, 333.25677);
  590. new Float:fPos[3];
  591. for(new i; i < MAX_RADIOTOWERS; ++i)
  592. {
  593. if(IsValidDynamicObject(arrRadioTowerData[i][rt_iObjectID]))
  594. {
  595. GetDynamicObjectPos(arrRadioTowerData[i][rt_iObjectID], fPos[0], fPos[1], fPos[2]);
  596. arrRadioTowerData[i][rt_iAreaID] = CreateDynamicCircle(fPos[0], fPos[1], 3000.0);
  597. }
  598. }
  599. }
  600. CMD:trace(playerid, params[]) {
  601. if(Bit_State(arrPlayerBits[playerid], phone_bitTraceState)) {
  602. DisablePlayerCheckpoint(playerid);
  603. GangZoneDestroy(GetPVarInt(playerid, "PTR_GZ"));
  604. DeletePVar(playerid, "PTR_GZ");
  605. Bit_Off(arrPlayerBits[playerid], phone_bitTraceState);
  606. return SendClientMessageEx(playerid, COLOR_GRAD1, "[Phone]: Quit GPS traceroute process. All geographical data has been deleted.");
  607. }
  608. if(PlayerInfo[playerid][pJob] != 1 && PlayerInfo[playerid][pJob2] != 1 && PlayerInfo[playerid][pJob3] != 1) {
  609. return SendClientMessageEx(playerid, COLOR_GREY, "You're not a detective.");
  610. }
  611. if(gettime() < UsedFind[playerid]) { // || FindTimePoints[playerid] == 0) {
  612. return SendClientMessageEx(playerid, COLOR_GREY, "You've already searched for someone - wait a little.");
  613. }
  614. new iNumber;
  615. if(sscanf(params, "d", iNumber)) return SendClientMessage(playerid, COLOR_GRAD1, "Usage: /trace [player's phone number]");
  616. if(iNumber == 0) return SendClientMessageEx(playerid, COLOR_GRAD1, "You specified an invalid number.");
  617. foreach(new i : Player) {
  618. if(PlayerInfo[i][pPnumber] == iNumber) {
  619. if(GetPlayerInterior(i) != 0)
  620. return SendClientMessageEx(playerid, COLOR_GREY, "That person is inside an interior.");
  621. if((PlayerInfo[i][pAdmin] >= 2 || PlayerInfo[i][pWatchdog] >= 2) && PlayerInfo[i][pTogReports] != 1)
  622. return SendClientMessageEx(playerid, COLOR_GREY, "You are unable to find this person.");
  623. if(GetPVarInt(playerid, "_SwimmingActivity") >= 1)
  624. return SendClientMessageEx(playerid, COLOR_GRAD2, "You are unable to find people while swimming.");
  625. if(PhoneOnline[i] == 0) {
  626. switch(PlayerInfo[playerid][pDetSkill]) {
  627. case 0 .. 50: {
  628. FindTimePoints[playerid] = 4;
  629. UsedFind[playerid] = gettime()+120;
  630. }
  631. case 51 .. 100: {
  632. FindTimePoints[playerid] = 6;
  633. UsedFind[playerid] = gettime()+90;
  634. }
  635. case 101 .. 200: {
  636. FindTimePoints[playerid] = 8;
  637. UsedFind[playerid] = gettime()+60;
  638. }
  639. case 201 .. 400: {
  640. FindTimePoints[playerid] = 10;
  641. UsedFind[playerid] = gettime()+30;
  642. }
  643. default: {
  644. FindTimePoints[playerid] = 12;
  645. UsedFind[playerid] = gettime()+15;
  646. }
  647. }
  648. }
  649. else return SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot get a trace on this person.");
  650. Bit_On(arrPlayerBits[playerid], phone_bitTraceState);
  651. SetPVarInt(playerid, "TRC_STP", 0);
  652. Phone_Trace(playerid, i);
  653. return 1;
  654. }
  655. }
  656. SendClientMessage(playerid, COLOR_GRAD1, "No active phone was detected with this number.");
  657. return 1;
  658. }
  659. forward Phone_Trace(playerid, i);
  660. public Phone_Trace(playerid, i)
  661. {
  662. if(!GetPVarType(playerid, "TRC_STP")) return 1;
  663. new x = GetPVarInt(playerid, "TRC_STP"),
  664. szStrength[16],
  665. Float:fPos[2][3];
  666. GetPVarString(playerid, "TRC_STR", szMiscArray, sizeof(szMiscArray));
  667. GetPlayerPos(i, fPos[0][0], fPos[0][1], fPos[0][2]);
  668. if(x == 0) format(szMiscArray, sizeof(szMiscArray), "{DDDDDD}Target specified: %d\nGPS Traceroute in progress...\n______________________________________\n\n", PlayerInfo[i][pPnumber]);
  669. if(IsPlayerInDynamicArea(x, arrRadioTowerData[x][rt_iAreaID]))
  670. {
  671. GetDynamicObjectPos(arrRadioTowerData[x][rt_iObjectID], fPos[1][0], fPos[1][1], fPos[1][2]);
  672. new fDistance = floatround(GetDistanceBetweenPoints(fPos[0][0], fPos[0][1], fPos[0][2], fPos[1][0], fPos[1][1], fPos[1][2]), floatround_round);
  673. switch(fDistance)
  674. {
  675. case 2501 .. 3000: szStrength = "{FF0000}Weak";
  676. case 1501 .. 2500: szStrength = "{FFFF00}Average";
  677. case 0 .. 1500: szStrength = "{00FF00}Good";
  678. }
  679. }
  680. else szStrength = "{FF0000}NONE";
  681. if(!IsValidDynamicObject(arrRadioTowerData[x][rt_iObjectID]))
  682. {
  683. new szZone[MAX_ZONE_NAME],
  684. iGZID = GangZoneCreate(fPos[0][0] - 100.0, fPos[0][1] - 100.0, fPos[0][0] + 100.0, fPos[0][1] + 100.0);
  685. GetPlayer3DZone(i, szZone, MAX_ZONE_NAME);
  686. SetPVarInt(playerid, "PTR_GZ", iGZID);
  687. GangZoneShowForPlayer(playerid, iGZID, COLOR_RED);
  688. GangZoneFlashForPlayer(playerid, iGZID, COLOR_YELLOW);
  689. format(szMiscArray, sizeof(szMiscArray), "%s\n\
  690. \n_____________________________________\n\n\
  691. {FFFFFF}%d's position has been determined: {FFFF00}%s.", szMiscArray, PlayerInfo[i][pPnumber], arrRadioTowerData[x][rt_szName]);
  692. ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Trace Number", szMiscArray, "-----", "");
  693. SendClientMessage(playerid, COLOR_YELLOW, "Use /trace again to stop tracing the number.");
  694. DeletePVar(playerid, "TRC_STP");
  695. DeletePVar(playerid, "TRC_STR");
  696. SetPlayerMarkerForPlayer(playerid, i, FIND_COLOR);
  697. GetPlayer3DZone(i, szZone, sizeof(szZone));
  698. format(szMiscArray, sizeof(szMiscArray), "%s has been last seen at %s.", GetPlayerNameEx(i), szZone);
  699. SendClientMessageEx(playerid, COLOR_GRAD2, szMiscArray);
  700. FindingPlayer[playerid] = i;
  701. FindTime[playerid] = 1;
  702. if(PlayerInfo[playerid][pDoubleEXP] > 0) {
  703. format(szMiscArray, sizeof(szMiscArray), "You have gained 2 detective skill points instead of 1. You have %d hours left on the Double EXP token.", PlayerInfo[playerid][pDoubleEXP]);
  704. SendClientMessageEx(playerid, COLOR_YELLOW, szMiscArray);
  705. PlayerInfo[playerid][pDetSkill] += 2;
  706. }
  707. else ++PlayerInfo[playerid][pDetSkill];
  708. switch(PlayerInfo[playerid][pDetSkill]) {
  709. case 50: SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, you can find a little faster.");
  710. case 100: SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, you can find a little faster.");
  711. case 200: SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you can find a little faster.");
  712. case 400: SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you can find a little faster.");
  713. }
  714. return 1;
  715. }
  716. else
  717. {
  718. format(szMiscArray, sizeof(szMiscArray), "%sRetrieving %d's cellular data from the %s tower \t|\t Signal: %s.{DDDDDD}\n\n", szMiscArray, PlayerInfo[playerid][pPnumber], arrRadioTowerData[x][rt_szName], szStrength);
  719. ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Trace Number", szMiscArray, "Tracing...", "");
  720. }
  721. SetPVarString(playerid, "TRC_STR", szMiscArray);
  722. SetPVarInt(playerid, "TRC_STP", x + 1);
  723. SetTimerEx("Phone_Trace", 1000, false, "ii", playerid, i);
  724. return 1;
  725. }
  726. forward Phone_OnGetContacts(iPlayerID);
  727. public Phone_OnGetContacts(iPlayerID)
  728. {
  729. new iRows;
  730. cache_get_row_count(iRows);
  731. if(!iRows) return SendClientMessage(iPlayerID, COLOR_GRAD1, "You do not have any contacts.");
  732. new idx,
  733. iNumber,
  734. szResult[64];
  735. szMiscArray[0] = 0;
  736. szMiscArray = "Name\tNumber";
  737. while(idx < iRows)
  738. {
  739. cache_get_value_name_int(idx, "contactnr", iNumber);
  740. if(iNumber != 0) {
  741. cache_get_value_name(idx, "contactname", szResult);
  742. /*
  743. foreach(new i : Player) {
  744. if(PlayerInfo[i][pPnumber] == iNumber) format(szResult, sizeof(szResult), "{00FF00}[O] {FFFFFF}%s", szResult);
  745. else format(szResult, sizeof(szResult), "{FF0000}[O] {FFFFFF}%s", szResult);
  746. }
  747. */
  748. ListItemTrackId[iPlayerID][idx] = iNumber;
  749. format(szMiscArray, sizeof(szMiscArray), "%s\n%s\t%d", szMiscArray, szResult, iNumber);
  750. }
  751. idx++;
  752. }
  753. if(GetPVarType(iPlayerID, PVAR_PHONEDELCONTACT)) return ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_CONTACTLISTDEL, DIALOG_STYLE_TABLIST_HEADERS, "Phone | Delete Contact", szMiscArray, "Delete", "<<");
  754. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_CONTACTLIST, DIALOG_STYLE_TABLIST_HEADERS, "Phone | Contact List", szMiscArray, "Call", "<<");
  755. return 1;
  756. }
  757. forward Phone_OnAddContactFinish(iPlayerID);
  758. public Phone_OnAddContactFinish(iPlayerID)
  759. {
  760. if(mysql_errno()) return Phone_Contacts(iPlayerID), SendClientMessage(iPlayerID, COLOR_GRAD1, "Something went wrong. Please try again later.");
  761. SendClientMessage(iPlayerID, COLOR_YELLOW, "[PHONE] {DDDDDD} You have successfully added a new contact.");
  762. Phone_Contacts(iPlayerID);
  763. return 1;
  764. }
  765. forward Phone_OnDeleteContact(iPlayerID);
  766. public Phone_OnDeleteContact(iPlayerID)
  767. {
  768. if(mysql_errno()) return SendClientMessage(iPlayerID, COLOR_GRAD1, "Something went wrong. Please try again later.");
  769. SendClientMessage(iPlayerID, COLOR_YELLOW, "[PHONE] {DDDDDD} You have successfully deleted the contact.");
  770. DeletePVar(iPlayerID, PVAR_PHONEDELCONTACT);
  771. Phone_Contacts(iPlayerID);
  772. return 1;
  773. }
  774. forward Phone_CheckContacts(iPlayerID, name[]);
  775. public Phone_CheckContacts(iPlayerID, name[])
  776. {
  777. new iRows;
  778. cache_get_row_count(iRows);
  779. if(iRows > MAX_CONTACTS) {
  780. SendClientMessage(iPlayerID, COLOR_GRAD1, "You cannot have more contacts stored in your phone.");
  781. DeletePVar(iPlayerID, "PHN_CONTACT");
  782. }
  783. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_ADDCONTACT1, DIALOG_STYLE_INPUT, "Add Contact | Number", "Please enter the number of the contact you would like to add.", "Add", "Cancel");
  784. return 1;
  785. }
  786. Phone_Calling(iPlayerID, iCallerID)
  787. {
  788. if(GetPVarType(iPlayerID, "PayPhone") || GetPVarType(iCallerID, "PayPhone")) return 1;
  789. Phone_ReceiveCall(iCallerID);
  790. return 1;
  791. }
  792. Phone_ReceiveCall(iPlayerID)
  793. {
  794. new Float:fPos[3];
  795. GetPlayerPos(iPlayerID, fPos[0], fPos[1], fPos[2]);
  796. PlayerPlaySound(iPlayerID, iPhoneRingTone[PlayerInfo[iPlayerID][pRingtone]], 0.0, 0.0, 0.0);
  797. foreach(new i : Player) {
  798. if(IsPlayerInRangeOfPoint(i, 10.0, fPos[0], fPos[1], fPos[2])) {
  799. PlayerPlaySound(i, iPhoneRingTone[PlayerInfo[iPlayerID][pRingtone]], fPos[0], fPos[1], fPos[2]);
  800. defer Phone_StopRingtone(i);
  801. }
  802. }
  803. }
  804. Phone_PickupCall(iPlayerID, iCallerID) {
  805. /*
  806. PlayerPlaySound(iPlayerID, iPhoneRingTone[PlayerInfo[iPlayerID][pRingtone]] + 1, 0.0, 0.0, 0.0);
  807. PlayerPlaySound(iCallerID, iPhoneRingTone[PlayerInfo[iCallerID][pRingtone]] + 1, 0.0, 0.0, 0.0);
  808. */
  809. PlayerPlaySound(iPlayerID, 1188, 0.0, 0.0, 0.0);
  810. PlayerPlaySound(iCallerID, 1188, 0.0, 0.0, 0.0);
  811. }
  812. Phone_HangupCall(iPlayerID, iCallerID) {
  813. /*
  814. PlayerPlaySound(iPlayerID, iPhoneRingTone[PlayerInfo[iPlayerID][pRingtone]] + 1, 0.0, 0.0, 0.0);
  815. PlayerPlaySound(iCallerID, iPhoneRingTone[PlayerInfo[iPlayerID][pRingtone]] + 1, 0.0, 0.0, 0.0);
  816. */
  817. PlayerPlaySound(iPlayerID, 1188, 0.0, 0.0, 0.0);
  818. PlayerPlaySound(iCallerID, 1188, 0.0, 0.0, 0.0);
  819. /*
  820. for(new i = 32; i < 37; ++i)
  821. {
  822. TextDrawHideForPlayer(iPlayerID, PhoneTD[i]);
  823. TextDrawHideForPlayer(iCallerID, PhoneTD[i]);
  824. }
  825. */
  826. }
  827. Phone_Call(iPlayerID)
  828. {
  829. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_DIAL, DIALOG_STYLE_INPUT, "Phone | Dial Number", "Please insert the number you would like to dial.", "Dial", "<<");
  830. }
  831. Phone_Contacts(iPlayerID)
  832. {
  833. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_CONTACTS, DIALOG_STYLE_LIST, "Phone | Address Book", "\
  834. Yellow Pages\n\
  835. Pay Phones\n\
  836. List contacts\n\
  837. Add contact\n\
  838. Remove contact",
  839. "Dial", "<<");
  840. return 1;
  841. }
  842. Phone_Ads(iPlayerID)
  843. {
  844. cmd_ads(iPlayerID, "");
  845. }
  846. Phone_Camera(iPlayerID)
  847. {
  848. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_CAMERA, DIALOG_STYLE_LIST, "Phone | Camera", "Back camera\nFront camera\nReset", "Select", "<<");
  849. }
  850. Phone_Settings(iPlayerID)
  851. {
  852. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_SETTINGS, DIALOG_STYLE_LIST, "Phone | Settings", "Ringtone\nWallpaper", "Select", "<<");
  853. }
  854. Phone_Music(iPlayerID)
  855. {
  856. cmd_mp3(iPlayerID, "");
  857. }
  858. Phone_Map(iPlayerID)
  859. {
  860. DisablePlayerCheckpoint(iPlayerID);
  861. cmd_mygps(iPlayerID, "");
  862. }
  863. Phone_SAN(iPlayerID)
  864. {
  865. cmd_shows(iPlayerID, "");
  866. }
  867. /*
  868. Phone_House(iPlayerID) {
  869. cmd_houselistings(iPlayerID, "");
  870. }
  871. Phone_Medic(iPlayerID)
  872. {
  873. cmd_call(iPlayerID, "911");
  874. }
  875. Phone_MDC(iPlayerID)
  876. {
  877. cmd_mdc(iPlayerID, "");
  878. }
  879. */
  880. Phone_Events(iPlayerID) {
  881. SendClientMessageEx(iPlayerID, COLOR_GRAD1, "This will be a feature soon!");
  882. }
  883. Phone_ShowWallPaper(iPlayerID, i) {
  884. PlayerTextDrawSetString(iPlayerID, phone_PTextDraw[iPlayerID][2], szPhoneWP[i]);
  885. /*
  886. TextDrawHideForPlayer(iPlayerID, PhoneTD[17]);
  887. TextDrawSetString(PhoneTD[17], szPhoneWP[i]);
  888. TextDrawShowForPlayer(iPlayerID, PhoneTD[17]);
  889. if(PlayerInfo[iPlayerID][pToggledChats][20] == 1) {
  890. TextDrawHideForPlayer(iPlayerID, PhoneTD[29]);
  891. TextDrawSetString(PhoneTD[29], szPhoneWP[i]);
  892. TextDrawShowForPlayer(iPlayerID, PhoneTD[29]);
  893. }
  894. */
  895. }
  896. Phone_WallPaperMenu(iPlayerID)
  897. {
  898. ShowPlayerDialogEx(iPlayerID, DIALOG_PHONE_WALLPAPERS, DIALOG_STYLE_LIST, "Phone | WallPapers", "\
  899. Standard\n\
  900. Vice City 1\n\
  901. Vice City 2\n\
  902. Cop Art 1\n\
  903. GTA:SA\n\
  904. Gangster\n\
  905. Ganster Car\n\
  906. Cop\n\
  907. Truth\n\
  908. Bikey Bike\n\
  909. Hot Lady\n\
  910. Gangster Swag\n\
  911. Blonde Babe\n\
  912. Mechanic\n\
  913. Chinatown\n\
  914. Orange is the new Black\n\
  915. Mafia\n\
  916. Huang Huang\n\
  917. Big Daddy\n\
  918. Don't drop the soap\n\
  919. Black Head\n\
  920. Stars\n\
  921. Clouds",
  922. "Select", "<<");
  923. }
  924. /*
  925. CMD:togphone(playerid, params[]) {
  926. if(PlayerInfo[playerid][pChatbox][7]) {
  927. PlayerInfo[playerid][pChatbox][7] = 0;
  928. SendClientMessageEx(playerid, COLOR_GRAD1, "You toggled your phone off.");
  929. }
  930. else {
  931. PlayerInfo[playerid][pChatbox][7] = 1;
  932. SendClientMessageEx(playerid, COLOR_GRAD1, "You toggled your phone on.");
  933. }
  934. return 1;
  935. }
  936. */
  937. CMD:mouse(playerid, params[]) {
  938. SelectTextDraw(playerid, 0xF6FBFCFF);
  939. return 1;
  940. }
  941. CMD:contacts(playerid, params[]) {
  942. Phone_Contacts(playerid);
  943. return 1;
  944. }
  945. Phone_PhoneColorMenu(playerid) {
  946. ShowPlayerDialogEx(playerid, DIALOG_PHONE_COLOR, DIALOG_STYLE_LIST, "Phone - Select color", "Black\nWhite\nRed\nPink\nOrange\nBrown\nYellow\nGreen\nBlue\nLight Baby Blue", "Choose", "");
  947. }
  948. Phone_PhoneColor(playerid)
  949. {
  950. new color;
  951. switch(PlayerInfo[playerid][pPhoneColor]) {
  952. case 0: color = 0x000000FF;
  953. case 1: color = 0xFFFFFFFF;
  954. case 2: color = 0xCD0000FF;
  955. case 3: color = 0xE6A2B1FF;
  956. case 4: color = 0xFFA500FF;
  957. case 5: color = 0x664200FF;
  958. case 6: color = 0xFFFF00FF;
  959. case 7: color = 0x008000FF;
  960. case 8: color = 0x4C4CFFFF;
  961. case 9: color = 0xC2E0FFFF;
  962. }
  963. PlayerTextDrawColor(playerid, phone_PTextDraw[playerid][1], color);
  964. /*
  965. for(new i = 6; i < 13; ++i) {
  966. TextDrawColor(PhoneTD[i], color);
  967. TextDrawBoxColor(PhoneTD[i], color);
  968. TextDrawBackgroundColor(PhoneTD[i], color);
  969. }
  970. TextDrawColor(PhoneTD[16], color);
  971. TextDrawBoxColor(PhoneTD[16], color);
  972. TextDrawBackgroundColor(PhoneTD[16], color);
  973. */
  974. }
  975. CMD:phone(playerid, params[]) {
  976. Phone_Main(playerid);
  977. return 1;
  978. }
  979. Phone_GetTime() {
  980. new thour,
  981. suffix[3];
  982. if(hour > 12 && hour < 24) {
  983. thour = hour - 12;
  984. suffix = "PM";
  985. }
  986. else if(hour == 12) {
  987. thour = 12;
  988. suffix = "PM";
  989. }
  990. else if(hour > 0 && hour < 12) {
  991. thour = hour;
  992. suffix = "AM";
  993. }
  994. else if(hour == 0) {
  995. thour = 12;
  996. suffix = "AM";
  997. }
  998. format(szMiscArray, sizeof(szMiscArray), "%d:%02d%s", thour, minuite, suffix);
  999. return szMiscArray;
  1000. }
  1001. Phone_Main(playerid) {
  1002. if(GetPVarInt(playerid, "EventToken")) {
  1003. return SendClientMessageEx(playerid, COLOR_GRAD1, "You can't use this while in an event.");
  1004. }
  1005. else if(GetPVarType(playerid, "PlayerCuffed") || GetPVarInt(playerid, "pBagged") >= 1 || GetPVarType(playerid, "Injured") || GetPVarType(playerid, "IsFrozen")) {
  1006. return SendClientMessage(playerid, COLOR_GRAD2, "You can't do that at this time!");
  1007. }
  1008. else if(GetPVarType(playerid, "FixVehicleTimer")) {
  1009. return SendClientMessageEx(playerid, COLOR_GRAD2, "You are fixing a vehicle!");
  1010. }
  1011. if(PlayerCuffed[playerid] != 0 || GetPVarInt(playerid, "pBagged") >= 1 || PlayerInfo[playerid][pHospital] != 0) return SendClientMessageEx(playerid, COLOR_GRAD1, "You can't use the phone right now.");
  1012. if(PlayerInfo[playerid][pPnumber] == 0) return SendClientMessageEx(playerid, COLOR_GRAD1, "You do not have a cell phone.");
  1013. if(!Bit_State(arrPlayerBits[playerid], phone_bitState)) {
  1014. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  1015. ApplyAnimation(playerid, "GRAVEYARD", "mrnM_loop", 4.0, 1, 0, 0, 0, 0, 1);
  1016. }
  1017. SendClientMessageEx(playerid, COLOR_WHITE, "[PHONE HELP]: Use ~k~~GO_FORWARD~ to go up, ~k~~GO_BACK~ to go down and ~k~~PED_SPRINT~ to select the item.");
  1018. Bit_On(arrPlayerBits[playerid], phone_bitState);
  1019. Phone_PhoneColor(playerid);
  1020. SetPVarInt(playerid, "PMenuItem", 0);
  1021. PlayerTextDrawSetString(playerid, phone_PTextDraw[playerid][7], Phone_GetTime());
  1022. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][0]);
  1023. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][1]);
  1024. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][2]);
  1025. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][3]);
  1026. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][4]);
  1027. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][5]);
  1028. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][6]);
  1029. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][7]);
  1030. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][8]);
  1031. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][9]);
  1032. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][10]);
  1033. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][11]);
  1034. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][12]);
  1035. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][13]);
  1036. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][14]);
  1037. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][15]);
  1038. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][16]);
  1039. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][17]);
  1040. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][18]);
  1041. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][19]);
  1042. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][20]);
  1043. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][21]);
  1044. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][22]);
  1045. PlayerTextDrawShow(playerid, phone_PTextDraw[playerid][23]);
  1046. /*
  1047. if(click) SelectTextDraw(playerid, 0xF6FBFCFF);
  1048. switch(PlayerInfo[playerid][pToggledChats][20]) {
  1049. case 0: for(new i; i < 29; ++i) TextDrawShowForPlayer(playerid, PhoneTD[i]);
  1050. case 1: {
  1051. for(new i; i < 18; ++i) TextDrawShowForPlayer(playerid, PhoneTD[i]);
  1052. for(new i = 29; i < sizeof(PhoneTD); ++i) TextDrawShowForPlayer(playerid, PhoneTD[i]);
  1053. }
  1054. }
  1055. */
  1056. Phone_ShowWallPaper(playerid, PlayerInfo[playerid][pWallpaper]);
  1057. }
  1058. else {
  1059. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) ClearAnimationsEx(playerid);
  1060. Bit_Off(arrPlayerBits[playerid], phone_bitState);
  1061. // if(click) CancelSelectTextDraw(playerid);
  1062. DeletePVar(playerid, "PMenuItem");
  1063. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][0]);
  1064. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][1]);
  1065. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][2]);
  1066. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][3]);
  1067. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][4]);
  1068. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][5]);
  1069. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][6]);
  1070. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][7]);
  1071. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][8]);
  1072. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][9]);
  1073. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][10]);
  1074. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][11]);
  1075. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][12]);
  1076. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][13]);
  1077. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][14]);
  1078. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][15]);
  1079. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][16]);
  1080. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][17]);
  1081. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][18]);
  1082. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][19]);
  1083. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][20]);
  1084. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][21]);
  1085. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][22]);
  1086. PlayerTextDrawHide(playerid, phone_PTextDraw[playerid][23]);
  1087. }
  1088. return 1;
  1089. }
  1090. CMD:fpm(playerid, params[]) {
  1091. if(!Bit_State(arrPlayerBits[playerid], phone_bitCamState))
  1092. {
  1093. Bit_On(arrPlayerBits[playerid], phone_bitCamState);
  1094. new iObjectID = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1095. SetPVarInt(playerid, "FP_OBJ", iObjectID);
  1096. AttachObjectToPlayer(iObjectID, playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
  1097. AttachCameraToObject(playerid, iObjectID);
  1098. }
  1099. else {
  1100. Bit_Off(arrPlayerBits[playerid], phone_bitCamState);
  1101. DestroyObject(GetPVarInt(playerid, "FP_OBJ"));
  1102. DeletePVar(playerid, "FP_OBJ");
  1103. SetCameraBehindPlayer(playerid);
  1104. }
  1105. return 1;
  1106. }
  1107. /*
  1108. hook OnPlayerStateChange(playerid, newstate, oldstate) {
  1109. if(oldstate == PLAYER_STATE_ONFOOT && (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)) {
  1110. new iVehicleID = GetPlayerVehicleID(playerid);
  1111. if(GetPVarType(playerid, "FP_OBJ")) {
  1112. new iObjectID = GetPVarInt(playerid, "FP_OBJ");
  1113. SetCameraBehindPlayer(playerid);
  1114. AttachPlayerObjectToVehicle(playerid, iObjectID, iVehicleID,-0.6, -0.3, 0.490000, 0.000000, 0.000000, 0.000000);
  1115. AttachCameraToPlayerObject(playerid, iObjectID);
  1116. }
  1117. }
  1118. if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) {
  1119. new iVehicleID = GetPlayerVehicleID(playerid);
  1120. if(GetPVarType(playerid, "FP_OBJ")) {
  1121. new iObjectID = GetPVarInt(playerid, "FP_OBJ");
  1122. SetCameraBehindPlayer(playerid);
  1123. AttachObjectToPlayer(iObjectID, playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
  1124. AttachCameraToPlayerObject(playerid, iVehicleID);
  1125. }
  1126. }
  1127. return 1;
  1128. }
  1129. */
  1130. CMD:firstperson(playerid, params[]) {
  1131. return cmd_fpm(playerid, "");
  1132. }
  1133. CMD:picture(playerid, params[]) {
  1134. return cmd_fpm(playerid, "");
  1135. }
  1136. CMD:selfie(playerid, params[]) {
  1137. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot do this inside a vehicle.");
  1138. if(GetPVarInt(playerid, "EventToken")) {
  1139. return SendClientMessageEx(playerid, COLOR_GRAD1, "You can't use this while in an event.");
  1140. }
  1141. else if(GetPVarType(playerid, "PlayerCuffed") || GetPVarInt(playerid, "pBagged") >= 1 || GetPVarInt(playerid, "pDoingPJob") >= 1 || GetPVarType(playerid, "Injured") || GetPVarType(playerid, "IsFrozen") || PlayerInfo[playerid][pHospital]) {
  1142. return SendClientMessage(playerid, COLOR_GRAD2, "You can't do that at this time!");
  1143. }
  1144. else if(GetPVarType(playerid, "FixVehicleTimer")) {
  1145. return SendClientMessageEx(playerid, COLOR_GRAD2, "You are fixing a vehicle!");
  1146. }
  1147. if(!Bit_State(arrPlayerBits[playerid], phone_bitCamState))
  1148. {
  1149. new Float:fPos[4],
  1150. Float:fCam[2];
  1151. GetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]);
  1152. GetPlayerFacingAngle(playerid, fPos[3]);
  1153. fPos[3] += 1.25;
  1154. fCam[0] = fPos[0] + 1.4 * floatcos(fPos[3], degrees);
  1155. fCam[1] = fPos[1] + 1.4 * floatsin(fPos[3], degrees);
  1156. SetPlayerCameraPos(playerid, fCam[0], fCam[1], fPos[2] + 0.9);
  1157. SetPlayerCameraLookAt(playerid, fPos[0], fPos[1], fPos[2] + 0.9);
  1158. SetPlayerFacingAngle(playerid, fPos[3] - 90.0);
  1159. TogglePlayerControllable(playerid, false);
  1160. PlayAnimEx(playerid, "PED", "gang_gunstand", 4.1, 1, 1, 1, 1, 1, 1);
  1161. SendClientMessage(playerid, COLOR_GRAD1, "{DDDDDD}Select the camera app or use /selfie to go back. Use {FFFF00}/headmove {DDDDDD}to disable your head movement (look straight).");
  1162. Bit_On(arrPlayerBits[playerid], phone_bitCamState);
  1163. }
  1164. else
  1165. {
  1166. DeletePVar(playerid, "Flt");
  1167. Bit_Off(arrPlayerBits[playerid], phone_bitCamState);
  1168. ClearAnimationsEx(playerid, 1);
  1169. TogglePlayerControllable(playerid, true);
  1170. SetCameraBehindPlayer(playerid);
  1171. }
  1172. return 1;
  1173. }
  1174. Phone_InitTD(playerid) {
  1175. /*
  1176. Phone V1 - Jingles
  1177. // Create the textdraws:
  1178. PhoneTD[0] = TextDrawCreate(498.000000, 188.000000, "LD_SPAC:white");
  1179. TextDrawBackgroundColor(PhoneTD[0], 255);
  1180. TextDrawFont(PhoneTD[0], 4);
  1181. TextDrawLetterSize(PhoneTD[0], 0.500000, 1.000000);
  1182. TextDrawColor(PhoneTD[0], -1768515841);
  1183. TextDrawSetOutline(PhoneTD[0], 0);
  1184. TextDrawSetProportional(PhoneTD[0], 1);
  1185. TextDrawSetShadow(PhoneTD[0], 2);
  1186. TextDrawUseBox(PhoneTD[0], 1);
  1187. TextDrawBoxColor(PhoneTD[0], 255);
  1188. TextDrawTextSize(PhoneTD[0], 117.000000, 206.000000);
  1189. TextDrawSetSelectable(PhoneTD[0], 0);
  1190. PhoneTD[1] = TextDrawCreate(507.000000, 178.000000, "LD_SPAC:white");
  1191. TextDrawBackgroundColor(PhoneTD[1], 255);
  1192. TextDrawFont(PhoneTD[1], 4);
  1193. TextDrawLetterSize(PhoneTD[1], 0.500000, 2.299998);
  1194. TextDrawColor(PhoneTD[1], -1768515841);
  1195. TextDrawSetOutline(PhoneTD[1], 0);
  1196. TextDrawSetProportional(PhoneTD[1], 1);
  1197. TextDrawSetShadow(PhoneTD[1], 2);
  1198. TextDrawUseBox(PhoneTD[1], 1);
  1199. TextDrawBoxColor(PhoneTD[1], 255);
  1200. TextDrawTextSize(PhoneTD[1], 100.000000, 225.000000);
  1201. TextDrawSetSelectable(PhoneTD[1], 0);
  1202. PhoneTD[2] = TextDrawCreate(498.000000, 380.000000, "ld_pool:ball");
  1203. TextDrawAlignment(PhoneTD[2], 2);
  1204. TextDrawBackgroundColor(PhoneTD[2], 255);
  1205. TextDrawFont(PhoneTD[2], 4);
  1206. TextDrawLetterSize(PhoneTD[2], 0.500000, 1.000000);
  1207. TextDrawColor(PhoneTD[2], -1768515841);
  1208. TextDrawSetOutline(PhoneTD[2], 0);
  1209. TextDrawSetProportional(PhoneTD[2], 1);
  1210. TextDrawSetShadow(PhoneTD[2], 1);
  1211. TextDrawUseBox(PhoneTD[2], 1);
  1212. TextDrawBoxColor(PhoneTD[2], 255);
  1213. TextDrawTextSize(PhoneTD[2], 15.000000, 23.000000);
  1214. TextDrawSetSelectable(PhoneTD[2], 0);
  1215. PhoneTD[3] = TextDrawCreate(600.000000, 380.000000, "ld_pool:ball");
  1216. TextDrawAlignment(PhoneTD[3], 2);
  1217. TextDrawBackgroundColor(PhoneTD[3], 255);
  1218. TextDrawFont(PhoneTD[3], 4);
  1219. TextDrawLetterSize(PhoneTD[3], 0.500000, 1.000000);
  1220. TextDrawColor(PhoneTD[3], -1768515841);
  1221. TextDrawSetOutline(PhoneTD[3], 0);
  1222. TextDrawSetProportional(PhoneTD[3], 1);
  1223. TextDrawSetShadow(PhoneTD[3], 1);
  1224. TextDrawUseBox(PhoneTD[3], 1);
  1225. TextDrawBoxColor(PhoneTD[3], 255);
  1226. TextDrawTextSize(PhoneTD[3], 15.000000, 23.000000);
  1227. TextDrawSetSelectable(PhoneTD[3], 0);
  1228. PhoneTD[4] = TextDrawCreate(600.000000, 178.000000, "ld_pool:ball");
  1229. TextDrawAlignment(PhoneTD[4], 2);
  1230. TextDrawBackgroundColor(PhoneTD[4], 255);
  1231. TextDrawFont(PhoneTD[4], 4);
  1232. TextDrawLetterSize(PhoneTD[4], 0.500000, 1.000000);
  1233. TextDrawColor(PhoneTD[4], -1768515841);
  1234. TextDrawSetOutline(PhoneTD[4], 0);
  1235. TextDrawSetProportional(PhoneTD[4], 1);
  1236. TextDrawSetShadow(PhoneTD[4], 1);
  1237. TextDrawUseBox(PhoneTD[4], 1);
  1238. TextDrawBoxColor(PhoneTD[4], 255);
  1239. TextDrawTextSize(PhoneTD[4], 15.000000, 23.000000);
  1240. TextDrawSetSelectable(PhoneTD[4], 0);
  1241. PhoneTD[5] = TextDrawCreate(498.500000, 178.000000, "ld_pool:ball");
  1242. TextDrawAlignment(PhoneTD[5], 2);
  1243. TextDrawBackgroundColor(PhoneTD[5], 255);
  1244. TextDrawFont(PhoneTD[5], 4);
  1245. TextDrawLetterSize(PhoneTD[5], 0.500000, 1.000000);
  1246. TextDrawColor(PhoneTD[5], -1768515841);
  1247. TextDrawSetOutline(PhoneTD[5], 0);
  1248. TextDrawSetProportional(PhoneTD[5], 1);
  1249. TextDrawSetShadow(PhoneTD[5], 1);
  1250. TextDrawUseBox(PhoneTD[5], 1);
  1251. TextDrawBoxColor(PhoneTD[5], 255);
  1252. TextDrawTextSize(PhoneTD[5], 15.000000, 23.000000);
  1253. TextDrawSetSelectable(PhoneTD[5], 0);
  1254. PhoneTD[6] = TextDrawCreate(498.000000, 179.000000, "ld_pool:ball");
  1255. TextDrawAlignment(PhoneTD[6], 2);
  1256. TextDrawBackgroundColor(PhoneTD[6], 255);
  1257. TextDrawFont(PhoneTD[6], 4);
  1258. TextDrawLetterSize(PhoneTD[6], 0.500000, 1.000000);
  1259. TextDrawColor(PhoneTD[6], 255);
  1260. TextDrawSetOutline(PhoneTD[6], 0);
  1261. TextDrawSetProportional(PhoneTD[6], 1);
  1262. TextDrawSetShadow(PhoneTD[6], 1);
  1263. TextDrawUseBox(PhoneTD[6], 1);
  1264. TextDrawBoxColor(PhoneTD[6], 255);
  1265. TextDrawTextSize(PhoneTD[6], 15.000000, 23.000000);
  1266. TextDrawSetSelectable(PhoneTD[6], 0);
  1267. PhoneTD[7] = TextDrawCreate(499.000000, 379.000000, "ld_pool:ball");
  1268. TextDrawAlignment(PhoneTD[7], 2);
  1269. TextDrawBackgroundColor(PhoneTD[7], 255);
  1270. TextDrawFont(PhoneTD[7], 4);
  1271. TextDrawLetterSize(PhoneTD[7], 0.500000, 1.000000);
  1272. TextDrawColor(PhoneTD[7], 255);
  1273. TextDrawSetOutline(PhoneTD[7], 0);
  1274. TextDrawSetProportional(PhoneTD[7], 1);
  1275. TextDrawSetShadow(PhoneTD[7], 1);
  1276. TextDrawUseBox(PhoneTD[7], 1);
  1277. TextDrawBoxColor(PhoneTD[7], 255);
  1278. TextDrawTextSize(PhoneTD[7], 15.000000, 23.000000);
  1279. TextDrawSetSelectable(PhoneTD[7], 0);
  1280. PhoneTD[8] = TextDrawCreate(599.000000, 379.000000, "ld_pool:ball");
  1281. TextDrawAlignment(PhoneTD[8], 2);
  1282. TextDrawBackgroundColor(PhoneTD[8], 255);
  1283. TextDrawFont(PhoneTD[8], 4);
  1284. TextDrawLetterSize(PhoneTD[8], 0.500000, 1.000000);
  1285. TextDrawColor(PhoneTD[8], 255);
  1286. TextDrawSetOutline(PhoneTD[8], 0);
  1287. TextDrawSetProportional(PhoneTD[8], 1);
  1288. TextDrawSetShadow(PhoneTD[8], 1);
  1289. TextDrawUseBox(PhoneTD[8], 1);
  1290. TextDrawBoxColor(PhoneTD[8], 255);
  1291. TextDrawTextSize(PhoneTD[8], 15.000000, 23.000000);
  1292. TextDrawSetSelectable(PhoneTD[8], 0);
  1293. PhoneTD[9] = TextDrawCreate(599.000000, 179.000000, "ld_pool:ball");
  1294. TextDrawAlignment(PhoneTD[9], 2);
  1295. TextDrawBackgroundColor(PhoneTD[9], 255);
  1296. TextDrawFont(PhoneTD[9], 4);
  1297. TextDrawLetterSize(PhoneTD[9], 0.500000, 1.000000);
  1298. TextDrawColor(PhoneTD[9], 255);
  1299. TextDrawSetOutline(PhoneTD[9], 0);
  1300. TextDrawSetProportional(PhoneTD[9], 1);
  1301. TextDrawSetShadow(PhoneTD[9], 1);
  1302. TextDrawUseBox(PhoneTD[9], 1);
  1303. TextDrawBoxColor(PhoneTD[9], 255);
  1304. TextDrawTextSize(PhoneTD[9], 15.000000, 23.000000);
  1305. TextDrawSetSelectable(PhoneTD[9], 0);
  1306. PhoneTD[10] = TextDrawCreate(506.000000, 179.000000, "LD_SPAC:White");
  1307. TextDrawAlignment(PhoneTD[10], 2);
  1308. TextDrawBackgroundColor(PhoneTD[10], 255);
  1309. TextDrawFont(PhoneTD[10], 4);
  1310. TextDrawLetterSize(PhoneTD[10], 0.300000, 22.400001);
  1311. TextDrawColor(PhoneTD[10], 0);
  1312. TextDrawSetOutline(PhoneTD[10], 0);
  1313. TextDrawSetProportional(PhoneTD[10], 1);
  1314. TextDrawSetShadow(PhoneTD[10], 1);
  1315. TextDrawUseBox(PhoneTD[10], 1);
  1316. TextDrawBoxColor(PhoneTD[10], 255);
  1317. TextDrawTextSize(PhoneTD[10], 101.000000, 223.000000);
  1318. TextDrawSetSelectable(PhoneTD[10], 0);
  1319. PhoneTD[11] = TextDrawCreate(499.000000, 194.000000, "LD_SPAC:White");
  1320. TextDrawAlignment(PhoneTD[11], 2);
  1321. TextDrawBackgroundColor(PhoneTD[11], 255);
  1322. TextDrawFont(PhoneTD[11], 4);
  1323. TextDrawLetterSize(PhoneTD[11], 0.300000, 19.699998);
  1324. TextDrawColor(PhoneTD[11], 0);
  1325. TextDrawSetOutline(PhoneTD[11], 0);
  1326. TextDrawSetProportional(PhoneTD[11], 1);
  1327. TextDrawSetShadow(PhoneTD[11], 1);
  1328. TextDrawUseBox(PhoneTD[11], 1);
  1329. TextDrawBoxColor(PhoneTD[11], 255);
  1330. TextDrawTextSize(PhoneTD[11], 115.000000, 196.000000);
  1331. TextDrawSetSelectable(PhoneTD[11], 0);
  1332. PhoneTD[12] = TextDrawCreate(538.000000, 194.000000, "ld_pool:ball");
  1333. TextDrawAlignment(PhoneTD[12], 2);
  1334. TextDrawBackgroundColor(PhoneTD[12], 255);
  1335. TextDrawFont(PhoneTD[12], 4);
  1336. TextDrawLetterSize(PhoneTD[12], 0.500000, 1.000000);
  1337. TextDrawColor(PhoneTD[12], 505290495);
  1338. TextDrawSetOutline(PhoneTD[12], 0);
  1339. TextDrawSetProportional(PhoneTD[12], 1);
  1340. TextDrawSetShadow(PhoneTD[12], 1);
  1341. TextDrawUseBox(PhoneTD[12], 1);
  1342. TextDrawBoxColor(PhoneTD[12], 255);
  1343. TextDrawTextSize(PhoneTD[12], 4.000000, 4.000000);
  1344. TextDrawSetSelectable(PhoneTD[12], 0);
  1345. PhoneTD[13] = TextDrawCreate(547.000000, 195.000000, "LD_SPAC:White");
  1346. TextDrawBackgroundColor(PhoneTD[13], 255);
  1347. TextDrawFont(PhoneTD[13], 4);
  1348. TextDrawLetterSize(PhoneTD[13], 0.500000, 2.299998);
  1349. TextDrawColor(PhoneTD[13], 505290495);
  1350. TextDrawSetOutline(PhoneTD[13], 0);
  1351. TextDrawSetProportional(PhoneTD[13], 1);
  1352. TextDrawSetShadow(PhoneTD[13], 2);
  1353. TextDrawUseBox(PhoneTD[13], 1);
  1354. TextDrawBoxColor(PhoneTD[13], 255);
  1355. TextDrawTextSize(PhoneTD[13], 22.000000, 2.000000);
  1356. TextDrawSetSelectable(PhoneTD[13], 0);
  1357. PhoneTD[14] = TextDrawCreate(539.000000, 195.000000, "ld_pool:ball");
  1358. TextDrawAlignment(PhoneTD[14], 2);
  1359. TextDrawBackgroundColor(PhoneTD[14], 255);
  1360. TextDrawFont(PhoneTD[14], 4);
  1361. TextDrawLetterSize(PhoneTD[14], 0.500000, 1.000000);
  1362. TextDrawColor(PhoneTD[14], 336870655);
  1363. TextDrawSetOutline(PhoneTD[14], 0);
  1364. TextDrawSetProportional(PhoneTD[14], 1);
  1365. TextDrawSetShadow(PhoneTD[14], 1);
  1366. TextDrawUseBox(PhoneTD[14], 1);
  1367. TextDrawBoxColor(PhoneTD[14], 255);
  1368. TextDrawTextSize(PhoneTD[14], 2.000000, 2.000000);
  1369. TextDrawSetSelectable(PhoneTD[14], 0);
  1370. PhoneTD[15] = TextDrawCreate(549.000000, 380.000000, "ld_pool:ball");
  1371. TextDrawAlignment(PhoneTD[15], 2);
  1372. TextDrawBackgroundColor(PhoneTD[15], 255);
  1373. TextDrawFont(PhoneTD[15], 4);
  1374. TextDrawLetterSize(PhoneTD[15], 0.500000, 1.000000);
  1375. TextDrawColor(PhoneTD[15], 673720575);
  1376. TextDrawSetOutline(PhoneTD[15], 0);
  1377. TextDrawSetProportional(PhoneTD[15], 1);
  1378. TextDrawSetShadow(PhoneTD[15], 1);
  1379. TextDrawUseBox(PhoneTD[15], 1);
  1380. TextDrawBoxColor(PhoneTD[15], 255);
  1381. TextDrawTextSize(PhoneTD[15], 16.000000, 17.000000);
  1382. TextDrawSetSelectable(PhoneTD[15], 0);
  1383. PhoneTD[16] = TextDrawCreate(550.000000, 381.000000, "ld_pool:ball");
  1384. TextDrawAlignment(PhoneTD[16], 2);
  1385. TextDrawBackgroundColor(PhoneTD[16], 255);
  1386. TextDrawFont(PhoneTD[16], 4);
  1387. TextDrawLetterSize(PhoneTD[16], 0.500000, 1.000000);
  1388. TextDrawColor(PhoneTD[16], 255);
  1389. TextDrawSetOutline(PhoneTD[16], 0);
  1390. TextDrawSetProportional(PhoneTD[16], 1);
  1391. TextDrawSetShadow(PhoneTD[16], 1);
  1392. TextDrawUseBox(PhoneTD[16], 1);
  1393. TextDrawBoxColor(PhoneTD[16], 255);
  1394. TextDrawTextSize(PhoneTD[16], 14.000000, 15.000000);
  1395. TextDrawSetSelectable(PhoneTD[16], 0);
  1396. PhoneTD[17] = TextDrawCreate(505.000000, 208.000000, "NGRP:background");
  1397. TextDrawBackgroundColor(PhoneTD[17], 255);
  1398. TextDrawFont(PhoneTD[17], 4);
  1399. TextDrawLetterSize(PhoneTD[17], 0.500000, 1.000000);
  1400. TextDrawColor(PhoneTD[17], -1768515841);
  1401. TextDrawSetOutline(PhoneTD[17], 0);
  1402. TextDrawSetProportional(PhoneTD[17], 1);
  1403. TextDrawSetShadow(PhoneTD[17], 2);
  1404. TextDrawUseBox(PhoneTD[17], 1);
  1405. TextDrawBoxColor(PhoneTD[17], 255);
  1406. TextDrawTextSize(PhoneTD[17], 102.000000, 165.000000);
  1407. TextDrawSetSelectable(PhoneTD[17], 0);
  1408. PhoneTD[18] = TextDrawCreate(556.000000, 186.000000, "ld_pool:ball");
  1409. TextDrawAlignment(PhoneTD[18], 2);
  1410. TextDrawBackgroundColor(PhoneTD[18], 255);
  1411. TextDrawFont(PhoneTD[18], 4);
  1412. TextDrawLetterSize(PhoneTD[18], 0.500000, 1.000000);
  1413. TextDrawColor(PhoneTD[18], 505290495);
  1414. TextDrawSetOutline(PhoneTD[18], 0);
  1415. TextDrawSetProportional(PhoneTD[18], 1);
  1416. TextDrawSetShadow(PhoneTD[18], 1);
  1417. TextDrawUseBox(PhoneTD[18], 1);
  1418. TextDrawBoxColor(PhoneTD[18], 255);
  1419. TextDrawTextSize(PhoneTD[18], 2.000000, 2.000000);
  1420. TextDrawSetSelectable(PhoneTD[18], 0);
  1421. PhoneTD[19] = TextDrawCreate(513.000000, 218.000000, "Call");
  1422. TextDrawBackgroundColor(PhoneTD[19], 255);
  1423. TextDrawFont(PhoneTD[19], 2);
  1424. TextDrawLetterSize(PhoneTD[19], 0.260000, 1.000000);
  1425. TextDrawColor(PhoneTD[19], -1);
  1426. TextDrawSetOutline(PhoneTD[19], 0);
  1427. TextDrawSetProportional(PhoneTD[19], 1);
  1428. TextDrawSetShadow(PhoneTD[19], 1);
  1429. TextDrawSetSelectable(PhoneTD[19], 1);
  1430. PhoneTD[20] = TextDrawCreate(513.000000, 233.000000, "Address Book");
  1431. TextDrawBackgroundColor(PhoneTD[20], 255);
  1432. TextDrawFont(PhoneTD[20], 2);
  1433. TextDrawLetterSize(PhoneTD[20], 0.260000, 1.000000);
  1434. TextDrawColor(PhoneTD[20], -1);
  1435. TextDrawSetOutline(PhoneTD[20], 0);
  1436. TextDrawSetProportional(PhoneTD[20], 1);
  1437. TextDrawSetShadow(PhoneTD[20], 1);
  1438. TextDrawSetSelectable(PhoneTD[20], 1);
  1439. PhoneTD[21] = TextDrawCreate(513.000000, 246.000000, "Advertisements");
  1440. TextDrawBackgroundColor(PhoneTD[21], 255);
  1441. TextDrawFont(PhoneTD[21], 2);
  1442. TextDrawLetterSize(PhoneTD[21], 0.260000, 1.000000);
  1443. TextDrawColor(PhoneTD[21], -1);
  1444. TextDrawSetOutline(PhoneTD[21], 0);
  1445. TextDrawSetProportional(PhoneTD[21], 1);
  1446. TextDrawSetShadow(PhoneTD[21], 1);
  1447. TextDrawSetSelectable(PhoneTD[21], 1);
  1448. PhoneTD[22] = TextDrawCreate(513.000000, 262.000000, "Music");
  1449. TextDrawBackgroundColor(PhoneTD[22], 255);
  1450. TextDrawFont(PhoneTD[22], 2);
  1451. TextDrawLetterSize(PhoneTD[22], 0.260000, 1.000000);
  1452. TextDrawColor(PhoneTD[22], -1);
  1453. TextDrawSetOutline(PhoneTD[22], 0);
  1454. TextDrawSetProportional(PhoneTD[22], 1);
  1455. TextDrawSetShadow(PhoneTD[22], 1);
  1456. TextDrawSetSelectable(PhoneTD[22], 1);
  1457. PhoneTD[23] = TextDrawCreate(513.000000, 276.000000, "MeTube");
  1458. TextDrawBackgroundColor(PhoneTD[23], 255);
  1459. TextDrawFont(PhoneTD[23], 2);
  1460. TextDrawLetterSize(PhoneTD[23], 0.260000, 1.000000);
  1461. TextDrawColor(PhoneTD[23], -1);
  1462. TextDrawSetOutline(PhoneTD[23], 0);
  1463. TextDrawSetProportional(PhoneTD[23], 1);
  1464. TextDrawSetShadow(PhoneTD[23], 1);
  1465. TextDrawSetSelectable(PhoneTD[23], 1);
  1466. PhoneTD[24] = TextDrawCreate(513.000000, 292.000000, "Doodle Maps");
  1467. TextDrawBackgroundColor(PhoneTD[24], 255);
  1468. TextDrawFont(PhoneTD[24], 2);
  1469. TextDrawLetterSize(PhoneTD[24], 0.260000, 1.000000);
  1470. TextDrawColor(PhoneTD[24], -1);
  1471. TextDrawSetOutline(PhoneTD[24], 0);
  1472. TextDrawSetProportional(PhoneTD[24], 1);
  1473. TextDrawSetShadow(PhoneTD[24], 1);
  1474. TextDrawSetSelectable(PhoneTD[24], 1);
  1475. PhoneTD[25] = TextDrawCreate(513.000000, 309.000000, "Emergency");
  1476. TextDrawBackgroundColor(PhoneTD[25], 255);
  1477. TextDrawFont(PhoneTD[25], 2);
  1478. TextDrawLetterSize(PhoneTD[25], 0.260000, 1.000000);
  1479. TextDrawColor(PhoneTD[25], -1);
  1480. TextDrawSetOutline(PhoneTD[25], 0);
  1481. TextDrawSetProportional(PhoneTD[25], 1);
  1482. TextDrawSetShadow(PhoneTD[25], 1);
  1483. TextDrawSetSelectable(PhoneTD[25], 1);
  1484. PhoneTD[26] = TextDrawCreate(513.000000, 324.000000, "MDC");
  1485. TextDrawBackgroundColor(PhoneTD[26], 255);
  1486. TextDrawFont(PhoneTD[26], 2);
  1487. TextDrawLetterSize(PhoneTD[26], 0.260000, 1.000000);
  1488. TextDrawColor(PhoneTD[26], -1);
  1489. TextDrawSetOutline(PhoneTD[26], 0);
  1490. TextDrawSetProportional(PhoneTD[26], 1);
  1491. TextDrawSetShadow(PhoneTD[26], 1);
  1492. TextDrawSetSelectable(PhoneTD[26], 1);
  1493. PhoneTD[27] = TextDrawCreate(513.000000, 339.000000, "Camera");
  1494. TextDrawBackgroundColor(PhoneTD[27], 255);
  1495. TextDrawFont(PhoneTD[27], 2);
  1496. TextDrawLetterSize(PhoneTD[27], 0.260000, 1.000000);
  1497. TextDrawColor(PhoneTD[27], -1);
  1498. TextDrawSetOutline(PhoneTD[27], 0);
  1499. TextDrawSetProportional(PhoneTD[27], 1);
  1500. TextDrawSetShadow(PhoneTD[27], 1);
  1501. TextDrawSetSelectable(PhoneTD[27], 1);
  1502. PhoneTD[28] = TextDrawCreate(513.000000, 355.000000, "Settings");
  1503. TextDrawBackgroundColor(PhoneTD[28], 255);
  1504. TextDrawFont(PhoneTD[28], 2);
  1505. TextDrawLetterSize(PhoneTD[28], 0.260000, 1.000000);
  1506. TextDrawColor(PhoneTD[28], -1);
  1507. TextDrawSetOutline(PhoneTD[28], 0);
  1508. TextDrawSetProportional(PhoneTD[28], 1);
  1509. TextDrawSetShadow(PhoneTD[28], 1);
  1510. TextDrawSetSelectable(PhoneTD[28], 1);
  1511. PhoneTD[29] = TextDrawCreate(505.000000, 208.000000, "NGRP:background");
  1512. TextDrawBackgroundColor(PhoneTD[29], 255);
  1513. TextDrawFont(PhoneTD[29], 4);
  1514. TextDrawLetterSize(PhoneTD[29], 0.500000, 1.000000);
  1515. TextDrawColor(PhoneTD[29], -1768515841);
  1516. TextDrawSetOutline(PhoneTD[29], 0);
  1517. TextDrawSetProportional(PhoneTD[29], 1);
  1518. TextDrawSetShadow(PhoneTD[29], 2);
  1519. TextDrawUseBox(PhoneTD[29], 1);
  1520. TextDrawBoxColor(PhoneTD[29], 255);
  1521. TextDrawTextSize(PhoneTD[29], 102.000000, 165.000000);
  1522. TextDrawSetSelectable(PhoneTD[29], 0);
  1523. PhoneTD[30] = TextDrawCreate(496.000000, 344.000000, "NGRP:blur");
  1524. TextDrawAlignment(PhoneTD[30], 2);
  1525. TextDrawBackgroundColor(PhoneTD[30], 255);
  1526. TextDrawFont(PhoneTD[30], 4);
  1527. TextDrawLetterSize(PhoneTD[30], 0.500000, 1.000000);
  1528. TextDrawColor(PhoneTD[30], -216);
  1529. TextDrawSetOutline(PhoneTD[30], 0);
  1530. TextDrawSetProportional(PhoneTD[30], 1);
  1531. TextDrawSetShadow(PhoneTD[30], 1);
  1532. TextDrawUseBox(PhoneTD[30], 1);
  1533. TextDrawBoxColor(PhoneTD[30], 255);
  1534. TextDrawTextSize(PhoneTD[30], 124.000000, 31.000000);
  1535. TextDrawSetSelectable(PhoneTD[30], 0);
  1536. PhoneTD[31] = TextDrawCreate(507.000000, 349.000000, "NGRP:phone");
  1537. TextDrawAlignment(PhoneTD[31], 2);
  1538. TextDrawBackgroundColor(PhoneTD[31], 255);
  1539. TextDrawFont(PhoneTD[31], 4);
  1540. TextDrawLetterSize(PhoneTD[31], 0.500000, 1.000000);
  1541. TextDrawColor(PhoneTD[31], -1);
  1542. TextDrawSetOutline(PhoneTD[31], 0);
  1543. TextDrawSetProportional(PhoneTD[31], 1);
  1544. TextDrawSetShadow(PhoneTD[31], 1);
  1545. TextDrawUseBox(PhoneTD[31], 1);
  1546. TextDrawBoxColor(PhoneTD[31], 255);
  1547. TextDrawTextSize(PhoneTD[31], 25.000000, 22.000000);
  1548. TextDrawSetSelectable(PhoneTD[31], 1);
  1549. PhoneTD[32] = TextDrawCreate(581.000000, 349.000000, "NGRP:Music");
  1550. TextDrawAlignment(PhoneTD[32], 2);
  1551. TextDrawBackgroundColor(PhoneTD[32], 255);
  1552. TextDrawFont(PhoneTD[32], 4);
  1553. TextDrawLetterSize(PhoneTD[32], 0.500000, 1.000000);
  1554. TextDrawColor(PhoneTD[32], -1);
  1555. TextDrawSetOutline(PhoneTD[32], 0);
  1556. TextDrawSetProportional(PhoneTD[32], 1);
  1557. TextDrawSetShadow(PhoneTD[32], 1);
  1558. TextDrawUseBox(PhoneTD[32], 1);
  1559. TextDrawBoxColor(PhoneTD[32], 255);
  1560. TextDrawTextSize(PhoneTD[32], 25.000000, 22.000000);
  1561. TextDrawSetSelectable(PhoneTD[32], 1);
  1562. PhoneTD[33] = TextDrawCreate(531.000000, 210.000000, "NGRP:contacts");
  1563. TextDrawAlignment(PhoneTD[33], 2);
  1564. TextDrawBackgroundColor(PhoneTD[33], 255);
  1565. TextDrawFont(PhoneTD[33], 4);
  1566. TextDrawLetterSize(PhoneTD[33], 0.500000, 1.000000);
  1567. TextDrawColor(PhoneTD[33], -1);
  1568. TextDrawSetOutline(PhoneTD[33], 0);
  1569. TextDrawSetProportional(PhoneTD[33], 1);
  1570. TextDrawSetShadow(PhoneTD[33], 1);
  1571. TextDrawUseBox(PhoneTD[33], 1);
  1572. TextDrawBoxColor(PhoneTD[33], 255);
  1573. TextDrawTextSize(PhoneTD[33], 25.000000, 22.000000);
  1574. TextDrawSetSelectable(PhoneTD[33], 1);
  1575. PhoneTD[34] = TextDrawCreate(531.000000, 349.000000, "NGRP:camera");
  1576. TextDrawAlignment(PhoneTD[34], 2);
  1577. TextDrawBackgroundColor(PhoneTD[34], 255);
  1578. TextDrawFont(PhoneTD[34], 4);
  1579. TextDrawLetterSize(PhoneTD[34], 0.500000, 1.000000);
  1580. TextDrawColor(PhoneTD[34], -1);
  1581. TextDrawSetOutline(PhoneTD[34], 0);
  1582. TextDrawSetProportional(PhoneTD[34], 1);
  1583. TextDrawSetShadow(PhoneTD[34], 1);
  1584. TextDrawUseBox(PhoneTD[34], 1);
  1585. TextDrawBoxColor(PhoneTD[34], 255);
  1586. TextDrawTextSize(PhoneTD[34], 25.000000, 22.000000);
  1587. TextDrawSetSelectable(PhoneTD[34], 1);
  1588. PhoneTD[35] = TextDrawCreate(506.000000, 210.000000, "NGRP:message");
  1589. TextDrawAlignment(PhoneTD[35], 2);
  1590. TextDrawBackgroundColor(PhoneTD[35], 255);
  1591. TextDrawFont(PhoneTD[35], 4);
  1592. TextDrawLetterSize(PhoneTD[35], 0.500000, 1.000000);
  1593. TextDrawColor(PhoneTD[35], -1);
  1594. TextDrawSetOutline(PhoneTD[35], 0);
  1595. TextDrawSetProportional(PhoneTD[35], 1);
  1596. TextDrawSetShadow(PhoneTD[35], 1);
  1597. TextDrawUseBox(PhoneTD[35], 1);
  1598. TextDrawBoxColor(PhoneTD[35], 255);
  1599. TextDrawTextSize(PhoneTD[35], 25.000000, 22.000000);
  1600. TextDrawSetSelectable(PhoneTD[35], 1);
  1601. PhoneTD[36] = TextDrawCreate(556.000000, 210.000000, "NGRP:ads");
  1602. TextDrawAlignment(PhoneTD[36], 2);
  1603. TextDrawBackgroundColor(PhoneTD[36], 255);
  1604. TextDrawFont(PhoneTD[36], 4);
  1605. TextDrawLetterSize(PhoneTD[36], 0.500000, 1.000000);
  1606. TextDrawColor(PhoneTD[36], -1);
  1607. TextDrawSetOutline(PhoneTD[36], 0);
  1608. TextDrawSetProportional(PhoneTD[36], 1);
  1609. TextDrawSetShadow(PhoneTD[36], 1);
  1610. TextDrawUseBox(PhoneTD[36], 1);
  1611. TextDrawBoxColor(PhoneTD[36], 255);
  1612. TextDrawTextSize(PhoneTD[36], 25.000000, 22.000000);
  1613. TextDrawSetSelectable(PhoneTD[36], 1);
  1614. PhoneTD[37] = TextDrawCreate(581.000000, 210.000000, "NGRP:home");
  1615. TextDrawAlignment(PhoneTD[37], 2);
  1616. TextDrawBackgroundColor(PhoneTD[37], 255);
  1617. TextDrawFont(PhoneTD[37], 4);
  1618. TextDrawLetterSize(PhoneTD[37], 0.500000, 1.000000);
  1619. TextDrawColor(PhoneTD[37], -1);
  1620. TextDrawSetOutline(PhoneTD[37], 0);
  1621. TextDrawSetProportional(PhoneTD[37], 1);
  1622. TextDrawSetShadow(PhoneTD[37], 1);
  1623. TextDrawUseBox(PhoneTD[37], 1);
  1624. TextDrawBoxColor(PhoneTD[37], 255);
  1625. TextDrawTextSize(PhoneTD[37], 25.000000, 22.000000);
  1626. TextDrawSetSelectable(PhoneTD[37], 1);
  1627. PhoneTD[38] = TextDrawCreate(531.000000, 234.000000, "NGRP:Maps");
  1628. TextDrawAlignment(PhoneTD[38], 2);
  1629. TextDrawBackgroundColor(PhoneTD[38], 255);
  1630. TextDrawFont(PhoneTD[38], 4);
  1631. TextDrawLetterSize(PhoneTD[38], 0.500000, 1.000000);
  1632. TextDrawColor(PhoneTD[38], -1);
  1633. TextDrawSetOutline(PhoneTD[38], 0);
  1634. TextDrawSetProportional(PhoneTD[38], 1);
  1635. TextDrawSetShadow(PhoneTD[38], 1);
  1636. TextDrawUseBox(PhoneTD[38], 1);
  1637. TextDrawBoxColor(PhoneTD[38], 255);
  1638. TextDrawTextSize(PhoneTD[38], 25.000000, 22.000000);
  1639. TextDrawSetSelectable(PhoneTD[38], 1);
  1640. PhoneTD[39] = TextDrawCreate(506.000000, 234.000000, "NGRP:shows");
  1641. TextDrawAlignment(PhoneTD[39], 2);
  1642. TextDrawBackgroundColor(PhoneTD[39], 255);
  1643. TextDrawFont(PhoneTD[39], 4);
  1644. TextDrawLetterSize(PhoneTD[39], 0.500000, 1.000000);
  1645. TextDrawColor(PhoneTD[39], -1);
  1646. TextDrawSetOutline(PhoneTD[39], 0);
  1647. TextDrawSetProportional(PhoneTD[39], 1);
  1648. TextDrawSetShadow(PhoneTD[39], 1);
  1649. TextDrawUseBox(PhoneTD[39], 1);
  1650. TextDrawBoxColor(PhoneTD[39], 255);
  1651. TextDrawTextSize(PhoneTD[39], 25.000000, 22.000000);
  1652. TextDrawSetSelectable(PhoneTD[39], 1);
  1653. PhoneTD[40] = TextDrawCreate(556.000000, 234.000000, "NGRP:Health");
  1654. TextDrawAlignment(PhoneTD[40], 2);
  1655. TextDrawBackgroundColor(PhoneTD[40], 255);
  1656. TextDrawFont(PhoneTD[40], 4);
  1657. TextDrawLetterSize(PhoneTD[40], 0.500000, 1.000000);
  1658. TextDrawColor(PhoneTD[40], -1);
  1659. TextDrawSetOutline(PhoneTD[40], 0);
  1660. TextDrawSetProportional(PhoneTD[40], 1);
  1661. TextDrawSetShadow(PhoneTD[40], 1);
  1662. TextDrawUseBox(PhoneTD[40], 1);
  1663. TextDrawBoxColor(PhoneTD[40], 255);
  1664. TextDrawTextSize(PhoneTD[40], 25.000000, 22.000000);
  1665. TextDrawSetSelectable(PhoneTD[40], 1);
  1666. PhoneTD[41] = TextDrawCreate(581.000000, 234.000000, "NGRP:mdc");
  1667. TextDrawAlignment(PhoneTD[41], 2);
  1668. TextDrawBackgroundColor(PhoneTD[41], 255);
  1669. TextDrawFont(PhoneTD[41], 4);
  1670. TextDrawLetterSize(PhoneTD[41], 0.500000, 1.000000);
  1671. TextDrawColor(PhoneTD[41], -1);
  1672. TextDrawSetOutline(PhoneTD[41], 0);
  1673. TextDrawSetProportional(PhoneTD[41], 1);
  1674. TextDrawSetShadow(PhoneTD[41], 1);
  1675. TextDrawUseBox(PhoneTD[41], 1);
  1676. TextDrawBoxColor(PhoneTD[41], 255);
  1677. TextDrawTextSize(PhoneTD[41], 25.000000, 22.000000);
  1678. TextDrawSetSelectable(PhoneTD[41], 1);
  1679. PhoneTD[42] = TextDrawCreate(506.000000, 258.000000, "NGRP:settings");
  1680. TextDrawAlignment(PhoneTD[42], 2);
  1681. TextDrawBackgroundColor(PhoneTD[42], 255);
  1682. TextDrawFont(PhoneTD[42], 4);
  1683. TextDrawLetterSize(PhoneTD[42], 0.500000, 1.000000);
  1684. TextDrawColor(PhoneTD[42], -1);
  1685. TextDrawSetOutline(PhoneTD[42], 0);
  1686. TextDrawSetProportional(PhoneTD[42], 1);
  1687. TextDrawSetShadow(PhoneTD[42], 1);
  1688. TextDrawUseBox(PhoneTD[42], 1);
  1689. TextDrawBoxColor(PhoneTD[42], 255);
  1690. TextDrawTextSize(PhoneTD[42], 25.000000, 22.000000);
  1691. TextDrawSetSelectable(PhoneTD[42], 1);
  1692. */
  1693. phone_PTextDraw[playerid][0] = CreatePlayerTextDraw(playerid,501.000000, 243.000000, "LD_DUAL:white");
  1694. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][0], 100);
  1695. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][0], 4);
  1696. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][0], 0.500000, 1.000000);
  1697. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][0], 673720575);
  1698. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][0], 0);
  1699. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][0], 1);
  1700. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][0], 0);
  1701. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][0], 1);
  1702. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][0], 100);
  1703. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][0], 87.000000, 164.000000);
  1704. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][0], 0);
  1705. phone_PTextDraw[playerid][1] = CreatePlayerTextDraw(playerid,502.000000, 245.000000, "LD_DUAL:white");
  1706. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][1], 100);
  1707. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][1], 4);
  1708. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][1], 0.500000, 1.000000);
  1709. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][1], 100);
  1710. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][1], 0);
  1711. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][1], 1);
  1712. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][1], 0);
  1713. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][1], 1);
  1714. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][1], 100);
  1715. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][1], 84.000000, 159.000000);
  1716. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][1], 0);
  1717. phone_PTextDraw[playerid][2] = CreatePlayerTextDraw(playerid,507.000000, 252.000000, "LD_DUAL:Health");
  1718. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][2], 100);
  1719. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][2], 4);
  1720. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][2], 0.500000, 1.000000);
  1721. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][2], -1);
  1722. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][2], 0);
  1723. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][2], 1);
  1724. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][2], 0);
  1725. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][2], 1);
  1726. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][2], 1684301055);
  1727. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][2], 75.000000, 134.000000);
  1728. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][2], 0);
  1729. phone_PTextDraw[playerid][3] = CreatePlayerTextDraw(playerid,508.000000, 394.000000, "LD_DUAL:white");
  1730. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][3], 255);
  1731. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][3], 4);
  1732. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][3], 0.500000, 1.000000);
  1733. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][3], 182848000);
  1734. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][3], 0);
  1735. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][3], 1);
  1736. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][3], 1);
  1737. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][3], 1);
  1738. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][3], 255);
  1739. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][3], 20.000000, 4.000000);
  1740. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][3], 0);
  1741. phone_PTextDraw[playerid][4] = CreatePlayerTextDraw(playerid,562.000000, 394.000000, "LD_DUAL:white");
  1742. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][4], 255);
  1743. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][4], 4);
  1744. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][4], 0.500000, 1.000000);
  1745. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][4], -938863361);
  1746. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][4], 0);
  1747. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][4], 1);
  1748. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][4], 1);
  1749. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][4], 1);
  1750. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][4], 255);
  1751. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][4], 20.000000, 4.000000);
  1752. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][4], 0);
  1753. phone_PTextDraw[playerid][5] = CreatePlayerTextDraw(playerid,537.000000, 395.000000, "LD_DUAL:white"); // background
  1754. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][5], 255);
  1755. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][5], 4);
  1756. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][5], 0.500000, 1.000000);
  1757. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][5], 1684306175);
  1758. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][5], 0);
  1759. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][5], 1);
  1760. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][5], 1);
  1761. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][5], 1);
  1762. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][5], 255);
  1763. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][5], 17.000000, 3.000000);
  1764. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][5], 0);
  1765. phone_PTextDraw[playerid][6] = CreatePlayerTextDraw(playerid,571.000000, 376.000000, "cancel");
  1766. PlayerTextDrawAlignment(playerid,phone_PTextDraw[playerid][6], 2);
  1767. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][6], 673720520);
  1768. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][6], 1);
  1769. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][6], 0.150000, 0.899999);
  1770. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][6], -1);
  1771. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][6], 1);
  1772. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][6], 1);
  1773. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][6], 1);
  1774. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][6], 673720470);
  1775. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][6], 578.000000, -25.000000);
  1776. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][6], 0);
  1777. phone_PTextDraw[playerid][7] = CreatePlayerTextDraw(playerid,544.000000, 253.000000, "09:10");
  1778. PlayerTextDrawAlignment(playerid,phone_PTextDraw[playerid][7], 2);
  1779. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][7], 20);
  1780. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][7], 1);
  1781. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][7], 0.189999, 0.599999);
  1782. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][7], -1);
  1783. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][7], 1);
  1784. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][7], 1);
  1785. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][7], 1);
  1786. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][7], 336860370);
  1787. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][7], 250.000000, -82.000000);
  1788. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][7], 0);
  1789. phone_PTextDraw[playerid][8] = CreatePlayerTextDraw(playerid,567.000000, 255.000000, "LD_DUAL:white");
  1790. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][8], 255);
  1791. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][8], 4);
  1792. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][8], 0.500000, 1.000000);
  1793. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][8], 184489215);
  1794. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][8], 0);
  1795. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][8], 1);
  1796. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][8], 1);
  1797. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][8], 1);
  1798. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][8], 255);
  1799. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][8], 10.000000, 2.000000);
  1800. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][8], 0);
  1801. phone_PTextDraw[playerid][9] = CreatePlayerTextDraw(playerid,575.000000, 255.000000, "LD_DUAL:white");
  1802. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][9], 255);
  1803. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][9], 4);
  1804. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][9], 0.500000, 1.000000);
  1805. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][9], 255);
  1806. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][9], 0);
  1807. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][9], 1);
  1808. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][9], 1);
  1809. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][9], 1);
  1810. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][9], 1010580735);
  1811. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][9], 2.000000, 2.000000);
  1812. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][9], 0);
  1813. phone_PTextDraw[playerid][10] = CreatePlayerTextDraw(playerid,511.000000, 252.000000, "T");
  1814. PlayerTextDrawAlignment(playerid,phone_PTextDraw[playerid][10], 2);
  1815. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][10], 20);
  1816. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][10], 1);
  1817. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][10], 0.239999, 0.799998);
  1818. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][10], -1);
  1819. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][10], 0);
  1820. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][10], 1);
  1821. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][10], 1);
  1822. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][10], 0);
  1823. phone_PTextDraw[playerid][11] = CreatePlayerTextDraw(playerid,518.000000, 376.000000, "select");
  1824. PlayerTextDrawAlignment(playerid,phone_PTextDraw[playerid][11], 2);
  1825. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][11], 673720520);
  1826. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][11], 1);
  1827. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][11], 0.150000, 0.899999);
  1828. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][11], -1);
  1829. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][11], 1);
  1830. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][11], 1);
  1831. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][11], 1);
  1832. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][11], 673720470);
  1833. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][11], 578.000000, -25.000000);
  1834. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][11], 0);
  1835. phone_PTextDraw[playerid][12] = CreatePlayerTextDraw(playerid,510.000000, 266.000000, "Call");
  1836. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][12], 0x00000000);
  1837. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][12], 1);
  1838. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][12], 0.170000, 0.999998);
  1839. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][12], -1);
  1840. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][12], 1);
  1841. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][12], 1);
  1842. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][12], 1);
  1843. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][12], 0x00000000);
  1844. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][12], 578.000000, -61.000000);
  1845. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][12], 0);
  1846. phone_PTextDraw[playerid][13] = CreatePlayerTextDraw(playerid,510.000000, 278.000000, "Contacts");
  1847. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][13], 0x00000000);
  1848. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][13], 1);
  1849. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][13], 0.170000, 0.999998);
  1850. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][13], -1);
  1851. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][13], 1);
  1852. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][13], 1);
  1853. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][13], 1);
  1854. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][13], 0x00000000);
  1855. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][13], 578.000000, -61.000000);
  1856. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][13], 0);
  1857. phone_PTextDraw[playerid][14] = CreatePlayerTextDraw(playerid,510.000000, 290.000000, "Events");
  1858. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][14], 0x00000000);
  1859. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][14], 1);
  1860. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][14], 0.170000, 0.999998);
  1861. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][14], -1);
  1862. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][14], 1);
  1863. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][14], 1);
  1864. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][14], 1);
  1865. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][14], 0x00000000);
  1866. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][14], 578.000000, -61.000000);
  1867. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][14], 0);
  1868. phone_PTextDraw[playerid][15] = CreatePlayerTextDraw(playerid,510.000000, 302.000000, "Advertisements");
  1869. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][15], 0x00000000);
  1870. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][15], 1);
  1871. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][15], 0.170000, 0.999998);
  1872. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][15], -1);
  1873. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][15], 1);
  1874. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][15], 1);
  1875. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][15], 1);
  1876. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][15], 0x00000000);
  1877. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][15], 578.000000, -61.000000);
  1878. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][15], 0);
  1879. phone_PTextDraw[playerid][16] = CreatePlayerTextDraw(playerid,510.000000, 314.000000, "Music");
  1880. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][16], 0x00000000);
  1881. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][16], 1);
  1882. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][16], 0.170000, 0.999998);
  1883. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][16], -1);
  1884. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][16], 1);
  1885. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][16], 1);
  1886. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][16], 1);
  1887. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][16], 0x00000000);
  1888. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][16], 578.000000, -61.000000);
  1889. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][16], 0);
  1890. phone_PTextDraw[playerid][17] = CreatePlayerTextDraw(playerid,510.000000, 326.000000, "Videos");
  1891. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][17], 0x00000000);
  1892. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][17], 1);
  1893. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][17], 0.170000, 0.999997);
  1894. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][17], -1);
  1895. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][17], 1);
  1896. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][17], 1);
  1897. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][17], 1);
  1898. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][17], 0x00000000);
  1899. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][17], 578.000000, -61.000000);
  1900. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][17], 0);
  1901. phone_PTextDraw[playerid][18] = CreatePlayerTextDraw(playerid,510.000000, 338.000000, "Doogle Maps");
  1902. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][18], 0x00000000);
  1903. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][18], 1);
  1904. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][18], 0.170000, 0.999997);
  1905. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][18], -1);
  1906. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][18], 1);
  1907. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][18], 1);
  1908. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][18], 1);
  1909. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][18], 0x00000000);
  1910. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][18], 578.000000, -61.000000);
  1911. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][18], 0);
  1912. phone_PTextDraw[playerid][19] = CreatePlayerTextDraw(playerid,510.000000, 350.000000, "Camera");
  1913. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][19], 0x00000000);
  1914. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][19], 1);
  1915. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][19], 0.170000, 0.999997);
  1916. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][19], -1);
  1917. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][19], 1);
  1918. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][19], 1);
  1919. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][19], 1);
  1920. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][19], 0x00000000);
  1921. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][19], 578.000000, -61.000000);
  1922. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][19], 0);
  1923. phone_PTextDraw[playerid][20] = CreatePlayerTextDraw(playerid,510.000000, 362.000000, "Settings");
  1924. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][20], 0x00000000);
  1925. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][20], 1);
  1926. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][20], 0.170000, 0.999997);
  1927. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][20], -1);
  1928. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][20], 1);
  1929. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][20], 1);
  1930. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][20], 1);
  1931. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][20], 0x00000000);
  1932. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][20], 578.000000, -61.000000);
  1933. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][20], 0);
  1934. phone_PTextDraw[playerid][21] = CreatePlayerTextDraw(playerid,514.000000, 258.000000, "LD_DUAL:white");
  1935. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][21], 255);
  1936. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][21], 4);
  1937. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][21], 0.500000, 1.000000);
  1938. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][21], -1);
  1939. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][21], 0);
  1940. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][21], 1);
  1941. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][21], 1);
  1942. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][21], 1);
  1943. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][21], 255);
  1944. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][21], 1.000000, -2.000000);
  1945. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][21], 0);
  1946. phone_PTextDraw[playerid][22] = CreatePlayerTextDraw(playerid,516.000000, 258.000000, "LD_DUAL:white");
  1947. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][22], 255);
  1948. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][22], 4);
  1949. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][22], 0.500000, 1.000000);
  1950. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][22], -1);
  1951. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][22], 0);
  1952. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][22], 1);
  1953. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][22], 1);
  1954. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][22], 1);
  1955. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][22], 255);
  1956. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][22], 1.000000, -3.000000);
  1957. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][22], 0);
  1958. phone_PTextDraw[playerid][23] = CreatePlayerTextDraw(playerid,518.000000, 258.000000, "LD_DUAL:white");
  1959. PlayerTextDrawBackgroundColor(playerid,phone_PTextDraw[playerid][23], 255);
  1960. PlayerTextDrawFont(playerid,phone_PTextDraw[playerid][23], 4);
  1961. PlayerTextDrawLetterSize(playerid,phone_PTextDraw[playerid][23], 0.500000, 1.000000);
  1962. PlayerTextDrawColor(playerid,phone_PTextDraw[playerid][23], -1);
  1963. PlayerTextDrawSetOutline(playerid,phone_PTextDraw[playerid][23], 0);
  1964. PlayerTextDrawSetProportional(playerid,phone_PTextDraw[playerid][23], 1);
  1965. PlayerTextDrawSetShadow(playerid,phone_PTextDraw[playerid][23], 1);
  1966. PlayerTextDrawUseBox(playerid,phone_PTextDraw[playerid][23], 1);
  1967. PlayerTextDrawBoxColor(playerid,phone_PTextDraw[playerid][23], 255);
  1968. PlayerTextDrawTextSize(playerid,phone_PTextDraw[playerid][23], 1.000000, -5.000000);
  1969. PlayerTextDrawSetSelectable(playerid,phone_PTextDraw[playerid][23], 0);
  1970. }