NealPeteros

Phone Textdraw

Jan 9th, 2018
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.39 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4. #include <a_samp>
  5.  
  6. #define PHONE_TYPE_BLACK (0)
  7. #define PHONE_TYPE_RED (1)
  8. #define PHONE_TYPE_BLUE (2)
  9.  
  10. #define Page_None -1
  11. #define Page_Home 0
  12. #define Page_Menu 1
  13. #define Page_Notebook 2
  14. #define Page_Contact 3
  15. #define Page_Setting 4
  16.  
  17. #define SLOT_PHONE 1
  18.  
  19. new bool:pUseGUI[MAX_PLAYERS];
  20. new bool:pPhoneOff[MAX_PLAYERS];
  21. new pPhoneType[MAX_PLAYERS];
  22.  
  23. enum cache_data
  24. {
  25. current_page
  26. }
  27.  
  28. new cache_phone[MAX_PLAYERS][cache_data];
  29.  
  30. new
  31. //PlayerText: ColorPanel[MAX_PLAYERS][10],
  32. PlayerText: PhoneFrame[MAX_PLAYERS][3],
  33. PlayerText: PhoneLogo[MAX_PLAYERS],
  34. PlayerText: PhoneSwitch[MAX_PLAYERS],
  35. PlayerText: PhoneInfo[MAX_PLAYERS],
  36. PlayerText: PhoneDisplay[MAX_PLAYERS],
  37. PlayerText: PhoneBtnL[MAX_PLAYERS],
  38. PlayerText: PhoneBtnR[MAX_PLAYERS],
  39. PlayerText: PhoneArrowUp[MAX_PLAYERS],
  40. PlayerText: PhoneArrowDown[MAX_PLAYERS],
  41. PlayerText: PhoneArrowLeft[MAX_PLAYERS],
  42. PlayerText: PhoneArrowRight[MAX_PLAYERS],
  43. PlayerText: PhoneBtnMenu[MAX_PLAYERS],
  44. PlayerText: PhoneBtnBack[MAX_PLAYERS],
  45. PlayerText: PhoneDate[MAX_PLAYERS],
  46. PlayerText: PhoneTime[MAX_PLAYERS],
  47. PlayerText: PhoneSignal[MAX_PLAYERS],
  48. PlayerText: PhonePower[MAX_PLAYERS],
  49. PlayerText: PhoneNotify[MAX_PLAYERS],
  50. PlayerText: PhoneList[MAX_PLAYERS][3],
  51. PlayerText: PhoneListName[MAX_PLAYERS]
  52. ;
  53.  
  54. new PlayerText:NumberLetters[MAX_PLAYERS][4];
  55.  
  56.  
  57. //Shows Phone Textdraw
  58.  
  59. stock Phone_ShowUI(playerid)
  60. {
  61. SendClientMessage(playerid, -1, "[ ! ] Note: To toggle the phone, use /phone. To bring up the mouse, use /pc.");
  62. Phone_HideUI(playerid);
  63. pUseGUI[playerid] = true;
  64. cache_phone[playerid][current_page] = Page_Home;
  65.  
  66. AttachPlayerPhone(playerid);
  67. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
  68. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.1, 0, 0, 0, 0, 0);
  69.  
  70. new
  71. hour,
  72. minute,
  73. second,
  74. year,
  75. month,
  76. day,
  77. MonthStr[40],
  78. str[128]
  79. ;
  80.  
  81. gettime(hour, minute, second);
  82. format(str, sizeof(str), "%02d:%02d", hour, minute);
  83. PlayerTextDrawSetString(playerid, PhoneTime[playerid], str);
  84.  
  85. getdate(year, month, day);
  86. switch(month)
  87. {
  88. case 1: MonthStr = "January";
  89. case 2: MonthStr = "February";
  90. case 3: MonthStr = "March";
  91. case 4: MonthStr = "April";
  92. case 5: MonthStr = "May";
  93. case 6: MonthStr = "June";
  94. case 7: MonthStr = "July";
  95. case 8: MonthStr = "August";
  96. case 9: MonthStr = "September";
  97. case 10: MonthStr = "October";
  98. case 11: MonthStr = "November";
  99. case 12: MonthStr = "December";
  100. }
  101. format(str, sizeof(str), "%s_%d", MonthStr, day);
  102. PlayerTextDrawSetString(playerid, PhoneDate[playerid], str);
  103.  
  104. if(pPhoneOff[playerid])
  105. {
  106. PlayerTextDrawBoxColor(playerid, PhoneDisplay[playerid], 255);
  107. }
  108.  
  109. for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, PhoneFrame[playerid][i]);
  110. PlayerTextDrawShow(playerid, PhoneLogo[playerid]);
  111. PlayerTextDrawShow(playerid, PhoneSwitch[playerid]);
  112. PlayerTextDrawShow(playerid, PhoneInfo[playerid]);
  113. PlayerTextDrawShow(playerid, PhoneDisplay[playerid]);
  114. PlayerTextDrawShow(playerid, PhoneBtnL[playerid]);
  115. PlayerTextDrawShow(playerid, PhoneBtnR[playerid]);
  116. PlayerTextDrawShow(playerid, PhoneArrowUp[playerid]);
  117. PlayerTextDrawShow(playerid, PhoneArrowDown[playerid]);
  118. PlayerTextDrawShow(playerid, PhoneArrowLeft[playerid]);
  119. PlayerTextDrawShow(playerid, PhoneArrowRight[playerid]);
  120. PlayerTextDrawShow(playerid, PhoneBtnMenu[playerid]);
  121. PlayerTextDrawShow(playerid, PhoneBtnBack[playerid]);
  122. PlayerTextDrawShow(playerid, PhoneDate[playerid]);
  123. PlayerTextDrawShow(playerid, PhoneTime[playerid]);
  124. PlayerTextDrawShow(playerid, PhoneSignal[playerid]);
  125. PlayerTextDrawShow(playerid, PhonePower[playerid]);
  126. PlayerTextDrawShow(playerid, PhoneDate[playerid]);
  127. PlayerTextDrawShow(playerid, PhoneTime[playerid]);
  128. PlayerTextDrawShow(playerid, PhoneNotify[playerid]);
  129.  
  130. SelectTextDraw(playerid, 0xAFAFAFFF);
  131. return 1;
  132. }
  133.  
  134. //Hides Phone Textdraw
  135.  
  136. stock Phone_HideUI(playerid)
  137. {
  138. for(new i = 0; i < 3; i++) PlayerTextDrawHide(playerid, PhoneFrame[playerid][i]);
  139. PlayerTextDrawHide(playerid, PhoneLogo[playerid]);
  140. PlayerTextDrawHide(playerid, PhoneSwitch[playerid]);
  141. PlayerTextDrawHide(playerid, PhoneInfo[playerid]);
  142. PlayerTextDrawHide(playerid, PhoneDisplay[playerid]);
  143. PlayerTextDrawHide(playerid, PhoneBtnL[playerid]);
  144. PlayerTextDrawHide(playerid, PhoneBtnR[playerid]);
  145. PlayerTextDrawHide(playerid, PhoneArrowUp[playerid]);
  146. PlayerTextDrawHide(playerid, PhoneArrowDown[playerid]);
  147. PlayerTextDrawHide(playerid, PhoneArrowLeft[playerid]);
  148. PlayerTextDrawHide(playerid, PhoneArrowRight[playerid]);
  149. PlayerTextDrawHide(playerid, PhoneBtnMenu[playerid]);
  150. PlayerTextDrawHide(playerid, PhoneBtnBack[playerid]);
  151. PlayerTextDrawHide(playerid, PhoneDate[playerid]);
  152. PlayerTextDrawHide(playerid, PhoneTime[playerid]);
  153. PlayerTextDrawHide(playerid, PhoneSignal[playerid]);
  154. PlayerTextDrawHide(playerid, PhonePower[playerid]);
  155. PlayerTextDrawHide(playerid, PhoneDate[playerid]);
  156. PlayerTextDrawHide(playerid, PhoneTime[playerid]);
  157. PlayerTextDrawHide(playerid, PhoneNotify[playerid]);
  158. cache_phone[playerid][current_page] = Page_None;
  159. RemovePlayerAttachedObject(playerid, SLOT_PHONE);
  160. pUseGUI[playerid] = false;
  161. CancelSelectTextDraw(playerid);
  162. return 1;
  163. }
  164.  
  165. //Attaches Player's Phone to calling action
  166.  
  167. stock AttachPlayerPhone(playerid)
  168. {
  169. switch(pPhoneType[playerid])
  170. {
  171. case PHONE_TYPE_BLACK:
  172. {
  173. SetPlayerAttachedObject(playerid, SLOT_PHONE, 18868, 6, 0.064999, 0.043999, 0.004999, -112.0, 0.0, -178.9);
  174. }
  175. case PHONE_TYPE_RED:
  176. {
  177. PlayerTextDrawBoxColor(playerid, PhoneFrame[playerid][0], 1225921279);
  178. PlayerTextDrawColor(playerid, PhoneFrame[playerid][1], 1225921279);
  179. PlayerTextDrawColor(playerid, PhoneFrame[playerid][2], 1225921279);
  180. SetPlayerAttachedObject(playerid, SLOT_PHONE, 18870, 6, 0.064999, 0.043999, 0.004999, -112.0, 0.0, -178.9);
  181. }
  182. case PHONE_TYPE_BLUE:
  183. {
  184. PlayerTextDrawBoxColor(playerid, PhoneFrame[playerid][0], 456290303);
  185. PlayerTextDrawColor(playerid, PhoneFrame[playerid][1], 456290303);
  186. PlayerTextDrawColor(playerid, PhoneFrame[playerid][2], 456290303);
  187. SetPlayerAttachedObject(playerid, SLOT_PHONE, 18874, 6, 0.064999, 0.043999, 0.004999, -112.0, 0.0, -178.9);
  188. }
  189. }
  190. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  191. return 1;
  192. }
  193.  
  194. //playerid == player's id | show == if menu of phone(call, sms, etc) would be shown | true = shown false = not shown | page == page of menu to be shown(if show == true)
  195.  
  196. stock showPhoneMenu(playerid, bool:show, page)
  197. {
  198. if(show)
  199. {
  200. showPhonePage(playerid, page);
  201.  
  202. PlayerTextDrawShow(playerid, PhoneListName[playerid]);
  203. for(new i = 0; i < 3; i ++) PlayerTextDrawShow(playerid, PhoneList[playerid][i]);
  204.  
  205. PlayerTextDrawHide(playerid, PhoneDate[playerid]);
  206. PlayerTextDrawHide(playerid, PhoneTime[playerid]);
  207. PlayerTextDrawHide(playerid, PhoneSignal[playerid]);
  208. PlayerTextDrawHide(playerid, PhonePower[playerid]);
  209. PlayerTextDrawHide(playerid, PhoneNotify[playerid]);
  210. PlayerTextDrawHide(playerid, PhoneBtnMenu[playerid]);
  211. PlayerTextDrawHide(playerid, PhoneBtnBack[playerid]);
  212.  
  213. }
  214. else
  215. {
  216. cache_phone[playerid][current_page] = 0;
  217. PlayerTextDrawHide(playerid, PhoneListName[playerid]);
  218. for(new i = 0; i < 3; i ++) PlayerTextDrawHide(playerid, PhoneList[playerid][i]);
  219. Phone_HideUI(playerid);
  220. Phone_ShowUI(playerid);
  221. }
  222. return 1;
  223. }
  224.  
  225. //Shows page for phone textdraw | playerid == player's id | page == page of phone menu to be shown
  226.  
  227. stock showPhonePage(playerid, page)
  228. {
  229. switch(page)
  230. {
  231. case Page_Home:
  232. {
  233. PlayerTextDrawSetString(playerid, PhoneListName[playerid], "Notebook~n~Contact~n~Setting");
  234. showPhoneMenu(playerid, false, -1);
  235. }
  236. case Page_Menu:
  237. {
  238. PlayerTextDrawSetString(playerid, PhoneListName[playerid], "Notebook~n~Contact~n~Setting");
  239. }
  240. case Page_Notebook:
  241. {
  242. PlayerTextDrawSetString(playerid, PhoneListName[playerid], "Call~n~SMS~n~Contact_List");
  243. }
  244. case Page_Contact:
  245. {
  246. PlayerTextDrawSetString(playerid, PhoneListName[playerid], "Add_Contact~n~Edit_Contact~n~Delete_Contact");
  247. }
  248. case Page_Setting:
  249. {
  250. PlayerTextDrawSetString(playerid, PhoneListName[playerid], "Ringtone~n~Theme~n~Phone_Mode"); // phone mode > silent, flight
  251. }
  252. }
  253. }
  254.  
  255. public OnFilterScriptInit()
  256. {
  257. print("\n--------------------------------------");
  258. print(" Blank Filterscript by your name here");
  259. print("--------------------------------------\n");
  260. return 1;
  261. }
  262.  
  263. public OnFilterScriptExit()
  264. {
  265. return 1;
  266. }
  267.  
  268. public OnGameModeInit()
  269. {
  270. // Don't use these lines if it's a filterscript
  271. SetGameModeText("Blank Script");
  272. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  273. return 1;
  274. }
  275.  
  276. public OnGameModeExit()
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerRequestClass(playerid, classid)
  282. {
  283. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  284. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  285. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  286. return 1;
  287. }
  288.  
  289. public OnPlayerConnect(playerid)
  290. {
  291. PhoneFrame[playerid][0] = CreatePlayerTextDraw(playerid, 476.003417, 346.916748, "box");
  292. PlayerTextDrawLetterSize(playerid, PhoneFrame[playerid][0], 0.000000, 13.935577);
  293. PlayerTextDrawTextSize(playerid, PhoneFrame[playerid][0], 558.000000, 0.000000);
  294. PlayerTextDrawAlignment(playerid, PhoneFrame[playerid][0], 1);
  295. PlayerTextDrawColor(playerid, PhoneFrame[playerid][0], 255);
  296. PlayerTextDrawUseBox(playerid, PhoneFrame[playerid][0], 1);
  297. PlayerTextDrawBoxColor(playerid, PhoneFrame[playerid][0], 255);
  298. PlayerTextDrawSetShadow(playerid, PhoneFrame[playerid][0], 0);
  299. PlayerTextDrawSetOutline(playerid, PhoneFrame[playerid][0], 0);
  300. PlayerTextDrawBackgroundColor(playerid, PhoneFrame[playerid][0], 255);
  301. PlayerTextDrawFont(playerid, PhoneFrame[playerid][0], 1);
  302. PlayerTextDrawSetProportional(playerid, PhoneFrame[playerid][0], 1);
  303. PlayerTextDrawSetShadow(playerid, PhoneFrame[playerid][0], 0);
  304.  
  305. PhoneFrame[playerid][1] = CreatePlayerTextDraw(playerid, 471.149597, 337.583282, "LD_DRV:TVCORN");
  306. PlayerTextDrawLetterSize(playerid, PhoneFrame[playerid][1], 0.000000, 0.000000);
  307. PlayerTextDrawTextSize(playerid, PhoneFrame[playerid][1], 45.000000, 111.000000);
  308. PlayerTextDrawAlignment(playerid, PhoneFrame[playerid][1], 1);
  309. PlayerTextDrawColor(playerid, PhoneFrame[playerid][1], -1);
  310. PlayerTextDrawSetShadow(playerid, PhoneFrame[playerid][1], 0);
  311. PlayerTextDrawSetOutline(playerid, PhoneFrame[playerid][1], 0);
  312. PlayerTextDrawBackgroundColor(playerid, PhoneFrame[playerid][1], 255);
  313. PlayerTextDrawFont(playerid, PhoneFrame[playerid][1], 4);
  314. PlayerTextDrawSetProportional(playerid, PhoneFrame[playerid][1], 0);
  315. PlayerTextDrawSetShadow(playerid, PhoneFrame[playerid][1], 0);
  316.  
  317. PhoneFrame[playerid][2] = CreatePlayerTextDraw(playerid, 562.979858, 337.583221, "LD_DRV:TVCORN");
  318. PlayerTextDrawLetterSize(playerid, PhoneFrame[playerid][2], 0.000000, 0.000000);
  319. PlayerTextDrawTextSize(playerid, PhoneFrame[playerid][2], -47.000000, 112.000000);
  320. PlayerTextDrawAlignment(playerid, PhoneFrame[playerid][2], 1);
  321. PlayerTextDrawColor(playerid, PhoneFrame[playerid][2], -1);
  322. PlayerTextDrawSetShadow(playerid, PhoneFrame[playerid][2], 0);
  323. PlayerTextDrawSetOutline(playerid, PhoneFrame[playerid][2], 0);
  324. PlayerTextDrawBackgroundColor(playerid, PhoneFrame[playerid][2], 255);
  325. PlayerTextDrawFont(playerid, PhoneFrame[playerid][2], 4);
  326. PlayerTextDrawSetProportional(playerid, PhoneFrame[playerid][2], 0);
  327. PlayerTextDrawSetShadow(playerid, PhoneFrame[playerid][2], 0);
  328.  
  329. PhoneLogo[playerid] = CreatePlayerTextDraw(playerid, 495.212463, 352.166748, "");
  330. PlayerTextDrawLetterSize(playerid, PhoneLogo[playerid], 0.206500, 0.940833);
  331. PlayerTextDrawAlignment(playerid, PhoneLogo[playerid], 1);
  332. PlayerTextDrawColor(playerid, PhoneLogo[playerid], -1);
  333. PlayerTextDrawSetShadow(playerid, PhoneLogo[playerid], 0);
  334. PlayerTextDrawSetOutline(playerid, PhoneLogo[playerid], 0);
  335. PlayerTextDrawBackgroundColor(playerid, PhoneLogo[playerid], 255);
  336. PlayerTextDrawFont(playerid, PhoneLogo[playerid], 1);
  337. PlayerTextDrawSetProportional(playerid, PhoneLogo[playerid], 1);
  338. PlayerTextDrawSetShadow(playerid, PhoneLogo[playerid], 0);
  339.  
  340. PhoneSwitch[playerid] = CreatePlayerTextDraw(playerid, 546.581420, 347.499877, ""/*"LD_BEAT:circle"*/);
  341. PlayerTextDrawLetterSize(playerid, PhoneSwitch[playerid], 0.000000, 0.000000);
  342. PlayerTextDrawTextSize(playerid, PhoneSwitch[playerid], 12.000000, 13.000000);
  343. PlayerTextDrawAlignment(playerid, PhoneSwitch[playerid], 1);
  344. PlayerTextDrawColor(playerid, PhoneSwitch[playerid], -1);
  345. PlayerTextDrawSetShadow(playerid, PhoneSwitch[playerid], 0);
  346. PlayerTextDrawSetOutline(playerid, PhoneSwitch[playerid], 0);
  347. PlayerTextDrawBackgroundColor(playerid, PhoneSwitch[playerid], 255);
  348. PlayerTextDrawFont(playerid, PhoneSwitch[playerid], 4);
  349. PlayerTextDrawSetProportional(playerid, PhoneSwitch[playerid], 0);
  350. PlayerTextDrawSetShadow(playerid, PhoneSwitch[playerid], 0);
  351. PlayerTextDrawSetSelectable(playerid, PhoneSwitch[playerid], true);
  352.  
  353. PhoneInfo[playerid] = CreatePlayerTextDraw(playerid, 547.518432, 349.249816, ""/*"LD_BEAT:chit"*/);
  354. PlayerTextDrawLetterSize(playerid, PhoneInfo[playerid], 0.000000, 0.000000);
  355. PlayerTextDrawTextSize(playerid, PhoneInfo[playerid], -6.000000, 6.000000);
  356. PlayerTextDrawAlignment(playerid, PhoneInfo[playerid], 1);
  357. PlayerTextDrawColor(playerid, PhoneInfo[playerid], -1);
  358. PlayerTextDrawSetShadow(playerid, PhoneInfo[playerid], 0);
  359. PlayerTextDrawSetOutline(playerid, PhoneInfo[playerid], 0);
  360. PlayerTextDrawBackgroundColor(playerid, PhoneInfo[playerid], 255);
  361. PlayerTextDrawFont(playerid, PhoneInfo[playerid], 4);
  362. PlayerTextDrawSetProportional(playerid, PhoneInfo[playerid], 0);
  363. PlayerTextDrawSetShadow(playerid, PhoneInfo[playerid], 0);
  364.  
  365. PhoneDisplay[playerid] = CreatePlayerTextDraw(playerid, 483.031005, 367.916717, "box");
  366. PlayerTextDrawLetterSize(playerid, PhoneDisplay[playerid], 0.000000, 4.565154);
  367. PlayerTextDrawTextSize(playerid, PhoneDisplay[playerid], 551.000000, 0.000000);
  368. PlayerTextDrawAlignment(playerid, PhoneDisplay[playerid], 1);
  369. PlayerTextDrawColor(playerid, PhoneDisplay[playerid], -1);
  370. PlayerTextDrawUseBox(playerid, PhoneDisplay[playerid], 1);
  371. PlayerTextDrawBoxColor(playerid, PhoneDisplay[playerid], -572662273);
  372. PlayerTextDrawSetShadow(playerid, PhoneDisplay[playerid], 0);
  373. PlayerTextDrawSetOutline(playerid, PhoneDisplay[playerid], 0);
  374. PlayerTextDrawBackgroundColor(playerid, PhoneDisplay[playerid], 255);
  375. PlayerTextDrawFont(playerid, PhoneDisplay[playerid], 1);
  376. PlayerTextDrawSetProportional(playerid, PhoneDisplay[playerid], 1);
  377. PlayerTextDrawSetShadow(playerid, PhoneDisplay[playerid], 0);
  378.  
  379. /* PhoneBtnL[playerid] = CreatePlayerTextDraw(playerid, 483.030639, 415.166503, "box");
  380. PlayerTextDrawLetterSize(playerid, PhoneBtnL[playerid], 0.000000, 0.535869);
  381. PlayerTextDrawTextSize(playerid, PhoneBtnL[playerid], 499.000000, 0.000000);
  382. PlayerTextDrawAlignment(playerid, PhoneBtnL[playerid], 1);
  383. PlayerTextDrawColor(playerid, PhoneBtnL[playerid], -1);
  384. PlayerTextDrawUseBox(playerid, PhoneBtnL[playerid], 1);
  385. PlayerTextDrawBoxColor(playerid, PhoneBtnL[playerid], -1717986817);
  386. PlayerTextDrawSetShadow(playerid, PhoneBtnL[playerid], 0);
  387. PlayerTextDrawSetOutline(playerid, PhoneBtnL[playerid], 0);
  388. PlayerTextDrawBackgroundColor(playerid, PhoneBtnL[playerid], 255);
  389. PlayerTextDrawFont(playerid, PhoneBtnL[playerid], 1);
  390. PlayerTextDrawSetProportional(playerid, PhoneBtnL[playerid], 1);
  391. PlayerTextDrawSetShadow(playerid, PhoneBtnL[playerid], 0);
  392. PlayerTextDrawSetSelectable(playerid, PhoneBtnL[playerid], true);
  393.  
  394. PhoneBtnR[playerid] = CreatePlayerTextDraw(playerid, 555.182739, 415.166503, "box");
  395. PlayerTextDrawLetterSize(playerid, PhoneBtnR[playerid], 0.000000, 0.442165);
  396. PlayerTextDrawTextSize(playerid, PhoneBtnR[playerid], 531.000000, 0.000000);
  397. PlayerTextDrawAlignment(playerid, PhoneBtnR[playerid], 1);
  398. PlayerTextDrawColor(playerid, PhoneBtnR[playerid], -1);
  399. PlayerTextDrawUseBox(playerid, PhoneBtnR[playerid], 1);
  400. PlayerTextDrawBoxColor(playerid, PhoneBtnR[playerid], -1717986817);
  401. PlayerTextDrawSetShadow(playerid, PhoneBtnR[playerid], 0);
  402. PlayerTextDrawSetOutline(playerid, PhoneBtnR[playerid], 0);
  403. PlayerTextDrawBackgroundColor(playerid, PhoneBtnR[playerid], 255);
  404. PlayerTextDrawFont(playerid, PhoneBtnR[playerid], 1);
  405. PlayerTextDrawSetProportional(playerid, PhoneBtnR[playerid], 1);
  406. PlayerTextDrawSetShadow(playerid, PhoneBtnR[playerid], 0);
  407. PlayerTextDrawSetSelectable(playerid, PhoneBtnR[playerid], true);
  408. */
  409.  
  410. PhoneBtnL[playerid] = CreatePlayerTextDraw(playerid, 480.988555, 412.833404, "");
  411. PlayerTextDrawLetterSize(playerid, PhoneBtnL[playerid], 0.000000, 0.000000);
  412. PlayerTextDrawTextSize(playerid, PhoneBtnL[playerid], 19.000000, 10.000000);
  413. PlayerTextDrawAlignment(playerid, PhoneBtnL[playerid], 1);
  414. PlayerTextDrawColor(playerid, PhoneBtnL[playerid], -1717986817);
  415. PlayerTextDrawSetShadow(playerid, PhoneBtnL[playerid], 0);
  416. PlayerTextDrawSetOutline(playerid, PhoneBtnL[playerid], 0);
  417. PlayerTextDrawBackgroundColor(playerid, PhoneBtnL[playerid], -1717986817);
  418. PlayerTextDrawFont(playerid, PhoneBtnL[playerid], 5);
  419. PlayerTextDrawSetProportional(playerid, PhoneBtnL[playerid], 0);
  420. PlayerTextDrawSetShadow(playerid, PhoneBtnL[playerid], 0);
  421. PlayerTextDrawSetSelectable(playerid, PhoneBtnL[playerid], true);
  422. PlayerTextDrawSetPreviewModel(playerid, PhoneBtnL[playerid], 0);
  423. PlayerTextDrawSetPreviewRot(playerid, PhoneBtnL[playerid], 0.000000, 0.000000, 0.000000, -1.000000);
  424.  
  425. PhoneBtnR[playerid] = CreatePlayerTextDraw(playerid, 533.932189, 412.833404, "");
  426. PlayerTextDrawLetterSize(playerid, PhoneBtnR[playerid], 0.000000, 0.000000);
  427. PlayerTextDrawTextSize(playerid, PhoneBtnR[playerid], 19.000000, 10.000000);
  428. PlayerTextDrawAlignment(playerid, PhoneBtnR[playerid], 1);
  429. PlayerTextDrawColor(playerid, PhoneBtnR[playerid], -1717986817);
  430. PlayerTextDrawSetShadow(playerid, PhoneBtnR[playerid], 0);
  431. PlayerTextDrawSetOutline(playerid, PhoneBtnR[playerid], 0);
  432. PlayerTextDrawBackgroundColor(playerid, PhoneBtnR[playerid], -1717986817);
  433. PlayerTextDrawFont(playerid, PhoneBtnR[playerid], 5);
  434. PlayerTextDrawSetProportional(playerid, PhoneBtnR[playerid], 0);
  435. PlayerTextDrawSetShadow(playerid, PhoneBtnR[playerid], 0);
  436. PlayerTextDrawSetSelectable(playerid, PhoneBtnR[playerid], true);
  437. PlayerTextDrawSetPreviewModel(playerid, PhoneBtnR[playerid], 0);
  438. PlayerTextDrawSetPreviewRot(playerid, PhoneBtnR[playerid], 0.000000, 0.000000, 0.000000, -1.000000);
  439.  
  440. PhoneArrowUp[playerid] = CreatePlayerTextDraw(playerid, 511.442016, 444.916625, ""/*"LD_BEAT:UP"*/);
  441. PlayerTextDrawLetterSize(playerid, PhoneArrowUp[playerid], 0.000000, 0.000000);
  442. PlayerTextDrawTextSize(playerid, PhoneArrowUp[playerid], 12.000000, -13.000000);
  443. PlayerTextDrawAlignment(playerid, PhoneArrowUp[playerid], 1);
  444. PlayerTextDrawColor(playerid, PhoneArrowUp[playerid], -1);
  445. PlayerTextDrawSetShadow(playerid, PhoneArrowUp[playerid], 0);
  446. PlayerTextDrawSetOutline(playerid, PhoneArrowUp[playerid], 0);
  447. PlayerTextDrawBackgroundColor(playerid, PhoneArrowUp[playerid], 255);
  448. PlayerTextDrawFont(playerid, PhoneArrowUp[playerid], 4);
  449. PlayerTextDrawSetProportional(playerid, PhoneArrowUp[playerid], 0);
  450. PlayerTextDrawSetShadow(playerid, PhoneArrowUp[playerid], 0);
  451. PlayerTextDrawSetSelectable(playerid, PhoneArrowUp[playerid], true);
  452.  
  453. PhoneArrowDown[playerid] = CreatePlayerTextDraw(playerid, 511.442016, 426.833068, ""/*"LD_BEAT:DOWN"*/);
  454. PlayerTextDrawLetterSize(playerid, PhoneArrowDown[playerid], 0.000000, 0.000000);
  455. PlayerTextDrawTextSize(playerid, PhoneArrowDown[playerid], 12.000000, -13.000000);
  456. PlayerTextDrawAlignment(playerid, PhoneArrowDown[playerid], 1);
  457. PlayerTextDrawColor(playerid, PhoneArrowDown[playerid], -1);
  458. PlayerTextDrawSetShadow(playerid, PhoneArrowDown[playerid], 0);
  459. PlayerTextDrawSetOutline(playerid, PhoneArrowDown[playerid], 0);
  460. PlayerTextDrawBackgroundColor(playerid, PhoneArrowDown[playerid], 255);
  461. PlayerTextDrawFont(playerid, PhoneArrowDown[playerid], 4);
  462. PlayerTextDrawSetProportional(playerid, PhoneArrowDown[playerid], 0);
  463. PlayerTextDrawSetShadow(playerid, PhoneArrowDown[playerid], 0);
  464. PlayerTextDrawSetSelectable(playerid, PhoneArrowDown[playerid], true);
  465.  
  466. PhoneArrowLeft[playerid] = CreatePlayerTextDraw(playerid, 501.603393, 434.999847, ""/*"LD_BEAT:LEFT"*/);
  467. PlayerTextDrawLetterSize(playerid, PhoneArrowLeft[playerid], 0.000000, 0.000000);
  468. PlayerTextDrawTextSize(playerid, PhoneArrowLeft[playerid], 12.000000, -13.000000);
  469. PlayerTextDrawAlignment(playerid, PhoneArrowLeft[playerid], 1);
  470. PlayerTextDrawColor(playerid, PhoneArrowLeft[playerid], -1);
  471. PlayerTextDrawSetShadow(playerid, PhoneArrowLeft[playerid], 0);
  472. PlayerTextDrawSetOutline(playerid, PhoneArrowLeft[playerid], 0);
  473. PlayerTextDrawBackgroundColor(playerid, PhoneArrowLeft[playerid], 255);
  474. PlayerTextDrawFont(playerid, PhoneArrowLeft[playerid], 4);
  475. PlayerTextDrawSetProportional(playerid, PhoneArrowLeft[playerid], 0);
  476. PlayerTextDrawSetShadow(playerid, PhoneArrowLeft[playerid], 0);
  477. PlayerTextDrawSetSelectable(playerid, PhoneArrowLeft[playerid], true);
  478.  
  479. PhoneArrowRight[playerid] = CreatePlayerTextDraw(playerid, 520.812255, 435.583221, ""/*"LD_BEAT:RIGHT"*/);
  480. PlayerTextDrawLetterSize(playerid, PhoneArrowRight[playerid], 0.000000, 0.000000);
  481. PlayerTextDrawTextSize(playerid, PhoneArrowRight[playerid], 12.000000, -13.000000);
  482. PlayerTextDrawAlignment(playerid, PhoneArrowRight[playerid], 1);
  483. PlayerTextDrawColor(playerid, PhoneArrowRight[playerid], -1);
  484. PlayerTextDrawSetShadow(playerid, PhoneArrowRight[playerid], 0);
  485. PlayerTextDrawSetOutline(playerid, PhoneArrowRight[playerid], 0);
  486. PlayerTextDrawBackgroundColor(playerid, PhoneArrowRight[playerid], 255);
  487. PlayerTextDrawFont(playerid, PhoneArrowRight[playerid], 4);
  488. PlayerTextDrawSetProportional(playerid, PhoneArrowRight[playerid], 0);
  489. PlayerTextDrawSetShadow(playerid, PhoneArrowRight[playerid], 0);
  490. PlayerTextDrawSetSelectable(playerid, PhoneArrowRight[playerid], true);
  491.  
  492. PhoneBtnMenu[playerid] = CreatePlayerTextDraw(playerid, 490.995941, 399.416625, "Menu");
  493. PlayerTextDrawLetterSize(playerid, PhoneBtnMenu[playerid], 0.156368, 0.929166);
  494. //PlayerTextDrawTextSize(playerid, PhoneBtnMenu[playerid], 15.000000, 21.000000);
  495. PlayerTextDrawAlignment(playerid, PhoneBtnMenu[playerid], 2);
  496. PlayerTextDrawColor(playerid, PhoneBtnMenu[playerid], 255);
  497. //PlayerTextDrawUseBox(playerid, PhoneBtnMenu[playerid], 1);
  498. PlayerTextDrawBoxColor(playerid, PhoneBtnMenu[playerid], 0);
  499. PlayerTextDrawSetShadow(playerid, PhoneBtnMenu[playerid], 0);
  500. PlayerTextDrawSetOutline(playerid, PhoneBtnMenu[playerid], 0);
  501. PlayerTextDrawBackgroundColor(playerid, PhoneBtnMenu[playerid], 255);
  502. PlayerTextDrawFont(playerid, PhoneBtnMenu[playerid], 1);
  503. PlayerTextDrawSetProportional(playerid, PhoneBtnMenu[playerid], 1);
  504. PlayerTextDrawSetShadow(playerid, PhoneBtnMenu[playerid], 0);
  505. //PlayerTextDrawSetSelectable(playerid, PhoneBtnMenu[playerid], true);
  506.  
  507. PhoneBtnBack[playerid] = CreatePlayerTextDraw(playerid, 543.470092, 399.416625, "Back");
  508. PlayerTextDrawLetterSize(playerid, PhoneBtnBack[playerid], 0.156368, 0.929166);
  509. //PlayerTextDrawTextSize(playerid, PhoneBtnBack[playerid], 0.000000, -21.000000);
  510. PlayerTextDrawAlignment(playerid, PhoneBtnBack[playerid], 2);
  511. PlayerTextDrawColor(playerid, PhoneBtnBack[playerid], 255);
  512. //PlayerTextDrawUseBox(playerid, PhoneBtnBack[playerid], 1);
  513. PlayerTextDrawBoxColor(playerid, PhoneBtnBack[playerid], 0);
  514. PlayerTextDrawSetShadow(playerid, PhoneBtnBack[playerid], 0);
  515. PlayerTextDrawSetOutline(playerid, PhoneBtnBack[playerid], 0);
  516. PlayerTextDrawBackgroundColor(playerid, PhoneBtnBack[playerid], 255);
  517. PlayerTextDrawFont(playerid, PhoneBtnBack[playerid], 1);
  518. PlayerTextDrawSetProportional(playerid, PhoneBtnBack[playerid], 1);
  519. PlayerTextDrawSetShadow(playerid, PhoneBtnBack[playerid], 0);
  520. //PlayerTextDrawSetSelectable(playerid, PhoneBtnBack[playerid], true);
  521.  
  522. PhoneTime[playerid] = CreatePlayerTextDraw(playerid, 503.177520, 374.333282, "17:00");
  523. PlayerTextDrawLetterSize(playerid, PhoneTime[playerid], 0.295519, 1.127499);
  524. PlayerTextDrawAlignment(playerid, PhoneTime[playerid], 1);
  525. PlayerTextDrawColor(playerid, PhoneTime[playerid], 255);
  526. PlayerTextDrawSetShadow(playerid, PhoneTime[playerid], 0);
  527. PlayerTextDrawSetOutline(playerid, PhoneTime[playerid], 0);
  528. PlayerTextDrawBackgroundColor(playerid, PhoneTime[playerid], 255);
  529. PlayerTextDrawFont(playerid, PhoneTime[playerid], 1);
  530. PlayerTextDrawSetProportional(playerid, PhoneTime[playerid], 1);
  531. PlayerTextDrawSetShadow(playerid, PhoneTime[playerid], 0);
  532.  
  533. PhoneDate[playerid] = CreatePlayerTextDraw(playerid, 517.701782, 384.249908, "November_1");
  534. PlayerTextDrawLetterSize(playerid, PhoneDate[playerid], 0.182137, 0.934999);
  535. PlayerTextDrawAlignment(playerid, PhoneDate[playerid], 2);
  536. PlayerTextDrawColor(playerid, PhoneDate[playerid], 255);
  537. PlayerTextDrawSetShadow(playerid, PhoneDate[playerid], 0);
  538. PlayerTextDrawSetOutline(playerid, PhoneDate[playerid], 0);
  539. PlayerTextDrawBackgroundColor(playerid, PhoneDate[playerid], 255);
  540. PlayerTextDrawFont(playerid, PhoneDate[playerid], 1);
  541. PlayerTextDrawSetProportional(playerid, PhoneDate[playerid], 1);
  542. PlayerTextDrawSetShadow(playerid, PhoneDate[playerid], 0);
  543.  
  544. PhoneSignal[playerid] = CreatePlayerTextDraw(playerid, 483.030761, 366.166687, "IIIIII");
  545. PlayerTextDrawLetterSize(playerid, PhoneSignal[playerid], 0.162927, 0.789166);
  546. PlayerTextDrawAlignment(playerid, PhoneSignal[playerid], 1);
  547. PlayerTextDrawColor(playerid, PhoneSignal[playerid], 255);
  548. PlayerTextDrawSetShadow(playerid, PhoneSignal[playerid], 0);
  549. PlayerTextDrawSetOutline(playerid, PhoneSignal[playerid], 0);
  550. PlayerTextDrawBackgroundColor(playerid, PhoneSignal[playerid], 255);
  551. PlayerTextDrawFont(playerid, PhoneSignal[playerid], 1);
  552. PlayerTextDrawSetProportional(playerid, PhoneSignal[playerid], 1);
  553. PlayerTextDrawSetShadow(playerid, PhoneSignal[playerid], 0);
  554.  
  555. PhonePower[playerid] = CreatePlayerTextDraw(playerid, 544.407287, 366.166625, "100%");
  556. PlayerTextDrawLetterSize(playerid, PhonePower[playerid], 0.162927, 0.789166);
  557. PlayerTextDrawAlignment(playerid, PhonePower[playerid], 2);
  558. PlayerTextDrawColor(playerid, PhonePower[playerid], 255);
  559. PlayerTextDrawSetShadow(playerid, PhonePower[playerid], 0);
  560. PlayerTextDrawSetOutline(playerid, PhonePower[playerid], 0);
  561. PlayerTextDrawBackgroundColor(playerid, PhonePower[playerid], 255);
  562. PlayerTextDrawFont(playerid, PhonePower[playerid], 1);
  563. PlayerTextDrawSetProportional(playerid, PhonePower[playerid], 1);
  564. PlayerTextDrawSetShadow(playerid, PhonePower[playerid], 0);
  565.  
  566. PhoneNotify[playerid] = CreatePlayerTextDraw(playerid, 516.764465, 366.749969, "_");
  567. PlayerTextDrawLetterSize(playerid, PhoneNotify[playerid], 0.136690, 0.742499);
  568. PlayerTextDrawAlignment(playerid, PhoneNotify[playerid], 2);
  569. PlayerTextDrawColor(playerid, PhoneNotify[playerid], -16776961);
  570. PlayerTextDrawSetShadow(playerid, PhoneNotify[playerid], 0);
  571. PlayerTextDrawSetOutline(playerid, PhoneNotify[playerid], 0);
  572. PlayerTextDrawBackgroundColor(playerid, PhoneNotify[playerid], 255);
  573. PlayerTextDrawFont(playerid, PhoneNotify[playerid], 1);
  574. PlayerTextDrawSetProportional(playerid, PhoneNotify[playerid], 1);
  575. PlayerTextDrawSetShadow(playerid, PhoneNotify[playerid], 0);
  576. //PlayerTextDrawSetSelectable(playerid, PhoneNotify[playerid], true);
  577.  
  578. PhoneListName[playerid] = CreatePlayerTextDraw(playerid, 518.170104, 368.500061, "Notebook~n~Contact~n~Setting");
  579. PlayerTextDrawLetterSize(playerid, PhoneListName[playerid], 0.176983, 1.465832);
  580. PlayerTextDrawAlignment(playerid, PhoneListName[playerid], 2);
  581. PlayerTextDrawColor(playerid, PhoneListName[playerid], 255);
  582. PlayerTextDrawSetShadow(playerid, PhoneListName[playerid], 0);
  583. PlayerTextDrawSetOutline(playerid, PhoneListName[playerid], 0);
  584. PlayerTextDrawBackgroundColor(playerid, PhoneListName[playerid], 255);
  585. PlayerTextDrawFont(playerid, PhoneListName[playerid], 2);
  586. PlayerTextDrawSetProportional(playerid, PhoneListName[playerid], 1);
  587. PlayerTextDrawSetShadow(playerid, PhoneListName[playerid], 0);
  588.  
  589. PhoneList[playerid][0] = CreatePlayerTextDraw(playerid, 483.799438, 369.666717, "");
  590. PlayerTextDrawLetterSize(playerid, PhoneList[playerid][0], 0.000000, 0.000000);
  591. PlayerTextDrawTextSize(playerid, PhoneList[playerid][0], 66.000000, 12.000000);
  592. PlayerTextDrawAlignment(playerid, PhoneList[playerid][0], 1);
  593. PlayerTextDrawColor(playerid, PhoneList[playerid][0], -2139062017);
  594. PlayerTextDrawSetShadow(playerid, PhoneList[playerid][0], 0);
  595. PlayerTextDrawSetOutline(playerid, PhoneList[playerid][0], 0);
  596. PlayerTextDrawBackgroundColor(playerid, PhoneList[playerid][0], -1717986817);
  597. PlayerTextDrawFont(playerid, PhoneList[playerid][0], 5);
  598. PlayerTextDrawSetProportional(playerid, PhoneList[playerid][0], 0);
  599. PlayerTextDrawSetShadow(playerid, PhoneList[playerid][0], 0);
  600. PlayerTextDrawSetSelectable(playerid, PhoneList[playerid][0], true);
  601. PlayerTextDrawSetPreviewModel(playerid, PhoneList[playerid][0], 0);
  602. PlayerTextDrawSetPreviewRot(playerid, PhoneList[playerid][0], 0.000000, 0.000000, 0.000000, -2.000000);
  603.  
  604. PhoneList[playerid][1] = CreatePlayerTextDraw(playerid, 483.799407, 383.083465, "");
  605. PlayerTextDrawLetterSize(playerid, PhoneList[playerid][1], 0.000000, 0.000000);
  606. PlayerTextDrawTextSize(playerid, PhoneList[playerid][1], 66.000000, 12.000000);
  607. PlayerTextDrawAlignment(playerid, PhoneList[playerid][1], 1);
  608. PlayerTextDrawColor(playerid, PhoneList[playerid][1], -2139062017);
  609. PlayerTextDrawSetShadow(playerid, PhoneList[playerid][1], 0);
  610. PlayerTextDrawSetOutline(playerid, PhoneList[playerid][1], 0);
  611. PlayerTextDrawBackgroundColor(playerid, PhoneList[playerid][1], -1717986817);
  612. PlayerTextDrawFont(playerid, PhoneList[playerid][1], 5);
  613. PlayerTextDrawSetProportional(playerid, PhoneList[playerid][1], 0);
  614. PlayerTextDrawSetShadow(playerid, PhoneList[playerid][1], 0);
  615. PlayerTextDrawSetSelectable(playerid, PhoneList[playerid][1], true);
  616. PlayerTextDrawSetPreviewModel(playerid, PhoneList[playerid][1], 0);
  617. PlayerTextDrawSetPreviewRot(playerid, PhoneList[playerid][1], 0.000000, 0.000000, 0.000000, -2.000000);
  618.  
  619. PhoneList[playerid][2] = CreatePlayerTextDraw(playerid, 484.267944, 396.500244, "");
  620. PlayerTextDrawLetterSize(playerid, PhoneList[playerid][2], 0.000000, 0.000000);
  621. PlayerTextDrawTextSize(playerid, PhoneList[playerid][2], 66.000000, 12.000000);
  622. PlayerTextDrawAlignment(playerid, PhoneList[playerid][2], 1);
  623. PlayerTextDrawColor(playerid, PhoneList[playerid][2], -2139062017);
  624. PlayerTextDrawSetShadow(playerid, PhoneList[playerid][2], 0);
  625. PlayerTextDrawSetOutline(playerid, PhoneList[playerid][2], 0);
  626. PlayerTextDrawBackgroundColor(playerid, PhoneList[playerid][2], -1717986817);
  627. PlayerTextDrawFont(playerid, PhoneList[playerid][2], 5);
  628. PlayerTextDrawSetProportional(playerid, PhoneList[playerid][2], 0);
  629. PlayerTextDrawSetShadow(playerid, PhoneList[playerid][2], 0);
  630. PlayerTextDrawSetSelectable(playerid, PhoneList[playerid][2], true);
  631. PlayerTextDrawSetPreviewModel(playerid, PhoneList[playerid][2], 0);
  632. PlayerTextDrawSetPreviewRot(playerid, PhoneList[playerid][2], 0.000000, 0.000000, 0.000000, -2.000000);
  633.  
  634. NumberLetters[playerid][0] = CreatePlayerTextDraw(playerid, 504.114227, 285.083312, "1___2___3");
  635. PlayerTextDrawLetterSize(playerid, NumberLetters[playerid][0], 0.410776, 1.862500);
  636. PlayerTextDrawAlignment(playerid, NumberLetters[playerid][0], 1);
  637. PlayerTextDrawColor(playerid, NumberLetters[playerid][0], -1);
  638. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][0], 0);
  639. PlayerTextDrawSetOutline(playerid, NumberLetters[playerid][0], 0);
  640. PlayerTextDrawBackgroundColor(playerid, NumberLetters[playerid][0], 255);
  641. PlayerTextDrawFont(playerid, NumberLetters[playerid][0], 1);
  642. PlayerTextDrawSetProportional(playerid, NumberLetters[playerid][0], 1);
  643. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][0], 0);
  644.  
  645. NumberLetters[playerid][1] = CreatePlayerTextDraw(playerid, 503.177154, 313.666625, "4___5___6");
  646. PlayerTextDrawLetterSize(playerid, NumberLetters[playerid][1], 0.410776, 1.862500);
  647. PlayerTextDrawAlignment(playerid, NumberLetters[playerid][1], 1);
  648. PlayerTextDrawColor(playerid, NumberLetters[playerid][1], -1);
  649. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][1], 0);
  650. PlayerTextDrawSetOutline(playerid, NumberLetters[playerid][1], 0);
  651. PlayerTextDrawBackgroundColor(playerid, NumberLetters[playerid][1], 255);
  652. PlayerTextDrawFont(playerid, NumberLetters[playerid][1], 1);
  653. PlayerTextDrawSetProportional(playerid, NumberLetters[playerid][1], 1);
  654. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][1], 0);
  655.  
  656. NumberLetters[playerid][2] = CreatePlayerTextDraw(playerid, 503.177124, 341.083312, "7___8___9");
  657. PlayerTextDrawLetterSize(playerid, NumberLetters[playerid][2], 0.410776, 1.862500);
  658. PlayerTextDrawAlignment(playerid, NumberLetters[playerid][2], 1);
  659. PlayerTextDrawColor(playerid, NumberLetters[playerid][2], -1);
  660. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][2], 0);
  661. PlayerTextDrawSetOutline(playerid, NumberLetters[playerid][2], 0);
  662. PlayerTextDrawBackgroundColor(playerid, NumberLetters[playerid][2], 255);
  663. PlayerTextDrawFont(playerid, NumberLetters[playerid][2], 1);
  664. PlayerTextDrawSetProportional(playerid, NumberLetters[playerid][2], 1);
  665. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][2], 0);
  666.  
  667. NumberLetters[playerid][3] = CreatePlayerTextDraw(playerid, 504.114288, 369.083435, "0");
  668. PlayerTextDrawLetterSize(playerid, NumberLetters[playerid][3], 0.400000, 1.600000);
  669. PlayerTextDrawAlignment(playerid, NumberLetters[playerid][3], 1);
  670. PlayerTextDrawColor(playerid, NumberLetters[playerid][3], -1);
  671. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][3], 0);
  672. PlayerTextDrawSetOutline(playerid, NumberLetters[playerid][3], 0);
  673. PlayerTextDrawBackgroundColor(playerid, NumberLetters[playerid][3], 255);
  674. PlayerTextDrawFont(playerid, NumberLetters[playerid][3], 1);
  675. PlayerTextDrawSetProportional(playerid, NumberLetters[playerid][3], 1);
  676. PlayerTextDrawSetShadow(playerid, NumberLetters[playerid][3], 0);
  677. return 1;
  678. }
  679.  
  680. public OnPlayerDisconnect(playerid, reason)
  681. {
  682. return 1;
  683. }
  684.  
  685. public OnPlayerSpawn(playerid)
  686. {
  687. return 1;
  688. }
  689.  
  690. public OnPlayerDeath(playerid, killerid, reason)
  691. {
  692. return 1;
  693. }
  694.  
  695. public OnVehicleSpawn(vehicleid)
  696. {
  697. return 1;
  698. }
  699.  
  700. public OnVehicleDeath(vehicleid, killerid)
  701. {
  702. return 1;
  703. }
  704.  
  705. public OnPlayerText(playerid, text[])
  706. {
  707. return 1;
  708. }
  709.  
  710. public OnPlayerCommandText(playerid, cmdtext[])
  711. {
  712. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  713. {
  714. // Do something here
  715. return 1;
  716. }
  717. return 0;
  718. }
  719.  
  720. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  721. {
  722. return 1;
  723. }
  724.  
  725. public OnPlayerExitVehicle(playerid, vehicleid)
  726. {
  727. return 1;
  728. }
  729.  
  730. public OnPlayerStateChange(playerid, newstate, oldstate)
  731. {
  732. return 1;
  733. }
  734.  
  735. public OnPlayerEnterCheckpoint(playerid)
  736. {
  737. return 1;
  738. }
  739.  
  740. public OnPlayerLeaveCheckpoint(playerid)
  741. {
  742. return 1;
  743. }
  744.  
  745. public OnPlayerEnterRaceCheckpoint(playerid)
  746. {
  747. return 1;
  748. }
  749.  
  750. public OnPlayerLeaveRaceCheckpoint(playerid)
  751. {
  752. return 1;
  753. }
  754.  
  755. public OnRconCommand(cmd[])
  756. {
  757. return 1;
  758. }
  759.  
  760. public OnPlayerRequestSpawn(playerid)
  761. {
  762. return 1;
  763. }
  764.  
  765. public OnObjectMoved(objectid)
  766. {
  767. return 1;
  768. }
  769.  
  770. public OnPlayerObjectMoved(playerid, objectid)
  771. {
  772. return 1;
  773. }
  774.  
  775. public OnPlayerPickUpPickup(playerid, pickupid)
  776. {
  777. return 1;
  778. }
  779.  
  780. public OnVehicleMod(playerid, vehicleid, componentid)
  781. {
  782. return 1;
  783. }
  784.  
  785. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  786. {
  787. return 1;
  788. }
  789.  
  790. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  791. {
  792. return 1;
  793. }
  794.  
  795. public OnPlayerSelectedMenuRow(playerid, row)
  796. {
  797. return 1;
  798. }
  799.  
  800. public OnPlayerExitedMenu(playerid)
  801. {
  802. return 1;
  803. }
  804.  
  805. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  806. {
  807. return 1;
  808. }
  809.  
  810. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  811. {
  812. return 1;
  813. }
  814.  
  815. public OnRconLoginAttempt(ip[], password[], success)
  816. {
  817. return 1;
  818. }
  819.  
  820. public OnPlayerUpdate(playerid)
  821. {
  822. return 1;
  823. }
  824.  
  825. public OnPlayerStreamIn(playerid, forplayerid)
  826. {
  827. return 1;
  828. }
  829.  
  830. public OnPlayerStreamOut(playerid, forplayerid)
  831. {
  832. return 1;
  833. }
  834.  
  835. public OnVehicleStreamIn(vehicleid, forplayerid)
  836. {
  837. return 1;
  838. }
  839.  
  840. public OnVehicleStreamOut(vehicleid, forplayerid)
  841. {
  842. return 1;
  843. }
  844.  
  845. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  846. {
  847. return 1;
  848. }
  849.  
  850. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  851. {
  852. return 1;
  853. }
Advertisement
Add Comment
Please, Sign In to add comment