Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #include DOF2
- #include zcmd
- new StringPlay[256];
- new Paginas[MAX_PLAYERS];
- new PlayerText:Textdraw0[MAX_PLAYERS];
- new PlayerText:Textdraw1[MAX_PLAYERS];
- new PlayerText:Textdraw2[MAX_PLAYERS];
- new PlayerText:Textdraw3[MAX_PLAYERS];
- new PlayerText:Textdraw4[MAX_PLAYERS];
- new PlayerText:Textdraw5[MAX_PLAYERS];
- new PlayerText:Textdraw6[MAX_PLAYERS];
- new PlayerText:Textdraw7[MAX_PLAYERS];
- new PlayerText:Textdraw8[MAX_PLAYERS];
- new PlayerText:Textdraw9[MAX_PLAYERS];
- new PlayerText:Textdraw10[MAX_PLAYERS];
- new PlayerText:Textdraw11[MAX_PLAYERS];
- new PlayerText:Textdraw12[MAX_PLAYERS];
- new PlayerText:Textdraw13[MAX_PLAYERS];
- new PlayerText:Textdraw14[MAX_PLAYERS];
- new PlayerText:Textdraw15[MAX_PLAYERS];
- new PlayerText:Textdraw16[MAX_PLAYERS];
- new PlayerText:Textdraw17[MAX_PLAYERS];
- new PlayerText:Textdraw18[MAX_PLAYERS];
- new PlayerText:Textdraw19[MAX_PLAYERS];
- new PlayerText:Textdraw20[MAX_PLAYERS];
- #define DIALOG_EDIT1 4004
- #define DIALOG_EDIT2 4005
- #define DIALOG_EDIT3 4006
- #define DIALOG_EDIT4 4007
- #define DIALOG_EDIT5 4008
- #define DIALOG_EDIT6 4009
- #define DIALOG_EDIT7 4010
- #define DIALOG_EDIT8 4011
- #define DIALOG_LINK1 5005
- #define DIALOG_LINK2 5006
- #define DIALOG_LINK3 5007
- #define DIALOG_LINK4 5008
- #define DIALOG_LINK5 5009
- #define DIALOG_LINK6 5010
- #define DIALOG_LINK7 5011
- #define DIALOG_LINK8 5012
- #define DIALOG_NOME1 6001
- #define DIALOG_NOME2 6002
- #define DIALOG_NOME3 6003
- #define DIALOG_NOME4 6004
- #define DIALOG_NOME5 6005
- #define DIALOG_NOME6 6006
- #define DIALOG_NOME7 6007
- #define DIALOG_NOME8 6008
- public OnGameModeInit()
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- StopAudioStreamForPlayer(playerid);
- SetTimerEx("AtualizarPlay", 3000, true, "i", playerid );
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Paginas[playerid] = 0;
- if(!DOF2_FileExists(PlaylistCriada(playerid)))
- {
- DOF2_CreateFile(PlaylistCriada(playerid));
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 1" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 1" , "Musica 1") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 2" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 2" , "Musica 2") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 3" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 3" , "Musica 3") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 4" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 4" , "Musica 4") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 5" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 5" , "Musica 5") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 6" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 6" , "Musica 6") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 7" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 7" , "Musica 7") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 8" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 8" , "Musica 8") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 9" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 9" , "Musica 9") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 10" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 10" , "Musica 10") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 11" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 11" , "Musica 11") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 12" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 12" , "Musica 12") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 13" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 13" , "Musica 13") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 14" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 14" , "Musica 14") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 15" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 15" , "Musica 15") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Musica 16" , "Nenhuma") ;
- DOF2_SetString (PlaylistCriada(playerid) , "Descrissao 16" , "Musica 16") ;
- DOF2_SaveFile();
- }
- else if(DOF2_FileExists(PlaylistCriada(playerid)))
- {
- DOF2_GetString(PlaylistCriada(playerid), "Musica 1");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 1");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 2");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 2");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 3");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 3");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 4");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 4");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 5");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 5");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 6");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 6");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 7");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 7");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 8");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 8");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 9");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 9");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 10");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 10");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 11");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 11");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 12");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 12");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 13");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 13");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 14");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 14");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 15");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 15");
- DOF2_GetString(PlaylistCriada(playerid), "Musica 16");
- DOF2_GetString(PlaylistCriada(playerid), "Descrissao 16");
- }
- Textdraw0[playerid] = CreatePlayerTextDraw(playerid,21.000000, 188.000000, "|");
- PlayerTextDrawBackgroundColor(playerid,Textdraw0[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw0[playerid], 0);
- PlayerTextDrawLetterSize(playerid,Textdraw0[playerid], 0.000000, 11.600002);
- PlayerTextDrawColor(playerid,Textdraw0[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw0[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw0[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw0[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw0[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw0[playerid], 909522687);
- PlayerTextDrawTextSize(playerid,Textdraw0[playerid], 138.000000, 102.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw0[playerid], 0);
- Textdraw1[playerid] = CreatePlayerTextDraw(playerid,43.000000, 190.000000, "Musica 1");
- PlayerTextDrawBackgroundColor(playerid,Textdraw1[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw1[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw1[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw1[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw1[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw1[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw1[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw1[playerid], 1);
- Textdraw2[playerid] = CreatePlayerTextDraw(playerid,43.000000, 200.000000, "Musica 2");
- PlayerTextDrawBackgroundColor(playerid,Textdraw2[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw2[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw2[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw2[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw2[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw2[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw2[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw2[playerid], 1);
- Textdraw3[playerid] = CreatePlayerTextDraw(playerid,43.000000, 210.000000, "Musica 3");
- PlayerTextDrawBackgroundColor(playerid,Textdraw3[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw3[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw3[playerid], 0.370000, 0.899999);
- PlayerTextDrawColor(playerid,Textdraw3[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw3[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw3[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw3[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw3[playerid], 1);
- Textdraw4[playerid] = CreatePlayerTextDraw(playerid,43.000000, 221.000000, "Musica 4");
- PlayerTextDrawBackgroundColor(playerid,Textdraw4[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw4[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw4[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw4[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw4[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw4[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw4[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw4[playerid], 1);
- Textdraw5[playerid] = CreatePlayerTextDraw(playerid,43.000000, 231.000000, "Musica 5");
- PlayerTextDrawBackgroundColor(playerid,Textdraw5[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw5[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw5[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw5[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw5[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw5[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw5[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw5[playerid], 1);
- Textdraw6[playerid] = CreatePlayerTextDraw(playerid,43.000000, 241.000000, "Musica 6");
- PlayerTextDrawBackgroundColor(playerid,Textdraw6[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw6[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw6[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw6[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw6[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw6[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw6[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw6[playerid], 1);
- Textdraw7[playerid] = CreatePlayerTextDraw(playerid,43.000000, 251.000000, "Musica 7");
- PlayerTextDrawBackgroundColor(playerid,Textdraw7[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw7[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw7[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw7[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw7[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw7[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw7[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw7[playerid], 1);
- Textdraw8[playerid] = CreatePlayerTextDraw(playerid,43.000000, 261.000000, "Musica 8");
- PlayerTextDrawBackgroundColor(playerid,Textdraw8[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw8[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw8[playerid], 0.370000, 0.799999);
- PlayerTextDrawColor(playerid,Textdraw8[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw8[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw8[playerid], 1);
- PlayerTextDrawTextSize(playerid,Textdraw8[playerid], 156.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw8[playerid], 1);
- Textdraw9[playerid] = CreatePlayerTextDraw(playerid,23.000000, 189.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw9[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw9[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw9[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw9[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw9[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw9[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw9[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw9[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw9[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw9[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw9[playerid], 1);
- Textdraw10[playerid] = CreatePlayerTextDraw(playerid,23.000000, 199.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw10[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw10[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw10[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw10[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw10[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw10[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw10[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw10[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw10[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw10[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw10[playerid], 1);
- Textdraw11[playerid] = CreatePlayerTextDraw(playerid,23.000000, 210.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw11[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw11[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw11[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw11[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw11[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw11[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw11[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw11[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw11[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw11[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw11[playerid], 1);
- Textdraw12[playerid] = CreatePlayerTextDraw(playerid,23.000000, 220.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw12[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw12[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw12[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw12[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw12[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw12[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw12[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw12[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw12[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw12[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw12[playerid], 1);
- Textdraw13[playerid] = CreatePlayerTextDraw(playerid,23.000000, 230.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw13[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw13[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw13[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw13[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw13[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw13[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw13[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw13[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw13[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw13[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw13[playerid], 1);
- Textdraw14[playerid] = CreatePlayerTextDraw(playerid,23.000000, 240.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw14[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw14[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw14[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw14[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw14[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw14[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw14[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw14[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw14[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw14[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw14[playerid], 1);
- Textdraw15[playerid] = CreatePlayerTextDraw(playerid,23.000000, 250.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw15[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw15[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw15[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw15[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw15[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw15[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw15[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw15[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw15[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw15[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw15[playerid], 1);
- Textdraw16[playerid] = CreatePlayerTextDraw(playerid,23.000000, 261.000000, "ld_shtr:hi_a"); // PLAY
- PlayerTextDrawBackgroundColor(playerid,Textdraw16[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw16[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw16[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw16[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw16[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw16[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw16[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw16[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw16[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw16[playerid], 17.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw16[playerid], 1);
- Textdraw17[playerid] = CreatePlayerTextDraw(playerid,96.000000, 275.000000, "ld_beat:right"); // PASSAR
- PlayerTextDrawBackgroundColor(playerid,Textdraw17[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw17[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw17[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw17[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw17[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw17[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw17[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw17[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw17[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw17[playerid], 19.000000, 18.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw17[playerid], 1);
- Textdraw18[playerid] = CreatePlayerTextDraw(playerid,46.000000, 275.000000, "ld_beat:left"); // VOLTAR
- PlayerTextDrawBackgroundColor(playerid,Textdraw18[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw18[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw18[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw18[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw18[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw18[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw18[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw18[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw18[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw18[playerid], 19.000000, 18.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw18[playerid], 1);
- Textdraw19[playerid] = CreatePlayerTextDraw(playerid,75.000000, 278.000000, "1");
- PlayerTextDrawBackgroundColor(playerid,Textdraw19[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw19[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw19[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw19[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw19[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw19[playerid], 1);
- PlayerTextDrawSetSelectable(playerid,Textdraw19[playerid], 0);
- Textdraw20[playerid] = CreatePlayerTextDraw(playerid,21.000000, 278.000000, "ld_shtr:hi_c"); // SAIR
- PlayerTextDrawBackgroundColor(playerid,Textdraw20[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw20[playerid], 4);
- PlayerTextDrawLetterSize(playerid,Textdraw20[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw20[playerid], -1);
- PlayerTextDrawSetOutline(playerid,Textdraw20[playerid], 0);
- PlayerTextDrawSetProportional(playerid,Textdraw20[playerid], 1);
- PlayerTextDrawSetShadow(playerid,Textdraw20[playerid], 1);
- PlayerTextDrawUseBox(playerid,Textdraw20[playerid], 1);
- PlayerTextDrawBoxColor(playerid,Textdraw20[playerid], 255);
- PlayerTextDrawTextSize(playerid,Textdraw20[playerid], 20.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw20[playerid], 1);
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == Textdraw20[playerid])
- {
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- if(Paginas[playerid] == 0)
- {
- if(playertextid == Textdraw1[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw2[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw3[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw4[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw5[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw6[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw7[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw8[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw9[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 1"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw10[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 2"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw11[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 3"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw12[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 4"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw13[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 5"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw14[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 6"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw15[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 7"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw16[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 8"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw17[playerid]) // PASSAR
- {
- Paginas[playerid] = 1;
- SendClientMessage(playerid, -1, "Pagina 2.");
- return 1;
- }
- }
- else if(Paginas[playerid] == 1)
- {
- if(playertextid == Textdraw1[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw2[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw3[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw4[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw5[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw6[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw7[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw8[playerid])
- {
- 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");
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw9[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 9"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw10[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 10"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw11[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 11"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw12[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 12"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw13[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 13"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw14[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 14"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw15[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 15"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw16[playerid])
- {
- PlayAudioStreamForPlayer(playerid, DOF2_GetString(PlaylistCriada(playerid), "Musica 16"));
- CancelSelectTextDraw(playerid);
- ApagarDraws(playerid);
- return 1;
- }
- else if(playertextid == Textdraw18[playerid]) // VOLTAR
- {
- Paginas[playerid] = 0;
- SendClientMessage(playerid, -1, "Pagina 1.");
- return 1;
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_EDIT1)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK1, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK1)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 1",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 9",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME1)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 1",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 9",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT2)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK2, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK2)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 2",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 10",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME2)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 2",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 10",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT3)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK3, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK3)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 3",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 11",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME3)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 3",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 11",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT4)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK4, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK4)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 4",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 12",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME4)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 4",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringMusic);
- }
- if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 12",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT5)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK5, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK5)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 5",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 13",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME5)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 5",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 13",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT6)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK6, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK6)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 6",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 14",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME6)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 6",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 14",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT7)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK7, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK7)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 7",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 15",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME7)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 7",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 15",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringMusic);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EDIT8)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, DIALOG_LINK8, DIALOG_STYLE_INPUT, "{87CEFA}Opções de Playlist", "{FAEBD7}Adicione um link em .mp3\nPegue da internet ^^", "Feito", "Cancelar");
- }
- else if(!response)
- {
- 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");
- }
- return 1;
- }
- if(dialogid == DIALOG_LINK8)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 8",inputtext);
- DOF2_SaveFile();
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O link que você editou foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Musica 16",inputtext);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_NOME8)
- {
- if(response)
- {
- if(Paginas[playerid]== 0)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 8",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringMusic);
- }
- else if(Paginas[playerid]== 1)
- {
- format(StringPlay, sizeof(StringPlay), "O nome que você escolheu foi: %s", inputtext);
- SendClientMessage(playerid, 0xAEEEEE, StringPlay);
- DOF2_SetString(PlaylistCriada(playerid),"Descrissao 16",inputtext);
- DOF2_SaveFile();
- new StringMusic[50];
- format(StringMusic,50,"%s",inputtext);
- PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringMusic);
- }
- }
- return 1;
- }
- return 1;
- }
- CMD:playlist(playerid)
- {
- Paginas[playerid] = 0;
- MostrarDraws(playerid);
- SelectTextDraw(playerid, 0xFFDAB9);
- return 1;
- }
- stock MostrarDraws(playerid)
- {
- PlayerTextDrawShow(playerid,Textdraw0[playerid]);
- PlayerTextDrawShow(playerid,Textdraw1[playerid]);
- PlayerTextDrawShow(playerid,Textdraw2[playerid]);
- PlayerTextDrawShow(playerid,Textdraw3[playerid]);
- PlayerTextDrawShow(playerid,Textdraw4[playerid]);
- PlayerTextDrawShow(playerid,Textdraw5[playerid]);
- PlayerTextDrawShow(playerid,Textdraw6[playerid]);
- PlayerTextDrawShow(playerid,Textdraw7[playerid]);
- PlayerTextDrawShow(playerid,Textdraw8[playerid]);
- PlayerTextDrawShow(playerid,Textdraw9[playerid]);
- PlayerTextDrawShow(playerid,Textdraw10[playerid]);
- PlayerTextDrawShow(playerid,Textdraw11[playerid]);
- PlayerTextDrawShow(playerid,Textdraw12[playerid]);
- PlayerTextDrawShow(playerid,Textdraw13[playerid]);
- PlayerTextDrawShow(playerid,Textdraw14[playerid]);
- PlayerTextDrawShow(playerid,Textdraw15[playerid]);
- PlayerTextDrawShow(playerid,Textdraw16[playerid]);
- PlayerTextDrawShow(playerid,Textdraw17[playerid]);
- PlayerTextDrawShow(playerid,Textdraw18[playerid]);
- PlayerTextDrawShow(playerid,Textdraw19[playerid]);
- PlayerTextDrawShow(playerid,Textdraw20[playerid]);
- return 1;
- }
- stock ApagarDraws(playerid)
- {
- PlayerTextDrawHide (playerid,Textdraw0[playerid]);
- PlayerTextDrawHide (playerid,Textdraw1[playerid]);
- PlayerTextDrawHide (playerid,Textdraw2[playerid]);
- PlayerTextDrawHide (playerid,Textdraw3[playerid]);
- PlayerTextDrawHide (playerid,Textdraw4[playerid]);
- PlayerTextDrawHide (playerid,Textdraw5[playerid]);
- PlayerTextDrawHide (playerid,Textdraw6[playerid]);
- PlayerTextDrawHide (playerid,Textdraw7[playerid]);
- PlayerTextDrawHide (playerid,Textdraw8[playerid]);
- PlayerTextDrawHide (playerid,Textdraw9[playerid]);
- PlayerTextDrawHide (playerid,Textdraw10[playerid]);
- PlayerTextDrawHide (playerid,Textdraw11[playerid]);
- PlayerTextDrawHide (playerid,Textdraw12[playerid]);
- PlayerTextDrawHide (playerid,Textdraw13[playerid]);
- PlayerTextDrawHide (playerid,Textdraw14[playerid]);
- PlayerTextDrawHide (playerid,Textdraw15[playerid]);
- PlayerTextDrawHide (playerid,Textdraw16[playerid]);
- PlayerTextDrawHide (playerid,Textdraw17[playerid]);
- PlayerTextDrawHide (playerid,Textdraw18[playerid]);
- PlayerTextDrawHide (playerid,Textdraw19[playerid]);
- PlayerTextDrawHide (playerid,Textdraw20[playerid]);
- return 1;
- }
- stock PlaylistCriada(playerid)
- {
- new hue[60],PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(hue, sizeof(hue),"Playlist_%s.ini", PlayerName);
- return hue;
- }
- forward AtualizarPlay(playerid);
- public AtualizarPlay(playerid)
- {
- if(Paginas[playerid] == 0)
- {
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 1"));
- PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 2"));
- PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 3"));
- PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 4"));
- PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 5"));
- PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 6"));
- PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 7"));
- PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 8"));
- PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringPlay);
- format(StringPlay,50,"1");
- PlayerTextDrawSetString(playerid,Textdraw19[playerid],StringPlay);
- }
- else if(Paginas[playerid] == 1)
- {
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 9"));
- PlayerTextDrawSetString(playerid,Textdraw1[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 10"));
- PlayerTextDrawSetString(playerid,Textdraw2[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 11"));
- PlayerTextDrawSetString(playerid,Textdraw3[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 12"));
- PlayerTextDrawSetString(playerid,Textdraw4[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 13"));
- PlayerTextDrawSetString(playerid,Textdraw5[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 14"));
- PlayerTextDrawSetString(playerid,Textdraw6[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 15"));
- PlayerTextDrawSetString(playerid,Textdraw7[playerid],StringPlay);
- format(StringPlay,50,"%s",DOF2_GetString(PlaylistCriada(playerid),"Descrissao 16"));
- PlayerTextDrawSetString(playerid,Textdraw8[playerid],StringPlay);
- format(StringPlay,50,"2");
- PlayerTextDrawSetString(playerid,Textdraw19[playerid],StringPlay);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement