Advertisement
RickSaFilho

Sistema de Playlist

Oct 24th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 53.77 KB | None | 0 0
  1. #include a_samp
  2. #include DOF2
  3. #include zcmd
  4.  
  5. new StringPlay[256];
  6. new Paginas[MAX_PLAYERS];
  7. new PlayerText:Textdraw0[MAX_PLAYERS];
  8. new PlayerText:Textdraw1[MAX_PLAYERS];
  9. new PlayerText:Textdraw2[MAX_PLAYERS];
  10. new PlayerText:Textdraw3[MAX_PLAYERS];
  11. new PlayerText:Textdraw4[MAX_PLAYERS];
  12. new PlayerText:Textdraw5[MAX_PLAYERS];
  13. new PlayerText:Textdraw6[MAX_PLAYERS];
  14. new PlayerText:Textdraw7[MAX_PLAYERS];
  15. new PlayerText:Textdraw8[MAX_PLAYERS];
  16. new PlayerText:Textdraw9[MAX_PLAYERS];
  17. new PlayerText:Textdraw10[MAX_PLAYERS];
  18. new PlayerText:Textdraw11[MAX_PLAYERS];
  19. new PlayerText:Textdraw12[MAX_PLAYERS];
  20. new PlayerText:Textdraw13[MAX_PLAYERS];
  21. new PlayerText:Textdraw14[MAX_PLAYERS];
  22. new PlayerText:Textdraw15[MAX_PLAYERS];
  23. new PlayerText:Textdraw16[MAX_PLAYERS];
  24. new PlayerText:Textdraw17[MAX_PLAYERS];
  25. new PlayerText:Textdraw18[MAX_PLAYERS];
  26. new PlayerText:Textdraw19[MAX_PLAYERS];
  27. new PlayerText:Textdraw20[MAX_PLAYERS];
  28.  
  29. #define DIALOG_EDIT1 4004
  30. #define DIALOG_EDIT2 4005
  31. #define DIALOG_EDIT3 4006
  32. #define DIALOG_EDIT4 4007
  33. #define DIALOG_EDIT5 4008
  34. #define DIALOG_EDIT6 4009
  35. #define DIALOG_EDIT7 4010
  36. #define DIALOG_EDIT8 4011
  37.  
  38. #define DIALOG_LINK1 5005
  39. #define DIALOG_LINK2 5006
  40. #define DIALOG_LINK3 5007
  41. #define DIALOG_LINK4 5008
  42. #define DIALOG_LINK5 5009
  43. #define DIALOG_LINK6 5010
  44. #define DIALOG_LINK7 5011
  45. #define DIALOG_LINK8 5012
  46.  
  47. #define DIALOG_NOME1 6001
  48. #define DIALOG_NOME2 6002
  49. #define DIALOG_NOME3 6003
  50. #define DIALOG_NOME4 6004
  51. #define DIALOG_NOME5 6005
  52. #define DIALOG_NOME6 6006
  53. #define DIALOG_NOME7 6007
  54. #define DIALOG_NOME8 6008
  55.  
  56. public OnGameModeInit()
  57. {
  58.     return 1;
  59. }
  60.  
  61. public OnPlayerSpawn(playerid)
  62. {
  63.     StopAudioStreamForPlayer(playerid);
  64.     SetTimerEx("AtualizarPlay", 3000, true, "i", playerid );
  65.     return 1;
  66. }
  67.  
  68. public OnPlayerConnect(playerid)
  69. {
  70.     Paginas[playerid] = 0;
  71.     if(!DOF2_FileExists(PlaylistCriada(playerid)))
  72.     {
  73.         DOF2_CreateFile(PlaylistCriada(playerid));
  74.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 1" , "Nenhuma") ;
  75.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 1" , "Musica 1") ;
  76.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 2" , "Nenhuma") ;
  77.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 2" , "Musica 2") ;
  78.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 3" , "Nenhuma") ;
  79.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 3" , "Musica 3") ;
  80.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 4" , "Nenhuma") ;
  81.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 4" , "Musica 4") ;
  82.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 5" , "Nenhuma") ;
  83.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 5" , "Musica 5") ;
  84.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 6" , "Nenhuma") ;
  85.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 6" , "Musica 6") ;
  86.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 7" , "Nenhuma") ;
  87.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 7" , "Musica 7") ;
  88.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 8" , "Nenhuma") ;
  89.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 8" , "Musica 8") ;
  90.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 9" , "Nenhuma") ;
  91.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 9" , "Musica 9") ;
  92.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 10" , "Nenhuma") ;
  93.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 10" , "Musica 10") ;
  94.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 11" , "Nenhuma") ;
  95.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 11" , "Musica 11") ;
  96.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 12" , "Nenhuma") ;
  97.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 12" , "Musica 12") ;
  98.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 13" , "Nenhuma") ;
  99.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 13" , "Musica 13") ;
  100.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 14" , "Nenhuma") ;
  101.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 14" , "Musica 14") ;
  102.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 15" , "Nenhuma") ;
  103.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 15" , "Musica 15") ;
  104.         DOF2_SetString (PlaylistCriada(playerid) , "Musica 16" , "Nenhuma") ;
  105.         DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 16" , "Musica 16") ;
  106.         DOF2_SaveFile();
  107.     }
  108.     else if(DOF2_FileExists(PlaylistCriada(playerid)))
  109.     {
  110.         DOF2_GetString(PlaylistCriada(playerid), "Musica 1");
  111.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 1");
  112.         DOF2_GetString(PlaylistCriada(playerid), "Musica 2");
  113.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 2");
  114.         DOF2_GetString(PlaylistCriada(playerid), "Musica 3");
  115.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 3");
  116.         DOF2_GetString(PlaylistCriada(playerid), "Musica 4");
  117.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 4");
  118.         DOF2_GetString(PlaylistCriada(playerid), "Musica 5");
  119.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 5");
  120.         DOF2_GetString(PlaylistCriada(playerid), "Musica 6");
  121.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 6");
  122.         DOF2_GetString(PlaylistCriada(playerid), "Musica 7");
  123.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 7");
  124.         DOF2_GetString(PlaylistCriada(playerid), "Musica 8");
  125.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 8");
  126.         DOF2_GetString(PlaylistCriada(playerid), "Musica 9");
  127.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 9");
  128.         DOF2_GetString(PlaylistCriada(playerid), "Musica 10");
  129.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 10");
  130.         DOF2_GetString(PlaylistCriada(playerid), "Musica 11");
  131.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 11");
  132.         DOF2_GetString(PlaylistCriada(playerid), "Musica 12");
  133.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 12");
  134.         DOF2_GetString(PlaylistCriada(playerid), "Musica 13");
  135.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 13");
  136.         DOF2_GetString(PlaylistCriada(playerid), "Musica 14");
  137.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 14");
  138.         DOF2_GetString(PlaylistCriada(playerid), "Musica 15");
  139.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 15");
  140.         DOF2_GetString(PlaylistCriada(playerid), "Musica 16");
  141.         DOF2_GetString(PlaylistCriada(playerid), "Descrissao 16");
  142.     }
  143.     Textdraw0[playerid] = CreatePlayerTextDraw(playerid,21.000000, 188.000000, "|");
  144.     PlayerTextDrawBackgroundColor(playerid,Textdraw0[playerid], 255);
  145.     PlayerTextDrawFont(playerid,Textdraw0[playerid], 0);
  146.     PlayerTextDrawLetterSize(playerid,Textdraw0[playerid], 0.000000, 11.600002);
  147.     PlayerTextDrawColor(playerid,Textdraw0[playerid], -1);
  148.     PlayerTextDrawSetOutline(playerid,Textdraw0[playerid], 0);
  149.     PlayerTextDrawSetProportional(playerid,Textdraw0[playerid], 1);
  150.     PlayerTextDrawSetShadow(playerid,Textdraw0[playerid], 1);
  151.     PlayerTextDrawUseBox(playerid,Textdraw0[playerid], 1);
  152.     PlayerTextDrawBoxColor(playerid,Textdraw0[playerid], 909522687);
  153.     PlayerTextDrawTextSize(playerid,Textdraw0[playerid], 138.000000, 102.000000);
  154.     PlayerTextDrawSetSelectable(playerid,Textdraw0[playerid], 0);
  155.  
  156.     Textdraw1[playerid] = CreatePlayerTextDraw(playerid,43.000000, 190.000000, "Musica 1");
  157.     PlayerTextDrawBackgroundColor(playerid,Textdraw1[playerid], 255);
  158.     PlayerTextDrawFont(playerid,Textdraw1[playerid], 1);
  159.     PlayerTextDrawLetterSize(playerid,Textdraw1[playerid], 0.370000, 0.799999);
  160.     PlayerTextDrawColor(playerid,Textdraw1[playerid], -1);
  161.     PlayerTextDrawSetOutline(playerid,Textdraw1[playerid], 1);
  162.     PlayerTextDrawSetProportional(playerid,Textdraw1[playerid], 1);
  163.     PlayerTextDrawTextSize(playerid,Textdraw1[playerid], 156.000000, 10.000000);
  164.     PlayerTextDrawSetSelectable(playerid,Textdraw1[playerid], 1);
  165.  
  166.     Textdraw2[playerid] = CreatePlayerTextDraw(playerid,43.000000, 200.000000, "Musica 2");
  167.     PlayerTextDrawBackgroundColor(playerid,Textdraw2[playerid], 255);
  168.     PlayerTextDrawFont(playerid,Textdraw2[playerid], 1);
  169.     PlayerTextDrawLetterSize(playerid,Textdraw2[playerid], 0.370000, 0.799999);
  170.     PlayerTextDrawColor(playerid,Textdraw2[playerid], -1);
  171.     PlayerTextDrawSetOutline(playerid,Textdraw2[playerid], 1);
  172.     PlayerTextDrawSetProportional(playerid,Textdraw2[playerid], 1);
  173.     PlayerTextDrawTextSize(playerid,Textdraw2[playerid], 156.000000, 10.000000);
  174.     PlayerTextDrawSetSelectable(playerid,Textdraw2[playerid], 1);
  175.  
  176.     Textdraw3[playerid] = CreatePlayerTextDraw(playerid,43.000000, 210.000000, "Musica 3");
  177.     PlayerTextDrawBackgroundColor(playerid,Textdraw3[playerid], 255);
  178.     PlayerTextDrawFont(playerid,Textdraw3[playerid], 1);
  179.     PlayerTextDrawLetterSize(playerid,Textdraw3[playerid], 0.370000, 0.899999);
  180.     PlayerTextDrawColor(playerid,Textdraw3[playerid], -1);
  181.     PlayerTextDrawSetOutline(playerid,Textdraw3[playerid], 1);
  182.     PlayerTextDrawSetProportional(playerid,Textdraw3[playerid], 1);
  183.     PlayerTextDrawTextSize(playerid,Textdraw3[playerid], 156.000000, 10.000000);
  184.     PlayerTextDrawSetSelectable(playerid,Textdraw3[playerid], 1);
  185.  
  186.     Textdraw4[playerid] = CreatePlayerTextDraw(playerid,43.000000, 221.000000, "Musica 4");
  187.     PlayerTextDrawBackgroundColor(playerid,Textdraw4[playerid], 255);
  188.     PlayerTextDrawFont(playerid,Textdraw4[playerid], 1);
  189.     PlayerTextDrawLetterSize(playerid,Textdraw4[playerid], 0.370000, 0.799999);
  190.     PlayerTextDrawColor(playerid,Textdraw4[playerid], -1);
  191.     PlayerTextDrawSetOutline(playerid,Textdraw4[playerid], 1);
  192.     PlayerTextDrawSetProportional(playerid,Textdraw4[playerid], 1);
  193.     PlayerTextDrawTextSize(playerid,Textdraw4[playerid], 156.000000, 10.000000);
  194.     PlayerTextDrawSetSelectable(playerid,Textdraw4[playerid], 1);
  195.  
  196.     Textdraw5[playerid] = CreatePlayerTextDraw(playerid,43.000000, 231.000000, "Musica 5");
  197.     PlayerTextDrawBackgroundColor(playerid,Textdraw5[playerid], 255);
  198.     PlayerTextDrawFont(playerid,Textdraw5[playerid], 1);
  199.     PlayerTextDrawLetterSize(playerid,Textdraw5[playerid], 0.370000, 0.799999);
  200.     PlayerTextDrawColor(playerid,Textdraw5[playerid], -1);
  201.     PlayerTextDrawSetOutline(playerid,Textdraw5[playerid], 1);
  202.     PlayerTextDrawSetProportional(playerid,Textdraw5[playerid], 1);
  203.     PlayerTextDrawTextSize(playerid,Textdraw5[playerid], 156.000000, 10.000000);
  204.     PlayerTextDrawSetSelectable(playerid,Textdraw5[playerid], 1);
  205.  
  206.     Textdraw6[playerid] = CreatePlayerTextDraw(playerid,43.000000, 241.000000, "Musica 6");
  207.     PlayerTextDrawBackgroundColor(playerid,Textdraw6[playerid], 255);
  208.     PlayerTextDrawFont(playerid,Textdraw6[playerid], 1);
  209.     PlayerTextDrawLetterSize(playerid,Textdraw6[playerid], 0.370000, 0.799999);
  210.     PlayerTextDrawColor(playerid,Textdraw6[playerid], -1);
  211.     PlayerTextDrawSetOutline(playerid,Textdraw6[playerid], 1);
  212.     PlayerTextDrawSetProportional(playerid,Textdraw6[playerid], 1);
  213.     PlayerTextDrawTextSize(playerid,Textdraw6[playerid], 156.000000, 10.000000);
  214.     PlayerTextDrawSetSelectable(playerid,Textdraw6[playerid], 1);
  215.  
  216.     Textdraw7[playerid] = CreatePlayerTextDraw(playerid,43.000000, 251.000000, "Musica 7");
  217.     PlayerTextDrawBackgroundColor(playerid,Textdraw7[playerid], 255);
  218.     PlayerTextDrawFont(playerid,Textdraw7[playerid], 1);
  219.     PlayerTextDrawLetterSize(playerid,Textdraw7[playerid], 0.370000, 0.799999);
  220.     PlayerTextDrawColor(playerid,Textdraw7[playerid], -1);
  221.     PlayerTextDrawSetOutline(playerid,Textdraw7[playerid], 1);
  222.     PlayerTextDrawSetProportional(playerid,Textdraw7[playerid], 1);
  223.     PlayerTextDrawTextSize(playerid,Textdraw7[playerid], 156.000000, 10.000000);
  224.     PlayerTextDrawSetSelectable(playerid,Textdraw7[playerid], 1);
  225.  
  226.     Textdraw8[playerid] = CreatePlayerTextDraw(playerid,43.000000, 261.000000, "Musica 8");
  227.     PlayerTextDrawBackgroundColor(playerid,Textdraw8[playerid], 255);
  228.     PlayerTextDrawFont(playerid,Textdraw8[playerid], 1);
  229.     PlayerTextDrawLetterSize(playerid,Textdraw8[playerid], 0.370000, 0.799999);
  230.     PlayerTextDrawColor(playerid,Textdraw8[playerid], -1);
  231.     PlayerTextDrawSetOutline(playerid,Textdraw8[playerid], 1);
  232.     PlayerTextDrawSetProportional(playerid,Textdraw8[playerid], 1);
  233.     PlayerTextDrawTextSize(playerid,Textdraw8[playerid], 156.000000, 10.000000);
  234.     PlayerTextDrawSetSelectable(playerid,Textdraw8[playerid], 1);
  235.  
  236.     Textdraw9[playerid] = CreatePlayerTextDraw(playerid,23.000000, 189.000000, "ld_shtr:hi_a"); // PLAY
  237.     PlayerTextDrawBackgroundColor(playerid,Textdraw9[playerid], 255);
  238.     PlayerTextDrawFont(playerid,Textdraw9[playerid], 4);
  239.     PlayerTextDrawLetterSize(playerid,Textdraw9[playerid], 0.500000, 1.000000);
  240.     PlayerTextDrawColor(playerid,Textdraw9[playerid], -1);
  241.     PlayerTextDrawSetOutline(playerid,Textdraw9[playerid], 0);
  242.     PlayerTextDrawSetProportional(playerid,Textdraw9[playerid], 1);
  243.     PlayerTextDrawSetShadow(playerid,Textdraw9[playerid], 1);
  244.     PlayerTextDrawUseBox(playerid,Textdraw9[playerid], 1);
  245.     PlayerTextDrawBoxColor(playerid,Textdraw9[playerid], 255);
  246.     PlayerTextDrawTextSize(playerid,Textdraw9[playerid], 17.000000, 10.000000);
  247.     PlayerTextDrawSetSelectable(playerid,Textdraw9[playerid], 1);
  248.  
  249.     Textdraw10[playerid] = CreatePlayerTextDraw(playerid,23.000000, 199.000000, "ld_shtr:hi_a"); // PLAY
  250.     PlayerTextDrawBackgroundColor(playerid,Textdraw10[playerid], 255);
  251.     PlayerTextDrawFont(playerid,Textdraw10[playerid], 4);
  252.     PlayerTextDrawLetterSize(playerid,Textdraw10[playerid], 0.500000, 1.000000);
  253.     PlayerTextDrawColor(playerid,Textdraw10[playerid], -1);
  254.     PlayerTextDrawSetOutline(playerid,Textdraw10[playerid], 0);
  255.     PlayerTextDrawSetProportional(playerid,Textdraw10[playerid], 1);
  256.     PlayerTextDrawSetShadow(playerid,Textdraw10[playerid], 1);
  257.     PlayerTextDrawUseBox(playerid,Textdraw10[playerid], 1);
  258.     PlayerTextDrawBoxColor(playerid,Textdraw10[playerid], 255);
  259.     PlayerTextDrawTextSize(playerid,Textdraw10[playerid], 17.000000, 10.000000);
  260.     PlayerTextDrawSetSelectable(playerid,Textdraw10[playerid], 1);
  261.  
  262.     Textdraw11[playerid] = CreatePlayerTextDraw(playerid,23.000000, 210.000000, "ld_shtr:hi_a"); // PLAY
  263.     PlayerTextDrawBackgroundColor(playerid,Textdraw11[playerid], 255);
  264.     PlayerTextDrawFont(playerid,Textdraw11[playerid], 4);
  265.     PlayerTextDrawLetterSize(playerid,Textdraw11[playerid], 0.500000, 1.000000);
  266.     PlayerTextDrawColor(playerid,Textdraw11[playerid], -1);
  267.     PlayerTextDrawSetOutline(playerid,Textdraw11[playerid], 0);
  268.     PlayerTextDrawSetProportional(playerid,Textdraw11[playerid], 1);
  269.     PlayerTextDrawSetShadow(playerid,Textdraw11[playerid], 1);
  270.     PlayerTextDrawUseBox(playerid,Textdraw11[playerid], 1);
  271.     PlayerTextDrawBoxColor(playerid,Textdraw11[playerid], 255);
  272.     PlayerTextDrawTextSize(playerid,Textdraw11[playerid], 17.000000, 10.000000);
  273.     PlayerTextDrawSetSelectable(playerid,Textdraw11[playerid], 1);
  274.  
  275.     Textdraw12[playerid] = CreatePlayerTextDraw(playerid,23.000000, 220.000000, "ld_shtr:hi_a"); // PLAY
  276.     PlayerTextDrawBackgroundColor(playerid,Textdraw12[playerid], 255);
  277.     PlayerTextDrawFont(playerid,Textdraw12[playerid], 4);
  278.     PlayerTextDrawLetterSize(playerid,Textdraw12[playerid], 0.500000, 1.000000);
  279.     PlayerTextDrawColor(playerid,Textdraw12[playerid], -1);
  280.     PlayerTextDrawSetOutline(playerid,Textdraw12[playerid], 0);
  281.     PlayerTextDrawSetProportional(playerid,Textdraw12[playerid], 1);
  282.     PlayerTextDrawSetShadow(playerid,Textdraw12[playerid], 1);
  283.     PlayerTextDrawUseBox(playerid,Textdraw12[playerid], 1);
  284.     PlayerTextDrawBoxColor(playerid,Textdraw12[playerid], 255);
  285.     PlayerTextDrawTextSize(playerid,Textdraw12[playerid], 17.000000, 10.000000);
  286.     PlayerTextDrawSetSelectable(playerid,Textdraw12[playerid], 1);
  287.  
  288.     Textdraw13[playerid] = CreatePlayerTextDraw(playerid,23.000000, 230.000000, "ld_shtr:hi_a"); // PLAY
  289.     PlayerTextDrawBackgroundColor(playerid,Textdraw13[playerid], 255);
  290.     PlayerTextDrawFont(playerid,Textdraw13[playerid], 4);
  291.     PlayerTextDrawLetterSize(playerid,Textdraw13[playerid], 0.500000, 1.000000);
  292.     PlayerTextDrawColor(playerid,Textdraw13[playerid], -1);
  293.     PlayerTextDrawSetOutline(playerid,Textdraw13[playerid], 0);
  294.     PlayerTextDrawSetProportional(playerid,Textdraw13[playerid], 1);
  295.     PlayerTextDrawSetShadow(playerid,Textdraw13[playerid], 1);
  296.     PlayerTextDrawUseBox(playerid,Textdraw13[playerid], 1);
  297.     PlayerTextDrawBoxColor(playerid,Textdraw13[playerid], 255);
  298.     PlayerTextDrawTextSize(playerid,Textdraw13[playerid], 17.000000, 10.000000);
  299.     PlayerTextDrawSetSelectable(playerid,Textdraw13[playerid], 1);
  300.  
  301.     Textdraw14[playerid] = CreatePlayerTextDraw(playerid,23.000000, 240.000000, "ld_shtr:hi_a"); // PLAY
  302.     PlayerTextDrawBackgroundColor(playerid,Textdraw14[playerid], 255);
  303.     PlayerTextDrawFont(playerid,Textdraw14[playerid], 4);
  304.     PlayerTextDrawLetterSize(playerid,Textdraw14[playerid], 0.500000, 1.000000);
  305.     PlayerTextDrawColor(playerid,Textdraw14[playerid], -1);
  306.     PlayerTextDrawSetOutline(playerid,Textdraw14[playerid], 0);
  307.     PlayerTextDrawSetProportional(playerid,Textdraw14[playerid], 1);
  308.     PlayerTextDrawSetShadow(playerid,Textdraw14[playerid], 1);
  309.     PlayerTextDrawUseBox(playerid,Textdraw14[playerid], 1);
  310.     PlayerTextDrawBoxColor(playerid,Textdraw14[playerid], 255);
  311.     PlayerTextDrawTextSize(playerid,Textdraw14[playerid], 17.000000, 10.000000);
  312.     PlayerTextDrawSetSelectable(playerid,Textdraw14[playerid], 1);
  313.  
  314.     Textdraw15[playerid] = CreatePlayerTextDraw(playerid,23.000000, 250.000000, "ld_shtr:hi_a"); // PLAY
  315.     PlayerTextDrawBackgroundColor(playerid,Textdraw15[playerid], 255);
  316.     PlayerTextDrawFont(playerid,Textdraw15[playerid], 4);
  317.     PlayerTextDrawLetterSize(playerid,Textdraw15[playerid], 0.500000, 1.000000);
  318.     PlayerTextDrawColor(playerid,Textdraw15[playerid], -1);
  319.     PlayerTextDrawSetOutline(playerid,Textdraw15[playerid], 0);
  320.     PlayerTextDrawSetProportional(playerid,Textdraw15[playerid], 1);
  321.     PlayerTextDrawSetShadow(playerid,Textdraw15[playerid], 1);
  322.     PlayerTextDrawUseBox(playerid,Textdraw15[playerid], 1);
  323.     PlayerTextDrawBoxColor(playerid,Textdraw15[playerid], 255);
  324.     PlayerTextDrawTextSize(playerid,Textdraw15[playerid], 17.000000, 10.000000);
  325.     PlayerTextDrawSetSelectable(playerid,Textdraw15[playerid], 1);
  326.  
  327.     Textdraw16[playerid] = CreatePlayerTextDraw(playerid,23.000000, 261.000000, "ld_shtr:hi_a"); // PLAY
  328.     PlayerTextDrawBackgroundColor(playerid,Textdraw16[playerid], 255);
  329.     PlayerTextDrawFont(playerid,Textdraw16[playerid], 4);
  330.     PlayerTextDrawLetterSize(playerid,Textdraw16[playerid], 0.500000, 1.000000);
  331.     PlayerTextDrawColor(playerid,Textdraw16[playerid], -1);
  332.     PlayerTextDrawSetOutline(playerid,Textdraw16[playerid], 0);
  333.     PlayerTextDrawSetProportional(playerid,Textdraw16[playerid], 1);
  334.     PlayerTextDrawSetShadow(playerid,Textdraw16[playerid], 1);
  335.     PlayerTextDrawUseBox(playerid,Textdraw16[playerid], 1);
  336.     PlayerTextDrawBoxColor(playerid,Textdraw16[playerid], 255);
  337.     PlayerTextDrawTextSize(playerid,Textdraw16[playerid], 17.000000, 10.000000);
  338.     PlayerTextDrawSetSelectable(playerid,Textdraw16[playerid], 1);
  339.  
  340.     Textdraw17[playerid] = CreatePlayerTextDraw(playerid,96.000000, 275.000000, "ld_beat:right"); // PASSAR
  341.     PlayerTextDrawBackgroundColor(playerid,Textdraw17[playerid], 255);
  342.     PlayerTextDrawFont(playerid,Textdraw17[playerid], 4);
  343.     PlayerTextDrawLetterSize(playerid,Textdraw17[playerid], 0.500000, 1.000000);
  344.     PlayerTextDrawColor(playerid,Textdraw17[playerid], -1);
  345.     PlayerTextDrawSetOutline(playerid,Textdraw17[playerid], 0);
  346.     PlayerTextDrawSetProportional(playerid,Textdraw17[playerid], 1);
  347.     PlayerTextDrawSetShadow(playerid,Textdraw17[playerid], 1);
  348.     PlayerTextDrawUseBox(playerid,Textdraw17[playerid], 1);
  349.     PlayerTextDrawBoxColor(playerid,Textdraw17[playerid], 255);
  350.     PlayerTextDrawTextSize(playerid,Textdraw17[playerid], 19.000000, 18.000000);
  351.     PlayerTextDrawSetSelectable(playerid,Textdraw17[playerid], 1);
  352.  
  353.     Textdraw18[playerid] = CreatePlayerTextDraw(playerid,46.000000, 275.000000, "ld_beat:left"); // VOLTAR
  354.     PlayerTextDrawBackgroundColor(playerid,Textdraw18[playerid], 255);
  355.     PlayerTextDrawFont(playerid,Textdraw18[playerid], 4);
  356.     PlayerTextDrawLetterSize(playerid,Textdraw18[playerid], 0.500000, 1.000000);
  357.     PlayerTextDrawColor(playerid,Textdraw18[playerid], -1);
  358.     PlayerTextDrawSetOutline(playerid,Textdraw18[playerid], 0);
  359.     PlayerTextDrawSetProportional(playerid,Textdraw18[playerid], 1);
  360.     PlayerTextDrawSetShadow(playerid,Textdraw18[playerid], 1);
  361.     PlayerTextDrawUseBox(playerid,Textdraw18[playerid], 1);
  362.     PlayerTextDrawBoxColor(playerid,Textdraw18[playerid], 255);
  363.     PlayerTextDrawTextSize(playerid,Textdraw18[playerid], 19.000000, 18.000000);
  364.     PlayerTextDrawSetSelectable(playerid,Textdraw18[playerid], 1);
  365.  
  366.     Textdraw19[playerid] = CreatePlayerTextDraw(playerid,75.000000, 278.000000, "1");
  367.     PlayerTextDrawBackgroundColor(playerid,Textdraw19[playerid], 255);
  368.     PlayerTextDrawFont(playerid,Textdraw19[playerid], 1);
  369.     PlayerTextDrawLetterSize(playerid,Textdraw19[playerid], 0.500000, 1.000000);
  370.     PlayerTextDrawColor(playerid,Textdraw19[playerid], -1);
  371.     PlayerTextDrawSetOutline(playerid,Textdraw19[playerid], 1);
  372.     PlayerTextDrawSetProportional(playerid,Textdraw19[playerid], 1);
  373.     PlayerTextDrawSetSelectable(playerid,Textdraw19[playerid], 0);
  374.    
  375.     Textdraw20[playerid] = CreatePlayerTextDraw(playerid,21.000000, 278.000000, "ld_shtr:hi_c"); // SAIR
  376.     PlayerTextDrawBackgroundColor(playerid,Textdraw20[playerid], 255);
  377.     PlayerTextDrawFont(playerid,Textdraw20[playerid], 4);
  378.     PlayerTextDrawLetterSize(playerid,Textdraw20[playerid], 0.500000, 1.000000);
  379.     PlayerTextDrawColor(playerid,Textdraw20[playerid], -1);
  380.     PlayerTextDrawSetOutline(playerid,Textdraw20[playerid], 0);
  381.     PlayerTextDrawSetProportional(playerid,Textdraw20[playerid], 1);
  382.     PlayerTextDrawSetShadow(playerid,Textdraw20[playerid], 1);
  383.     PlayerTextDrawUseBox(playerid,Textdraw20[playerid], 1);
  384.     PlayerTextDrawBoxColor(playerid,Textdraw20[playerid], 255);
  385.     PlayerTextDrawTextSize(playerid,Textdraw20[playerid], 20.000000, 10.000000);
  386.     PlayerTextDrawSetSelectable(playerid,Textdraw20[playerid], 1);
  387.     return 1;
  388. }
  389.  
  390. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  391. {
  392.     if(playertextid == Textdraw20[playerid])
  393.     {
  394.         CancelSelectTextDraw(playerid);
  395.         ApagarDraws(playerid);
  396.         return 1;
  397.     }
  398.     if(Paginas[playerid] == 0)
  399.     {
  400.         if(playertextid == Textdraw1[playerid])
  401.         {
  402.              ShowPlayerDialog(playerid,DIALOG_EDIT1,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 1 ou editar somente o nome?","Link","Nome");
  403.              CancelSelectTextDraw(playerid);
  404.              ApagarDraws(playerid);
  405.              return 1;
  406.         }
  407.         else if(playertextid == Textdraw2[playerid])
  408.         {
  409.              ShowPlayerDialog(playerid,DIALOG_EDIT2,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 2 ou editar somente o nome?","Link","Nome");
  410.              CancelSelectTextDraw(playerid);
  411.              ApagarDraws(playerid);
  412.              return 1;
  413.         }
  414.         else if(playertextid == Textdraw3[playerid])
  415.         {
  416.              ShowPlayerDialog(playerid,DIALOG_EDIT3,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 3 ou editar somente o nome?","Link","Nome");
  417.              CancelSelectTextDraw(playerid);
  418.              ApagarDraws(playerid);
  419.              return 1;
  420.         }
  421.         else if(playertextid == Textdraw4[playerid])
  422.         {
  423.              ShowPlayerDialog(playerid,DIALOG_EDIT4,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 4 ou editar somente o nome?","Link","Nome");
  424.              CancelSelectTextDraw(playerid);
  425.              ApagarDraws(playerid);
  426.              return 1;
  427.         }
  428.         else if(playertextid == Textdraw5[playerid])
  429.         {
  430.              ShowPlayerDialog(playerid,DIALOG_EDIT5,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 5 ou editar somente o nome?","Link","Nome");
  431.              CancelSelectTextDraw(playerid);
  432.              ApagarDraws(playerid);
  433.              return 1;
  434.         }
  435.         else if(playertextid == Textdraw6[playerid])
  436.         {
  437.              ShowPlayerDialog(playerid,DIALOG_EDIT6,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 6 ou editar somente o nome?","Link","Nome");
  438.              CancelSelectTextDraw(playerid);
  439.              ApagarDraws(playerid);
  440.              return 1;
  441.         }
  442.         else if(playertextid == Textdraw7[playerid])
  443.         {
  444.              ShowPlayerDialog(playerid,DIALOG_EDIT7,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 7 ou editar somente o nome?","Link","Nome");
  445.              CancelSelectTextDraw(playerid);
  446.              ApagarDraws(playerid);
  447.              return 1;
  448.         }
  449.         else if(playertextid == Textdraw8[playerid])
  450.         {
  451.              ShowPlayerDialog(playerid,DIALOG_EDIT8,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 8 ou editar somente o nome?","Link","Nome");
  452.              CancelSelectTextDraw(playerid);
  453.              ApagarDraws(playerid);
  454.              return 1;
  455.         }
  456.         else if(playertextid == Textdraw9[playerid])
  457.         {
  458.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 1"));
  459.             CancelSelectTextDraw(playerid);
  460.             ApagarDraws(playerid);
  461.             return 1;
  462.         }
  463.         else if(playertextid == Textdraw10[playerid])
  464.         {
  465.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 2"));
  466.             CancelSelectTextDraw(playerid);
  467.             ApagarDraws(playerid);
  468.             return 1;
  469.         }
  470.         else if(playertextid == Textdraw11[playerid])
  471.         {
  472.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 3"));
  473.             CancelSelectTextDraw(playerid);
  474.             ApagarDraws(playerid);
  475.             return 1;
  476.         }
  477.         else if(playertextid == Textdraw12[playerid])
  478.         {
  479.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 4"));
  480.             CancelSelectTextDraw(playerid);
  481.             ApagarDraws(playerid);
  482.             return 1;
  483.         }
  484.         else if(playertextid == Textdraw13[playerid])
  485.         {
  486.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 5"));
  487.             CancelSelectTextDraw(playerid);
  488.             ApagarDraws(playerid);
  489.             return 1;
  490.         }
  491.         else if(playertextid == Textdraw14[playerid])
  492.         {
  493.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 6"));
  494.             CancelSelectTextDraw(playerid);
  495.             ApagarDraws(playerid);
  496.             return 1;
  497.         }
  498.         else if(playertextid == Textdraw15[playerid])
  499.         {
  500.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 7"));
  501.             CancelSelectTextDraw(playerid);
  502.             ApagarDraws(playerid);
  503.             return 1;
  504.         }
  505.         else if(playertextid == Textdraw16[playerid])
  506.         {
  507.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 8"));
  508.             CancelSelectTextDraw(playerid);
  509.             ApagarDraws(playerid);
  510.             return 1;
  511.         }
  512.         else if(playertextid == Textdraw17[playerid]) // PASSAR
  513.         {
  514.             Paginas[playerid] = 1;
  515.             SendClientMessage(playerid, -1, "Pagina 2.");
  516.             return 1;
  517.         }
  518.     }
  519.     else if(Paginas[playerid] == 1)
  520.     {
  521.         if(playertextid == Textdraw1[playerid])
  522.         {
  523.              ShowPlayerDialog(playerid,DIALOG_EDIT1,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 9 ou editar somente o nome?","Link","Nome");
  524.              CancelSelectTextDraw(playerid);
  525.              ApagarDraws(playerid);
  526.              return 1;
  527.         }
  528.         else if(playertextid == Textdraw2[playerid])
  529.         {
  530.              ShowPlayerDialog(playerid,DIALOG_EDIT2,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 10 ou editar somente o nome?","Link","Nome");
  531.              CancelSelectTextDraw(playerid);
  532.              ApagarDraws(playerid);
  533.              return 1;
  534.         }
  535.         else if(playertextid == Textdraw3[playerid])
  536.         {
  537.              ShowPlayerDialog(playerid,DIALOG_EDIT3,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 11 ou editar somente o nome?","Link","Nome");
  538.              CancelSelectTextDraw(playerid);
  539.              ApagarDraws(playerid);
  540.              return 1;
  541.         }
  542.         else if(playertextid == Textdraw4[playerid])
  543.         {
  544.              ShowPlayerDialog(playerid,DIALOG_EDIT4,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 12 ou editar somente o nome?","Link","Nome");
  545.              CancelSelectTextDraw(playerid);
  546.              ApagarDraws(playerid);
  547.              return 1;
  548.         }
  549.         else if(playertextid == Textdraw5[playerid])
  550.         {
  551.              ShowPlayerDialog(playerid,DIALOG_EDIT5,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 13 ou editar somente o nome?","Link","Nome");
  552.              CancelSelectTextDraw(playerid);
  553.              ApagarDraws(playerid);
  554.              return 1;
  555.         }
  556.         else if(playertextid == Textdraw6[playerid])
  557.         {
  558.              ShowPlayerDialog(playerid,DIALOG_EDIT6,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 14 ou editar somente o nome?","Link","Nome");
  559.              CancelSelectTextDraw(playerid);
  560.              ApagarDraws(playerid);
  561.              return 1;
  562.         }
  563.         else if(playertextid == Textdraw7[playerid])
  564.         {
  565.              ShowPlayerDialog(playerid,DIALOG_EDIT7,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 15 ou editar somente o nome?","Link","Nome");
  566.              CancelSelectTextDraw(playerid);
  567.              ApagarDraws(playerid);
  568.              return 1;
  569.         }
  570.         else if(playertextid == Textdraw8[playerid])
  571.         {
  572.              ShowPlayerDialog(playerid,DIALOG_EDIT8,DIALOG_STYLE_MSGBOX,"{87CEFA}Opções de Playlist","{FAEBD7}Deseja editar o link da Playlist número 16 ou editar somente o nome?","Link","Nome");
  573.              CancelSelectTextDraw(playerid);
  574.              ApagarDraws(playerid);
  575.              return 1;
  576.         }
  577.         else if(playertextid == Textdraw9[playerid])
  578.         {
  579.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 9"));
  580.             CancelSelectTextDraw(playerid);
  581.             ApagarDraws(playerid);
  582.             return 1;
  583.         }
  584.         else if(playertextid == Textdraw10[playerid])
  585.         {
  586.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 10"));
  587.             CancelSelectTextDraw(playerid);
  588.             ApagarDraws(playerid);
  589.             return 1;
  590.         }
  591.         else if(playertextid == Textdraw11[playerid])
  592.         {
  593.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 11"));
  594.             CancelSelectTextDraw(playerid);
  595.             ApagarDraws(playerid);
  596.             return 1;
  597.         }
  598.         else if(playertextid == Textdraw12[playerid])
  599.         {
  600.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 12"));
  601.             CancelSelectTextDraw(playerid);
  602.             ApagarDraws(playerid);
  603.             return 1;
  604.         }
  605.         else if(playertextid == Textdraw13[playerid])
  606.         {
  607.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 13"));
  608.             CancelSelectTextDraw(playerid);
  609.             ApagarDraws(playerid);
  610.             return 1;
  611.         }
  612.         else if(playertextid == Textdraw14[playerid])
  613.         {
  614.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 14"));
  615.             CancelSelectTextDraw(playerid);
  616.             ApagarDraws(playerid);
  617.             return 1;
  618.         }
  619.         else if(playertextid == Textdraw15[playerid])
  620.         {
  621.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 15"));
  622.             CancelSelectTextDraw(playerid);
  623.             ApagarDraws(playerid);
  624.             return 1;
  625.         }
  626.         else if(playertextid == Textdraw16[playerid])
  627.         {
  628.             PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 16"));
  629.             CancelSelectTextDraw(playerid);
  630.             ApagarDraws(playerid);
  631.             return 1;
  632.         }
  633.         else if(playertextid == Textdraw18[playerid]) // VOLTAR
  634.         {
  635.        
  636.             Paginas[playerid] = 0;
  637.             SendClientMessage(playerid, -1, "Pagina 1.");
  638.             return 1;
  639.         }
  640.     }
  641.     return 1;
  642. }
  643.  
  644. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  645. {
  646.     if(dialogid == DIALOG_EDIT1)
  647.     {
  648.         if(response)
  649.         {
  650.             ShowPlayerDialog(playerid, DIALOG_LINK1, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  651.         }
  652.         else if(!response)
  653.         {
  654.             ShowPlayerDialog(playerid, DIALOG_NOME1, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  655.  
  656.         }
  657.         return 1;
  658.     }
  659.     if(dialogid == DIALOG_LINK1)
  660.     {
  661.         if(response)
  662.         {
  663.             if(Paginas[playerid]== 0)
  664.             {
  665.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  666.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  667.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 1",inputtext);
  668.                 DOF2_SaveFile();
  669.             }
  670.             else if(Paginas[playerid]== 1)
  671.             {
  672.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  673.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  674.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 9",inputtext);
  675.                 DOF2_SaveFile();
  676.             }
  677.         }
  678.         return 1;
  679.     }
  680.     if(dialogid == DIALOG_NOME1)
  681.     {
  682.         if(response)
  683.         {
  684.             if(Paginas[playerid]== 0)
  685.             {
  686.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  687.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  688.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 1",inputtext);
  689.                 DOF2_SaveFile();
  690.                 new StringMusic[50];
  691.                 format(StringMusic,50,"%s",inputtext);
  692.                 PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringMusic);
  693.             }
  694.             else if(Paginas[playerid]== 1)
  695.             {
  696.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  697.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  698.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 9",inputtext);
  699.                 DOF2_SaveFile();
  700.                 new StringMusic[50];
  701.                 format(StringMusic,50,"%s",inputtext);
  702.                 PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringMusic);
  703.             }
  704.         }
  705.         return 1;
  706.     }
  707.     if(dialogid == DIALOG_EDIT2)
  708.     {
  709.         if(response)
  710.         {
  711.             ShowPlayerDialog(playerid, DIALOG_LINK2, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  712.         }
  713.         else if(!response)
  714.         {
  715.             ShowPlayerDialog(playerid, DIALOG_NOME2, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  716.  
  717.         }
  718.         return 1;
  719.     }
  720.     if(dialogid == DIALOG_LINK2)
  721.     {
  722.         if(response)
  723.         {
  724.             if(Paginas[playerid]== 0)
  725.             {
  726.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  727.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  728.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 2",inputtext);
  729.                 DOF2_SaveFile();
  730.             }
  731.             else if(Paginas[playerid]== 1)
  732.             {
  733.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  734.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  735.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 10",inputtext);
  736.                 DOF2_SaveFile();
  737.             }
  738.         }
  739.         return 1;
  740.     }
  741.     if(dialogid == DIALOG_NOME2)
  742.     {
  743.         if(response)
  744.         {
  745.             if(Paginas[playerid]== 0)
  746.             {
  747.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  748.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  749.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 2",inputtext);
  750.                 DOF2_SaveFile();
  751.                 new StringMusic[50];
  752.                 format(StringMusic,50,"%s",inputtext);
  753.                 PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringMusic);
  754.             }
  755.             else if(Paginas[playerid]== 1)
  756.             {
  757.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  758.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  759.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 10",inputtext);
  760.                 DOF2_SaveFile();
  761.                 new StringMusic[50];
  762.                 format(StringMusic,50,"%s",inputtext);
  763.                 PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringMusic);
  764.             }
  765.         }
  766.         return 1;
  767.     }
  768.     if(dialogid == DIALOG_EDIT3)
  769.     {
  770.         if(response)
  771.         {
  772.             ShowPlayerDialog(playerid, DIALOG_LINK3, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  773.         }
  774.         else if(!response)
  775.         {
  776.             ShowPlayerDialog(playerid, DIALOG_NOME3, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  777.  
  778.         }
  779.         return 1;
  780.     }
  781.     if(dialogid == DIALOG_LINK3)
  782.     {
  783.         if(response)
  784.         {
  785.             if(Paginas[playerid]== 0)
  786.             {
  787.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  788.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  789.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 3",inputtext);
  790.                 DOF2_SaveFile();
  791.             }
  792.             else if(Paginas[playerid]== 1)
  793.             {
  794.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  795.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  796.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 11",inputtext);
  797.                 DOF2_SaveFile();
  798.             }
  799.         }
  800.         return 1;
  801.     }
  802.     if(dialogid == DIALOG_NOME3)
  803.     {
  804.         if(response)
  805.         {
  806.             if(Paginas[playerid]== 0)
  807.             {
  808.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  809.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  810.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 3",inputtext);
  811.                 DOF2_SaveFile();
  812.                 new StringMusic[50];
  813.                 format(StringMusic,50,"%s",inputtext);
  814.                 PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringMusic);
  815.             }
  816.             else if(Paginas[playerid]== 1)
  817.             {
  818.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  819.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  820.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 11",inputtext);
  821.                 DOF2_SaveFile();
  822.                 new StringMusic[50];
  823.                 format(StringMusic,50,"%s",inputtext);
  824.                 PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringMusic);
  825.             }
  826.         }
  827.         return 1;
  828.     }
  829.     if(dialogid == DIALOG_EDIT4)
  830.     {
  831.         if(response)
  832.         {
  833.             ShowPlayerDialog(playerid, DIALOG_LINK4, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  834.         }
  835.         else if(!response)
  836.         {
  837.             ShowPlayerDialog(playerid, DIALOG_NOME4, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  838.  
  839.         }
  840.         return 1;
  841.     }
  842.     if(dialogid == DIALOG_LINK4)
  843.     {
  844.         if(response)
  845.         {
  846.             if(Paginas[playerid]== 0)
  847.             {
  848.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  849.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  850.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 4",inputtext);
  851.                 DOF2_SaveFile();
  852.             }
  853.             else if(Paginas[playerid]== 1)
  854.             {
  855.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  856.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  857.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 12",inputtext);
  858.                 DOF2_SaveFile();
  859.             }
  860.         }
  861.         return 1;
  862.     }
  863.     if(dialogid == DIALOG_NOME4)
  864.     {
  865.         if(response)
  866.         {
  867.             if(Paginas[playerid]== 0)
  868.             {
  869.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  870.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  871.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 4",inputtext);
  872.                 DOF2_SaveFile();
  873.                 new StringMusic[50];
  874.                 format(StringMusic,50,"%s",inputtext);
  875.                 PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringMusic);
  876.             }
  877.             if(Paginas[playerid]== 1)
  878.             {
  879.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  880.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  881.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 12",inputtext);
  882.                 DOF2_SaveFile();
  883.                 new StringMusic[50];
  884.                 format(StringMusic,50,"%s",inputtext);
  885.                 PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringMusic);
  886.             }
  887.         }
  888.         return 1;
  889.     }
  890.     if(dialogid == DIALOG_EDIT5)
  891.     {
  892.         if(response)
  893.         {
  894.             ShowPlayerDialog(playerid, DIALOG_LINK5, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  895.         }
  896.         else if(!response)
  897.         {
  898.             ShowPlayerDialog(playerid, DIALOG_NOME5, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  899.  
  900.         }
  901.         return 1;
  902.     }
  903.     if(dialogid == DIALOG_LINK5)
  904.     {
  905.         if(response)
  906.         {
  907.             if(Paginas[playerid]== 0)
  908.             {
  909.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  910.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  911.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 5",inputtext);
  912.                 DOF2_SaveFile();
  913.             }
  914.             else if(Paginas[playerid]== 1)
  915.             {
  916.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  917.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  918.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 13",inputtext);
  919.                 DOF2_SaveFile();
  920.             }
  921.         }
  922.         return 1;
  923.     }
  924.     if(dialogid == DIALOG_NOME5)
  925.     {
  926.         if(response)
  927.         {
  928.             if(Paginas[playerid]== 0)
  929.             {
  930.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  931.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  932.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 5",inputtext);
  933.                 DOF2_SaveFile();
  934.                 new StringMusic[50];
  935.                 format(StringMusic,50,"%s",inputtext);
  936.                 PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringMusic);
  937.             }
  938.             else if(Paginas[playerid]== 1)
  939.             {
  940.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  941.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  942.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 13",inputtext);
  943.                 DOF2_SaveFile();
  944.                 new StringMusic[50];
  945.                 format(StringMusic,50,"%s",inputtext);
  946.                 PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringMusic);
  947.             }
  948.         }
  949.         return 1;
  950.     }
  951.     if(dialogid == DIALOG_EDIT6)
  952.     {
  953.         if(response)
  954.         {
  955.             ShowPlayerDialog(playerid, DIALOG_LINK6, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  956.         }
  957.         else if(!response)
  958.         {
  959.             ShowPlayerDialog(playerid, DIALOG_NOME6, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  960.  
  961.         }
  962.         return 1;
  963.     }
  964.     if(dialogid == DIALOG_LINK6)
  965.     {
  966.         if(response)
  967.         {
  968.             if(Paginas[playerid]== 0)
  969.             {
  970.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  971.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  972.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 6",inputtext);
  973.                 DOF2_SaveFile();
  974.             }
  975.             else if(Paginas[playerid]== 1)
  976.             {
  977.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  978.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  979.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 14",inputtext);
  980.                 DOF2_SaveFile();
  981.             }
  982.         }
  983.         return 1;
  984.     }
  985.     if(dialogid == DIALOG_NOME6)
  986.     {
  987.         if(response)
  988.         {
  989.             if(Paginas[playerid]== 0)
  990.             {
  991.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  992.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  993.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 6",inputtext);
  994.                 DOF2_SaveFile();
  995.                 new StringMusic[50];
  996.                 format(StringMusic,50,"%s",inputtext);
  997.                 PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringMusic);
  998.             }
  999.             else if(Paginas[playerid]== 1)
  1000.             {
  1001.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  1002.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1003.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 14",inputtext);
  1004.                 DOF2_SaveFile();
  1005.                 new StringMusic[50];
  1006.                 format(StringMusic,50,"%s",inputtext);
  1007.                 PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringMusic);
  1008.             }
  1009.         }
  1010.         return 1;
  1011.     }
  1012.     if(dialogid == DIALOG_EDIT7)
  1013.     {
  1014.         if(response)
  1015.         {
  1016.             ShowPlayerDialog(playerid, DIALOG_LINK7, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  1017.         }
  1018.         else if(!response)
  1019.         {
  1020.             ShowPlayerDialog(playerid, DIALOG_NOME7, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  1021.  
  1022.         }
  1023.         return 1;
  1024.     }
  1025.     if(dialogid == DIALOG_LINK7)
  1026.     {
  1027.         if(response)
  1028.         {
  1029.             if(Paginas[playerid]== 0)
  1030.             {
  1031.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  1032.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1033.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 7",inputtext);
  1034.                 DOF2_SaveFile();
  1035.             }
  1036.             else if(Paginas[playerid]== 1)
  1037.             {
  1038.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  1039.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1040.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 15",inputtext);
  1041.                 DOF2_SaveFile();
  1042.             }
  1043.         }
  1044.         return 1;
  1045.     }
  1046.     if(dialogid == DIALOG_NOME7)
  1047.     {
  1048.         if(response)
  1049.         {
  1050.             if(Paginas[playerid]== 0)
  1051.             {
  1052.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  1053.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1054.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 7",inputtext);
  1055.                 DOF2_SaveFile();
  1056.                 new StringMusic[50];
  1057.                 format(StringMusic,50,"%s",inputtext);
  1058.                 PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringMusic);
  1059.             }
  1060.             else if(Paginas[playerid]== 1)
  1061.             {
  1062.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  1063.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1064.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 15",inputtext);
  1065.                 DOF2_SaveFile();
  1066.                 new StringMusic[50];
  1067.                 format(StringMusic,50,"%s",inputtext);
  1068.                 PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringMusic);
  1069.             }
  1070.         }
  1071.         return 1;
  1072.     }
  1073.     if(dialogid == DIALOG_EDIT8)
  1074.     {
  1075.         if(response)
  1076.         {
  1077.             ShowPlayerDialog(playerid, DIALOG_LINK8, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
  1078.         }
  1079.         else if(!response)
  1080.         {
  1081.             ShowPlayerDialog(playerid, DIALOG_NOME8, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "Digite o nome que deseja para sua música da Playlist.", "Feito", "Cancelar");
  1082.  
  1083.         }
  1084.         return 1;
  1085.     }
  1086.     if(dialogid == DIALOG_LINK8)
  1087.     {
  1088.         if(response)
  1089.         {
  1090.             if(Paginas[playerid]== 0)
  1091.             {
  1092.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  1093.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1094.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 8",inputtext);
  1095.                 DOF2_SaveFile();
  1096.             }
  1097.             else if(Paginas[playerid]== 1)
  1098.             {
  1099.                 format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
  1100.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1101.                 DOF2_SetString(PlaylistCriada(playerid),"Musica 16",inputtext);
  1102.                 DOF2_SaveFile();
  1103.             }
  1104.         }
  1105.         return 1;
  1106.     }
  1107.     if(dialogid == DIALOG_NOME8)
  1108.     {
  1109.         if(response)
  1110.         {
  1111.             if(Paginas[playerid]== 0)
  1112.             {
  1113.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  1114.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1115.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 8",inputtext);
  1116.                 DOF2_SaveFile();
  1117.                 new StringMusic[50];
  1118.                 format(StringMusic,50,"%s",inputtext);
  1119.                 PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringMusic);
  1120.             }
  1121.             else if(Paginas[playerid]== 1)
  1122.             {
  1123.                 format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
  1124.                 SendClientMessage(playerid, 0xAEEEEE, StringPlay);
  1125.                 DOF2_SetString(PlaylistCriada(playerid),"Descrissao 16",inputtext);
  1126.                 DOF2_SaveFile();
  1127.                 new StringMusic[50];
  1128.                 format(StringMusic,50,"%s",inputtext);
  1129.                 PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringMusic);
  1130.             }
  1131.         }
  1132.         return 1;
  1133.     }
  1134.     return 1;
  1135. }
  1136. CMD:playlist(playerid)
  1137. {
  1138.     Paginas[playerid] = 0;
  1139.     MostrarDraws(playerid);
  1140.     SelectTextDraw(playerid, 0xFFDAB9);
  1141.     return 1;
  1142. }
  1143.  
  1144. stock MostrarDraws(playerid)
  1145. {
  1146.     PlayerTextDrawShow(playerid,Textdraw0[playerid]);
  1147.     PlayerTextDrawShow(playerid,Textdraw1[playerid]);
  1148.     PlayerTextDrawShow(playerid,Textdraw2[playerid]);
  1149.     PlayerTextDrawShow(playerid,Textdraw3[playerid]);
  1150.     PlayerTextDrawShow(playerid,Textdraw4[playerid]);
  1151.     PlayerTextDrawShow(playerid,Textdraw5[playerid]);
  1152.     PlayerTextDrawShow(playerid,Textdraw6[playerid]);
  1153.     PlayerTextDrawShow(playerid,Textdraw7[playerid]);
  1154.     PlayerTextDrawShow(playerid,Textdraw8[playerid]);
  1155.     PlayerTextDrawShow(playerid,Textdraw9[playerid]);
  1156.     PlayerTextDrawShow(playerid,Textdraw10[playerid]);
  1157.     PlayerTextDrawShow(playerid,Textdraw11[playerid]);
  1158.     PlayerTextDrawShow(playerid,Textdraw12[playerid]);
  1159.     PlayerTextDrawShow(playerid,Textdraw13[playerid]);
  1160.     PlayerTextDrawShow(playerid,Textdraw14[playerid]);
  1161.     PlayerTextDrawShow(playerid,Textdraw15[playerid]);
  1162.     PlayerTextDrawShow(playerid,Textdraw16[playerid]);
  1163.     PlayerTextDrawShow(playerid,Textdraw17[playerid]);
  1164.     PlayerTextDrawShow(playerid,Textdraw18[playerid]);
  1165.     PlayerTextDrawShow(playerid,Textdraw19[playerid]);
  1166.     PlayerTextDrawShow(playerid,Textdraw20[playerid]);
  1167.     return 1;
  1168. }
  1169.  
  1170. stock ApagarDraws(playerid)
  1171. {
  1172.     PlayerTextDrawHide (playerid,Textdraw0[playerid]);
  1173.     PlayerTextDrawHide (playerid,Textdraw1[playerid]);
  1174.     PlayerTextDrawHide (playerid,Textdraw2[playerid]);
  1175.     PlayerTextDrawHide (playerid,Textdraw3[playerid]);
  1176.     PlayerTextDrawHide (playerid,Textdraw4[playerid]);
  1177.     PlayerTextDrawHide (playerid,Textdraw5[playerid]);
  1178.     PlayerTextDrawHide (playerid,Textdraw6[playerid]);
  1179.     PlayerTextDrawHide (playerid,Textdraw7[playerid]);
  1180.     PlayerTextDrawHide (playerid,Textdraw8[playerid]);
  1181.     PlayerTextDrawHide (playerid,Textdraw9[playerid]);
  1182.     PlayerTextDrawHide (playerid,Textdraw10[playerid]);
  1183.     PlayerTextDrawHide (playerid,Textdraw11[playerid]);
  1184.     PlayerTextDrawHide (playerid,Textdraw12[playerid]);
  1185.     PlayerTextDrawHide (playerid,Textdraw13[playerid]);
  1186.     PlayerTextDrawHide (playerid,Textdraw14[playerid]);
  1187.     PlayerTextDrawHide (playerid,Textdraw15[playerid]);
  1188.     PlayerTextDrawHide (playerid,Textdraw16[playerid]);
  1189.     PlayerTextDrawHide (playerid,Textdraw17[playerid]);
  1190.     PlayerTextDrawHide (playerid,Textdraw18[playerid]);
  1191.     PlayerTextDrawHide (playerid,Textdraw19[playerid]);
  1192.     PlayerTextDrawHide (playerid,Textdraw20[playerid]);
  1193.     return 1;
  1194. }
  1195.  
  1196. stock PlaylistCriada(playerid)
  1197. {
  1198.     new hue[60],PlayerName[MAX_PLAYER_NAME];
  1199.     GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  1200.     format(hue, sizeof(hue),"Playlist_%s.ini", PlayerName);
  1201.     return hue;
  1202. }
  1203.  
  1204. forward AtualizarPlay(playerid);
  1205. public AtualizarPlay(playerid)
  1206. {
  1207.     if(Paginas[playerid] == 0)
  1208.     {
  1209.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 1"));
  1210.         PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringPlay);
  1211.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 2"));
  1212.         PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringPlay);
  1213.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 3"));
  1214.         PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringPlay);
  1215.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 4"));
  1216.         PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringPlay);
  1217.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 5"));
  1218.         PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringPlay);
  1219.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 6"));
  1220.         PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringPlay);
  1221.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 7"));
  1222.         PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringPlay);
  1223.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 8"));
  1224.         PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringPlay);
  1225.         format(StringPlay,50,"1");
  1226.         PlayerTextDrawSetString(playerid,Textdraw19[playerid],StringPlay);
  1227.     }
  1228.     else if(Paginas[playerid] == 1)
  1229.     {
  1230.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 9"));
  1231.         PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringPlay);
  1232.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 10"));
  1233.         PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringPlay);
  1234.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 11"));
  1235.         PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringPlay);
  1236.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 12"));
  1237.         PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringPlay);
  1238.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 13"));
  1239.         PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringPlay);
  1240.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 14"));
  1241.         PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringPlay);
  1242.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 15"));
  1243.         PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringPlay);
  1244.         format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 16"));
  1245.         PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringPlay);
  1246.         format(StringPlay,50,"2");
  1247.         PlayerTextDrawSetString(playerid,Textdraw19[playerid],StringPlay);
  1248.     }
  1249.     return 1;
  1250. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement