Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Created bY Kuddy - [Koman 01]
- Scripts utilizados:
- # Zamaroth Text Draw Editor 1.0 por Zamaroth
- # ZCMD por ZeeX
- Playlists por:
- # [Kz]Kuddy - Hardstyle, Vocaloid, Trance
- # AvengerCZ ( youtube.com/AvengerCZ ) - Hardstyle
- # Thiago Felipe - Rock
- # Jean/xSaint - Rap / Hip Hop
- Testes / Sugestões:
- # xSaint
- Licenciado sobre Creative Commons
- | Autorizações de todos os locais que poderá ser postado no tópico original,
- | Acesse www.KuddyProject.blogspot.com
- | Powered by Kuddy
- |||
- */
- #include < a_samp >
- #include < ZCMD > // Por ZeeX
- #include < foreach > // Por Y_Less
- #include < SII > // Por [DRuG]Slick
- #define MAX_MUSICS 24
- //#define ESCREVERDADOS format(String,sizeof(String),"Opcao%d", x); INI_WriteString(Str,String); INI_Save();
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new Text:Textdraw5;
- new Text:Textdraw6;
- new Text:TxdFechar; // X
- new Text:Textdraw8;
- new Text:Textdraw9;
- new Text:Textdraw10;
- new Text:Textdraw11;
- new Text:Textdraw12;
- new Text:Textdraw13;
- new Text:Textdraw14;
- new Text:Textdraw15;
- new Text:Textdraw16;
- new Text:Textdraw41;
- new Text:Textdraw42;
- new Text:Textdraw43;
- new Text:Textdraw44;
- new Text:Textdraw45;
- new Text:Textdraw46;
- // Arrays bidimensionais
- new Text:Textdraw[24][MAX_PLAYERS];
- // Comandos em ZCMD
- CMD:mp3(playerid) // Comando MP3, altere-o caso você já tenha um /mp3
- {
- SelectTextDraw(playerid, 0xFFFF00AA);
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, TxdFechar);
- TextDrawShowForPlayer(playerid, Textdraw8);
- TextDrawShowForPlayer(playerid, Textdraw9);
- TextDrawShowForPlayer(playerid, Textdraw10);
- TextDrawShowForPlayer(playerid, Textdraw11);
- TextDrawShowForPlayer(playerid, Textdraw12);
- TextDrawShowForPlayer(playerid, Textdraw13);
- TextDrawShowForPlayer(playerid, Textdraw14);
- TextDrawShowForPlayer(playerid, Textdraw15);
- TextDrawShowForPlayer(playerid, Textdraw16);
- TextDrawShowForPlayer(playerid, Textdraw[0][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[1][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[2][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[3][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[4][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[5][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[6][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[7][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[8][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[9][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[10][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[11][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[12][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[13][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[14][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[15][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[16][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[17][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[18][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[19][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[20][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[21][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[22][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[23][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw41);
- TextDrawShowForPlayer(playerid, Textdraw42);
- TextDrawShowForPlayer(playerid, Textdraw43);
- TextDrawShowForPlayer(playerid, Textdraw44);
- TextDrawShowForPlayer(playerid, Textdraw45);
- return 1;
- }
- new // Code pra fuder com a ram >_<
- urlArray[7][24][160],
- nameArray[7][24][32],
- Selecionou[MAX_PLAYERS],
- infoEstiloAtual[MAX_PLAYERS],
- bool:ParaTodos[MAX_PLAYERS]
- ;
- /*enum E_INFO
- {
- info_Rock[24][96],
- info_Hardstyle[24][96],
- info_Trance[24][96],
- info_Vocaloid[24][96],
- info_Funk[24][96],
- info_Rap[24][96],
- info_Pop[24][96]
- }; */
- //new DataInfo[eInfo];
- new Time;
- public OnFilterScriptInit()
- {
- print("> kMP3 por Kuddy carregado com sucesso!");
- // Diretorio "kmp3\estilos"
- //new diretorio[64];
- new Str[96];
- //new String[200];
- Time = GetTickCount();
- INI_Open("kmp3/Rock/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[0][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Rock/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[0][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- // // //
- INI_Open("kmp3/Hardstyle/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[1][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Hardstyle/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[1][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- // // //
- INI_Open("kmp3/Trance/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[2][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Trance/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[2][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- // // //
- INI_Open("kmp3/Vocaloid/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[3][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Vocaloid/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[3][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- // // //
- INI_Open("kmp3/Funk/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[4][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Funk/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[4][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- // // //
- INI_Open("kmp3/Rap/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[5][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Rap/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[5][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- // // //
- INI_Open("kmp3/Pop/name.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(nameArray[6][x], Str, 32);
- // ESCREVERDADOS
- }
- INI_Close();
- INI_Open("kmp3/Pop/url.kz");
- for(new x; x < MAX_MUSICS; x ++)
- {
- format(Str, sizeof(Str), "%d", x);
- INI_ReadString(urlArray[6][x], Str, 150);
- // ESCREVERDADOS
- }
- INI_Close();
- printf("%d", GetTickCount()-Time);
- // Texts:
- Textdraw0 = TextDrawCreate(611.000000, 110.000000, "_");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.490000, 22.100004);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 100);
- TextDrawTextSize(Textdraw0, 24.000000, 0.000000);
- Textdraw1 = TextDrawCreate(247.000000, 117.000000, "MP3 - KZ");
- TextDrawBackgroundColor(Textdraw1, -16776961);
- TextDrawFont(Textdraw1, 2);
- TextDrawLetterSize(Textdraw1, 0.819999, 1.700000);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 1);
- TextDrawSetProportional(Textdraw1, 1);
- Textdraw2 = TextDrawCreate(173.000000, 108.000000, "-");
- TextDrawBackgroundColor(Textdraw2, -65281);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 20.300043, 1.000000);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 1);
- Textdraw3 = TextDrawCreate(173.000000, 130.000000, "-");
- TextDrawBackgroundColor(Textdraw3, -65281);
- TextDrawFont(Textdraw3, 1);
- TextDrawLetterSize(Textdraw3, 20.300043, 1.000000);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetShadow(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(179.000000, 70.000000, "l");
- TextDrawBackgroundColor(Textdraw4, -65281);
- TextDrawFont(Textdraw4, 1);
- TextDrawLetterSize(Textdraw4, 0.230000, 22.100000);
- TextDrawColor(Textdraw4, -1);
- TextDrawSetOutline(Textdraw4, 0);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetShadow(Textdraw4, 5);
- Textdraw5 = TextDrawCreate(458.000000, 74.000000, "l");
- TextDrawBackgroundColor(Textdraw5, -65281);
- TextDrawFont(Textdraw5, 1);
- TextDrawLetterSize(Textdraw5, 0.230000, 22.100000);
- TextDrawColor(Textdraw5, -1);
- TextDrawSetOutline(Textdraw5, 0);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetShadow(Textdraw5, -5);
- Textdraw6 = TextDrawCreate(34.000000, 117.000000, "MENU PRINCIPAL");
- TextDrawBackgroundColor(Textdraw6, -16776961);
- TextDrawFont(Textdraw6, 2);
- TextDrawLetterSize(Textdraw6, 0.430000, 2.000000);
- TextDrawColor(Textdraw6, -1);
- TextDrawSetOutline(Textdraw6, 0);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawSetShadow(Textdraw6, 1);
- TxdFechar = TextDrawCreate(582.000000, 278.000000, "X");
- TextDrawBackgroundColor(TxdFechar, -16776961);
- TextDrawFont(TxdFechar, 1);
- TextDrawLetterSize(TxdFechar, 0.799998, 3.299998);
- TextDrawColor(TxdFechar, -1);
- TextDrawSetOutline(TxdFechar, 0);
- TextDrawSetProportional(TxdFechar, 1);
- TextDrawSetShadow(TxdFechar, 1);
- TextDrawUseBox(TxdFechar, 1);
- TextDrawBoxColor(TxdFechar, 0);
- TextDrawTextSize(TxdFechar, 605.000000, 20.000000);
- Textdraw8 = TextDrawCreate(34.000000, 142.000000, "Radios");
- TextDrawBackgroundColor(Textdraw8, -16776961);
- TextDrawFont(Textdraw8, 2);
- TextDrawLetterSize(Textdraw8, 0.370000, 1.399999);
- TextDrawColor(Textdraw8, -1);
- TextDrawSetOutline(Textdraw8, 0);
- TextDrawSetProportional(Textdraw8, 1);
- TextDrawSetShadow(Textdraw8, 1);
- TextDrawUseBox(Textdraw8, 1);
- TextDrawBoxColor(Textdraw8, 0);
- TextDrawTextSize(Textdraw8, 99.000000, 10.000000);
- Textdraw9 = TextDrawCreate(34.000000, 156.000000, "Estilos:");
- TextDrawBackgroundColor(Textdraw9, -16776961);
- TextDrawFont(Textdraw9, 2);
- TextDrawLetterSize(Textdraw9, 0.370000, 1.399999);
- TextDrawColor(Textdraw9, -1);
- TextDrawSetOutline(Textdraw9, 0);
- TextDrawSetProportional(Textdraw9, 1);
- TextDrawSetShadow(Textdraw9, 1);
- Textdraw10 = TextDrawCreate(45.000000, 185.000000, "Rock");
- TextDrawBackgroundColor(Textdraw10, -16776961);
- TextDrawFont(Textdraw10, 2);
- TextDrawLetterSize(Textdraw10, 0.370000, 1.399999);
- TextDrawColor(Textdraw10, -1);
- TextDrawSetOutline(Textdraw10, 0);
- TextDrawSetProportional(Textdraw10, 1);
- TextDrawSetShadow(Textdraw10, 1);
- TextDrawUseBox(Textdraw10, 1);
- TextDrawBoxColor(Textdraw10, 0);
- TextDrawTextSize(Textdraw10, 169.000000, 10.000000);
- Textdraw11 = TextDrawCreate(45.000000, 170.000000, "Hardstyle");
- TextDrawBackgroundColor(Textdraw11, -16776961);
- TextDrawFont(Textdraw11, 2);
- TextDrawLetterSize(Textdraw11, 0.370000, 1.399999);
- TextDrawColor(Textdraw11, -1);
- TextDrawSetOutline(Textdraw11, 0);
- TextDrawSetProportional(Textdraw11, 1);
- TextDrawSetShadow(Textdraw11, 1);
- TextDrawUseBox(Textdraw11, 1);
- TextDrawBoxColor(Textdraw11, 0);
- TextDrawTextSize(Textdraw11, 169.000000, 10.000000);
- Textdraw12 = TextDrawCreate(45.000000, 201.000000, "Trance");
- TextDrawBackgroundColor(Textdraw12, -16776961);
- TextDrawFont(Textdraw12, 2);
- TextDrawLetterSize(Textdraw12, 0.370000, 1.399999);
- TextDrawColor(Textdraw12, -1);
- TextDrawSetOutline(Textdraw12, 0);
- TextDrawSetProportional(Textdraw12, 1);
- TextDrawSetShadow(Textdraw12, 1);
- TextDrawUseBox(Textdraw12, 1);
- TextDrawBoxColor(Textdraw12, 0);
- TextDrawTextSize(Textdraw12, 169.000000, 10.000000);
- Textdraw13 = TextDrawCreate(45.000000, 217.000000, "Vocaloid");
- TextDrawBackgroundColor(Textdraw13, -16776961);
- TextDrawFont(Textdraw13, 2);
- TextDrawLetterSize(Textdraw13, 0.370000, 1.399999);
- TextDrawColor(Textdraw13, -1);
- TextDrawSetOutline(Textdraw13, 0);
- TextDrawSetProportional(Textdraw13, 1);
- TextDrawSetShadow(Textdraw13, 1);
- TextDrawUseBox(Textdraw13, 1);
- TextDrawBoxColor(Textdraw13, 0);
- TextDrawTextSize(Textdraw13, 169.000000, 10.000000);
- Textdraw14 = TextDrawCreate(45.000000, 232.000000, "Funk");
- TextDrawBackgroundColor(Textdraw14, -16776961);
- TextDrawFont(Textdraw14, 2);
- TextDrawLetterSize(Textdraw14, 0.370000, 1.399999);
- TextDrawColor(Textdraw14, -1);
- TextDrawSetOutline(Textdraw14, 0);
- TextDrawSetProportional(Textdraw14, 1);
- TextDrawSetShadow(Textdraw14, 1);
- TextDrawUseBox(Textdraw14, 1);
- TextDrawBoxColor(Textdraw14, 0);
- TextDrawTextSize(Textdraw14, 169.000000, 10.000000);
- Textdraw15 = TextDrawCreate(45.000000, 247.000000, "Rap");
- TextDrawBackgroundColor(Textdraw15, -16776961);
- TextDrawFont(Textdraw15, 2);
- TextDrawLetterSize(Textdraw15, 0.370000, 1.399999);
- TextDrawColor(Textdraw15, -1);
- TextDrawSetOutline(Textdraw15, 0);
- TextDrawSetProportional(Textdraw15, 1);
- TextDrawSetShadow(Textdraw15, 1);
- TextDrawUseBox(Textdraw15, 1);
- TextDrawBoxColor(Textdraw15, 0);
- TextDrawTextSize(Textdraw15, 169.000000, 10.000000);
- Textdraw16 = TextDrawCreate(45.000000, 262.000000, "Pop");
- TextDrawBackgroundColor(Textdraw16, -16776961);
- TextDrawFont(Textdraw16, 2);
- TextDrawLetterSize(Textdraw16, 0.370000, 1.399999);
- TextDrawColor(Textdraw16, -1);
- TextDrawSetOutline(Textdraw16, 0);
- TextDrawSetProportional(Textdraw16, 1);
- TextDrawSetShadow(Textdraw16, 1);
- TextDrawUseBox(Textdraw16, 1);
- TextDrawBoxColor(Textdraw16, 0);
- TextDrawTextSize(Textdraw16, 169.000000, 10.000000);
- Textdraw41 = TextDrawCreate(463.000000, 117.000000, "OUTRAS OPCOES");
- TextDrawBackgroundColor(Textdraw41, -16776961);
- TextDrawFont(Textdraw41, 2);
- TextDrawLetterSize(Textdraw41, 0.430000, 2.000000);
- TextDrawColor(Textdraw41, -1);
- TextDrawSetOutline(Textdraw41, 0);
- TextDrawSetProportional(Textdraw41, 1);
- TextDrawSetShadow(Textdraw41, 1);
- Textdraw42 = TextDrawCreate(463.000000, 141.000000, "Selecao global");
- TextDrawBackgroundColor(Textdraw42, -16776961);
- TextDrawFont(Textdraw42, 1);
- TextDrawLetterSize(Textdraw42, 0.300000, 1.700000);
- TextDrawColor(Textdraw42, -1);
- TextDrawSetOutline(Textdraw42, 0);
- TextDrawSetProportional(Textdraw42, 1);
- TextDrawSetShadow(Textdraw42, 1);
- TextDrawUseBox(Textdraw42, 1);
- TextDrawBoxColor(Textdraw42, 0);
- TextDrawTextSize(Textdraw42, 605.000000, 13.000000);
- Textdraw43 = TextDrawCreate(463.000000, 158.000000, "Selecao individual");
- TextDrawBackgroundColor(Textdraw43, -16776961);
- TextDrawFont(Textdraw43, 1);
- TextDrawLetterSize(Textdraw43, 0.300000, 1.700000);
- TextDrawColor(Textdraw43, -1);
- TextDrawSetOutline(Textdraw43, 0);
- TextDrawSetProportional(Textdraw43, 1);
- TextDrawSetShadow(Textdraw43, 1);
- TextDrawUseBox(Textdraw43, 1);
- TextDrawBoxColor(Textdraw43, 0);
- TextDrawTextSize(Textdraw43, 605.000000, 13.000000);
- Textdraw44 = TextDrawCreate(463.000000, 175.000000, "Parar musica");
- TextDrawBackgroundColor(Textdraw44, -16776961);
- TextDrawFont(Textdraw44, 1);
- TextDrawLetterSize(Textdraw44, 0.300000, 1.700000);
- TextDrawColor(Textdraw44, -1);
- TextDrawSetOutline(Textdraw44, 0);
- TextDrawSetProportional(Textdraw44, 1);
- TextDrawSetShadow(Textdraw44, 1);
- TextDrawUseBox(Textdraw44, 1);
- TextDrawBoxColor(Textdraw44, 0);
- TextDrawTextSize(Textdraw44, 605.000000, 13.000000);
- Textdraw45 = TextDrawCreate(501.000000, 226.000000, "Ver creditos");
- TextDrawBackgroundColor(Textdraw45, -16776961);
- TextDrawFont(Textdraw45, 1);
- TextDrawLetterSize(Textdraw45, 0.300000, 1.700000);
- TextDrawColor(Textdraw45, -1);
- TextDrawSetOutline(Textdraw45, 0);
- TextDrawSetProportional(Textdraw45, 1);
- TextDrawSetShadow(Textdraw45, 1);
- TextDrawUseBox(Textdraw45, 1);
- TextDrawBoxColor(Textdraw45, 0);
- TextDrawTextSize(Textdraw45, 605.000000, 13.000000);
- // Deixa-las selecionáveis
- TextDrawSetSelectable(Textdraw8, 1);
- TextDrawSetSelectable(Textdraw10, 1);
- TextDrawSetSelectable(Textdraw11, 1);
- TextDrawSetSelectable(Textdraw12, 1);
- TextDrawSetSelectable(Textdraw13, 1);
- TextDrawSetSelectable(Textdraw14, 1);
- TextDrawSetSelectable(Textdraw15, 1);
- TextDrawSetSelectable(Textdraw16, 1);
- TextDrawSetSelectable(Textdraw42, 1);
- TextDrawSetSelectable(Textdraw43, 1);
- TextDrawSetSelectable(Textdraw44, 1);
- TextDrawSetSelectable(Textdraw45, 1);
- TextDrawSetSelectable(TxdFechar, 1);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- Textdraw[0][i] = TextDrawCreate(191.000000, 148.000000, "Opcao1");
- TextDrawBackgroundColor(Textdraw[0][i], -16776961);
- TextDrawFont(Textdraw[0][i], 1);
- TextDrawLetterSize(Textdraw[0][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[0][i], -1);
- TextDrawSetOutline(Textdraw[0][i], 0);
- TextDrawSetProportional(Textdraw[0][i], 1);
- TextDrawSetShadow(Textdraw[0][i], 1);
- TextDrawUseBox(Textdraw[0][i], 1);
- TextDrawBoxColor(Textdraw[0][i], 0);
- TextDrawTextSize(Textdraw[0][i], 317.000000, 8.000000);
- Textdraw[1][i] = TextDrawCreate(191.000000, 158.000000, "Opcao2");
- TextDrawBackgroundColor(Textdraw[1][i], -16776961);
- TextDrawFont(Textdraw[1][i], 1);
- TextDrawLetterSize(Textdraw[1][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[1][i], -1);
- TextDrawSetOutline(Textdraw[1][i], 0);
- TextDrawSetProportional(Textdraw[1][i], 1);
- TextDrawSetShadow(Textdraw[1][i], 1);
- TextDrawUseBox(Textdraw[1][i], 1);
- TextDrawBoxColor(Textdraw[1][i], 0);
- TextDrawTextSize(Textdraw[1][i], 317.000000, 8.000000);
- Textdraw[2][i] = TextDrawCreate(191.000000, 168.000000, "Opcao3");
- TextDrawBackgroundColor(Textdraw[2][i], -16776961);
- TextDrawFont(Textdraw[2][i], 1);
- TextDrawLetterSize(Textdraw[2][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[2][i], -1);
- TextDrawSetOutline(Textdraw[2][i], 0);
- TextDrawSetProportional(Textdraw[2][i], 1);
- TextDrawSetShadow(Textdraw[2][i], 1);
- TextDrawUseBox(Textdraw[2][i], 1);
- TextDrawBoxColor(Textdraw[2][i], 0);
- TextDrawTextSize(Textdraw[2][i], 317.000000, 8.000000);
- Textdraw[3][i] = TextDrawCreate(191.000000, 178.000000, "Opcao4");
- TextDrawBackgroundColor(Textdraw[3][i], -16776961);
- TextDrawFont(Textdraw[3][i], 1);
- TextDrawLetterSize(Textdraw[3][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[3][i], -1);
- TextDrawSetOutline(Textdraw[3][i], 0);
- TextDrawSetProportional(Textdraw[3][i], 1);
- TextDrawSetShadow(Textdraw[3][i], 1);
- TextDrawUseBox(Textdraw[3][i], 1);
- TextDrawBoxColor(Textdraw[3][i], 0);
- TextDrawTextSize(Textdraw[3][i], 317.000000, 8.000000);
- Textdraw[4][i] = TextDrawCreate(191.000000, 188.000000, "Opcao5");
- TextDrawBackgroundColor(Textdraw[4][i], -16776961);
- TextDrawFont(Textdraw[4][i], 1);
- TextDrawLetterSize(Textdraw[4][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[4][i], -1);
- TextDrawSetOutline(Textdraw[4][i], 0);
- TextDrawSetProportional(Textdraw[4][i], 1);
- TextDrawSetShadow(Textdraw[4][i], 1);
- TextDrawUseBox(Textdraw[4][i], 1);
- TextDrawBoxColor(Textdraw[4][i], 0);
- TextDrawTextSize(Textdraw[4][i], 317.000000, 8.000000);
- Textdraw[5][i] = TextDrawCreate(191.000000, 198.000000, "Opcao6");
- TextDrawBackgroundColor(Textdraw[5][i], -16776961);
- TextDrawFont(Textdraw[5][i], 1);
- TextDrawLetterSize(Textdraw[5][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[5][i], -1);
- TextDrawSetOutline(Textdraw[5][i], 0);
- TextDrawSetProportional(Textdraw[5][i], 1);
- TextDrawSetShadow(Textdraw[5][i], 1);
- TextDrawUseBox(Textdraw[5][i], 1);
- TextDrawBoxColor(Textdraw[5][i], 0);
- TextDrawTextSize(Textdraw[5][i], 317.000000, 8.000000);
- Textdraw[6][i] = TextDrawCreate(191.000000, 208.000000, "Opcao7");
- TextDrawBackgroundColor(Textdraw[6][i], -16776961);
- TextDrawFont(Textdraw[6][i], 1);
- TextDrawLetterSize(Textdraw[6][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[6][i], -1);
- TextDrawSetOutline(Textdraw[6][i], 0);
- TextDrawSetProportional(Textdraw[6][i], 1);
- TextDrawSetShadow(Textdraw[6][i], 1);
- TextDrawUseBox(Textdraw[6][i], 1);
- TextDrawBoxColor(Textdraw[6][i], 0);
- TextDrawTextSize(Textdraw[6][i], 317.000000, 8.000000);
- Textdraw[7][i] = TextDrawCreate(191.000000, 218.000000, "Opcao8");
- TextDrawBackgroundColor(Textdraw[7][i], -16776961);
- TextDrawFont(Textdraw[7][i], 1);
- TextDrawLetterSize(Textdraw[7][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[7][i], -1);
- TextDrawSetOutline(Textdraw[7][i], 0);
- TextDrawSetProportional(Textdraw[7][i], 1);
- TextDrawSetShadow(Textdraw[7][i], 1);
- TextDrawUseBox(Textdraw[7][i], 1);
- TextDrawBoxColor(Textdraw[7][i], 0);
- TextDrawTextSize(Textdraw[7][i], 317.000000, 8.000000);
- Textdraw[8][i] = TextDrawCreate(191.000000, 227.000000, "Opcao9");
- TextDrawBackgroundColor(Textdraw[8][i], -16776961);
- TextDrawFont(Textdraw[8][i], 1);
- TextDrawLetterSize(Textdraw[8][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[8][i], -1);
- TextDrawSetOutline(Textdraw[8][i], 0);
- TextDrawSetProportional(Textdraw[8][i], 1);
- TextDrawSetShadow(Textdraw[8][i], 1);
- TextDrawUseBox(Textdraw[8][i], 1);
- TextDrawBoxColor(Textdraw[8][i], 0);
- TextDrawTextSize(Textdraw[8][i], 317.000000, 8.000000);
- Textdraw[9][i] = TextDrawCreate(191.000000, 236.000000, "Opcao10");
- TextDrawBackgroundColor(Textdraw[9][i], -16776961);
- TextDrawFont(Textdraw[9][i], 1);
- TextDrawLetterSize(Textdraw[9][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[9][i], -1);
- TextDrawSetOutline(Textdraw[9][i], 0);
- TextDrawSetProportional(Textdraw[9][i], 1);
- TextDrawSetShadow(Textdraw[9][i], 1);
- TextDrawUseBox(Textdraw[9][i], 1);
- TextDrawBoxColor(Textdraw[9][i], 0);
- TextDrawTextSize(Textdraw[9][i], 317.000000, 8.000000);
- Textdraw[10][i] = TextDrawCreate(191.000000, 246.000000, "Opcao11");
- TextDrawBackgroundColor(Textdraw[10][i], -16776961);
- TextDrawFont(Textdraw[10][i], 1);
- TextDrawLetterSize(Textdraw[10][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[10][i], -1);
- TextDrawSetOutline(Textdraw[10][i], 0);
- TextDrawSetProportional(Textdraw[10][i], 1);
- TextDrawSetShadow(Textdraw[10][i], 1);
- TextDrawUseBox(Textdraw[10][i], 1);
- TextDrawBoxColor(Textdraw[10][i], 0);
- TextDrawTextSize(Textdraw[10][i], 317.000000, 8.000000);
- Textdraw[11][i] = TextDrawCreate(191.000000, 255.000000, "Opcao12");
- TextDrawBackgroundColor(Textdraw[11][i], -16776961);
- TextDrawFont(Textdraw[11][i], 1);
- TextDrawLetterSize(Textdraw[11][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[11][i], -1);
- TextDrawSetOutline(Textdraw[11][i], 0);
- TextDrawSetProportional(Textdraw[11][i], 1);
- TextDrawSetShadow(Textdraw[11][i], 1);
- TextDrawUseBox(Textdraw[11][i], 1);
- TextDrawBoxColor(Textdraw[11][i], 0);
- TextDrawTextSize(Textdraw[11][i], 317.000000, 8.000000);
- Textdraw[12][i] = TextDrawCreate(320.000000, 148.000000, "Opcao13");
- TextDrawBackgroundColor(Textdraw[12][i], -16776961);
- TextDrawFont(Textdraw[12][i], 1);
- TextDrawLetterSize(Textdraw[12][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[12][i], -1);
- TextDrawSetOutline(Textdraw[12][i], 0);
- TextDrawSetProportional(Textdraw[12][i], 1);
- TextDrawSetShadow(Textdraw[12][i], 1);
- TextDrawUseBox(Textdraw[12][i], 1);
- TextDrawBoxColor(Textdraw[12][i], 0);
- TextDrawTextSize(Textdraw[12][i], 445.000000, 8.000000);
- Textdraw[13][i] = TextDrawCreate(320.000000, 158.000000, "Opcao14");
- TextDrawBackgroundColor(Textdraw[13][i], -16776961);
- TextDrawFont(Textdraw[13][i], 1);
- TextDrawLetterSize(Textdraw[13][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[13][i], -1);
- TextDrawSetOutline(Textdraw[13][i], 0);
- TextDrawSetProportional(Textdraw[13][i], 1);
- TextDrawSetShadow(Textdraw[13][i], 1);
- TextDrawUseBox(Textdraw[13][i], 1);
- TextDrawBoxColor(Textdraw[13][i], 0);
- TextDrawTextSize(Textdraw[13][i], 445.000000, 8.000000);
- Textdraw[14][i] = TextDrawCreate(320.000000, 168.000000, "Opcao15");
- TextDrawBackgroundColor(Textdraw[14][i], -16776961);
- TextDrawFont(Textdraw[14][i], 1);
- TextDrawLetterSize(Textdraw[14][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[14][i], -1);
- TextDrawSetOutline(Textdraw[14][i], 0);
- TextDrawSetProportional(Textdraw[14][i], 1);
- TextDrawSetShadow(Textdraw[14][i], 1);
- TextDrawUseBox(Textdraw[14][i], 1);
- TextDrawBoxColor(Textdraw[14][i], 0);
- TextDrawTextSize(Textdraw[14][i], 445.000000, 8.000000);
- Textdraw[15][i] = TextDrawCreate(320.000000, 178.000000, "Opcao16");
- TextDrawBackgroundColor(Textdraw[15][i], -16776961);
- TextDrawFont(Textdraw[15][i], 1);
- TextDrawLetterSize(Textdraw[15][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[15][i], -1);
- TextDrawSetOutline(Textdraw[15][i], 0);
- TextDrawSetProportional(Textdraw[15][i], 1);
- TextDrawSetShadow(Textdraw[15][i], 1);
- TextDrawUseBox(Textdraw[15][i], 1);
- TextDrawBoxColor(Textdraw[15][i], 0);
- TextDrawTextSize(Textdraw[15][i], 445.000000, 8.000000);
- Textdraw[16][i] = TextDrawCreate(320.000000, 188.000000, "Opcao17");
- TextDrawBackgroundColor(Textdraw[16][i], -16776961);
- TextDrawFont(Textdraw[16][i], 1);
- TextDrawLetterSize(Textdraw[16][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[16][i], -1);
- TextDrawSetOutline(Textdraw[16][i], 0);
- TextDrawSetProportional(Textdraw[16][i], 1);
- TextDrawSetShadow(Textdraw[16][i], 1);
- TextDrawUseBox(Textdraw[16][i], 1);
- TextDrawBoxColor(Textdraw[16][i], 0);
- TextDrawTextSize(Textdraw[16][i], 445.000000, 8.000000);
- Textdraw[17][i] = TextDrawCreate(320.000000, 198.000000, "Opcao18");
- TextDrawBackgroundColor(Textdraw[17][i], -16776961);
- TextDrawFont(Textdraw[17][i], 1);
- TextDrawLetterSize(Textdraw[17][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[17][i], -1);
- TextDrawSetOutline(Textdraw[17][i], 0);
- TextDrawSetProportional(Textdraw[17][i], 1);
- TextDrawSetShadow(Textdraw[17][i], 1);
- TextDrawUseBox(Textdraw[17][i], 1);
- TextDrawBoxColor(Textdraw[17][i], 0);
- TextDrawTextSize(Textdraw[17][i], 445.000000, 8.000000);
- Textdraw[18][i] = TextDrawCreate(320.000000, 208.000000, "Opcao19");
- TextDrawBackgroundColor(Textdraw[18][i], -16776961);
- TextDrawFont(Textdraw[18][i], 1);
- TextDrawLetterSize(Textdraw[18][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[18][i], -1);
- TextDrawSetOutline(Textdraw[18][i], 0);
- TextDrawSetProportional(Textdraw[18][i], 1);
- TextDrawSetShadow(Textdraw[18][i], 1);
- TextDrawUseBox(Textdraw[18][i], 1);
- TextDrawBoxColor(Textdraw[18][i], 0);
- TextDrawTextSize(Textdraw[18][i], 445.000000, 8.000000);
- Textdraw[19][i] = TextDrawCreate(320.000000, 218.000000, "Opcao20");
- TextDrawBackgroundColor(Textdraw[19][i], -16776961);
- TextDrawFont(Textdraw[19][i], 1);
- TextDrawLetterSize(Textdraw[19][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[19][i], -1);
- TextDrawSetOutline(Textdraw[19][i], 0);
- TextDrawSetProportional(Textdraw[19][i], 1);
- TextDrawSetShadow(Textdraw[19][i], 1);
- TextDrawUseBox(Textdraw[19][i], 1);
- TextDrawBoxColor(Textdraw[19][i], 0);
- TextDrawTextSize(Textdraw[19][i], 445.000000, 8.000000);
- Textdraw[20][i] = TextDrawCreate(320.000000, 228.000000, "Opcao21");
- TextDrawBackgroundColor(Textdraw[20][i], -16776961);
- TextDrawFont(Textdraw[20][i], 1);
- TextDrawLetterSize(Textdraw[20][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[20][i], -1);
- TextDrawSetOutline(Textdraw[20][i], 0);
- TextDrawSetProportional(Textdraw[20][i], 1);
- TextDrawSetShadow(Textdraw[20][i], 1);
- TextDrawUseBox(Textdraw[20][i], 1);
- TextDrawBoxColor(Textdraw[20][i], 0);
- TextDrawTextSize(Textdraw[20][i], 445.000000, 8.000000);
- Textdraw[21][i] = TextDrawCreate(320.000000, 237.000000, "Opcao22");
- TextDrawBackgroundColor(Textdraw[21][i], -16776961);
- TextDrawFont(Textdraw[21][i], 1);
- TextDrawLetterSize(Textdraw[21][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[21][i], -1);
- TextDrawSetOutline(Textdraw[21][i], 0);
- TextDrawSetProportional(Textdraw[21][i], 1);
- TextDrawSetShadow(Textdraw[21][i], 1);
- TextDrawUseBox(Textdraw[21][i], 1);
- TextDrawBoxColor(Textdraw[21][i], 0);
- TextDrawTextSize(Textdraw[21][i], 445.000000, 8.000000);
- Textdraw[22][i] = TextDrawCreate(320.000000, 246.000000, "Opcao23");
- TextDrawBackgroundColor(Textdraw[22][i], -16776961);
- TextDrawFont(Textdraw[22][i], 1);
- TextDrawLetterSize(Textdraw[22][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[22][i], -1);
- TextDrawSetOutline(Textdraw[22][i], 0);
- TextDrawSetProportional(Textdraw[22][i], 1);
- TextDrawSetShadow(Textdraw[22][i], 1);
- TextDrawUseBox(Textdraw[22][i], 1);
- TextDrawBoxColor(Textdraw[22][i], 0);
- TextDrawTextSize(Textdraw[22][i], 445.000000, 8.000000);
- Textdraw[23][i] = TextDrawCreate(320.000000, 255.000000, "Opcao24");
- TextDrawBackgroundColor(Textdraw[23][i], -16776961);
- TextDrawFont(Textdraw[23][i], 1);
- TextDrawLetterSize(Textdraw[23][i], 0.230000, 0.899999);
- TextDrawColor(Textdraw[23][i], -1);
- TextDrawSetOutline(Textdraw[23][i], 0);
- TextDrawSetProportional(Textdraw[23][i], 1);
- TextDrawSetShadow(Textdraw[23][i], 1);
- TextDrawUseBox(Textdraw[23][i], 1);
- TextDrawBoxColor(Textdraw[23][i], 0);
- TextDrawTextSize(Textdraw[23][i], 445.000000, 8.000000);
- TextDrawSetSelectable(Textdraw[0][i], 1);
- TextDrawSetSelectable(Textdraw[1][i], 1);
- TextDrawSetSelectable(Textdraw[2][i], 1);
- TextDrawSetSelectable(Textdraw[3][i], 1);
- TextDrawSetSelectable(Textdraw[4][i], 1);
- TextDrawSetSelectable(Textdraw[5][i], 1);
- TextDrawSetSelectable(Textdraw[6][i], 1);
- TextDrawSetSelectable(Textdraw[7][i], 1);
- TextDrawSetSelectable(Textdraw[8][i], 1);
- TextDrawSetSelectable(Textdraw[9][i], 1);
- TextDrawSetSelectable(Textdraw[10][i], 1);
- TextDrawSetSelectable(Textdraw[11][i], 1);
- TextDrawSetSelectable(Textdraw[12][i], 1);
- TextDrawSetSelectable(Textdraw[13][i], 1);
- TextDrawSetSelectable(Textdraw[14][i], 1);
- TextDrawSetSelectable(Textdraw[15][i], 1);
- TextDrawSetSelectable(Textdraw[16][i], 1);
- TextDrawSetSelectable(Textdraw[17][i], 1);
- TextDrawSetSelectable(Textdraw[18][i], 1);
- TextDrawSetSelectable(Textdraw[19][i], 1);
- TextDrawSetSelectable(Textdraw[20][i], 1);
- TextDrawSetSelectable(Textdraw[21][i], 1);
- TextDrawSetSelectable(Textdraw[22][i], 1);
- TextDrawSetSelectable(Textdraw[23][i], 1);
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, Textdraw0);
- TextDrawShowForPlayer(i, Textdraw1);
- TextDrawShowForPlayer(i, Textdraw2);
- TextDrawShowForPlayer(i, Textdraw3);
- TextDrawShowForPlayer(i, Textdraw4);
- TextDrawShowForPlayer(i, Textdraw5);
- TextDrawShowForPlayer(i, Textdraw6);
- TextDrawShowForPlayer(i, TxdFechar);
- TextDrawShowForPlayer(i, Textdraw8);
- TextDrawShowForPlayer(i, Textdraw9);
- TextDrawShowForPlayer(i, Textdraw10);
- TextDrawShowForPlayer(i, Textdraw11);
- TextDrawShowForPlayer(i, Textdraw12);
- TextDrawShowForPlayer(i, Textdraw13);
- TextDrawShowForPlayer(i, Textdraw14);
- TextDrawShowForPlayer(i, Textdraw15);
- TextDrawShowForPlayer(i, Textdraw16);
- TextDrawShowForPlayer(i, Textdraw[0][i]);
- TextDrawShowForPlayer(i, Textdraw[1][i]);
- TextDrawShowForPlayer(i, Textdraw[2][i]);
- TextDrawShowForPlayer(i, Textdraw[3][i]);
- TextDrawShowForPlayer(i, Textdraw[4][i]);
- TextDrawShowForPlayer(i, Textdraw[5][i]);
- TextDrawShowForPlayer(i, Textdraw[6][i]);
- TextDrawShowForPlayer(i, Textdraw[7][i]);
- TextDrawShowForPlayer(i, Textdraw[8][i]);
- TextDrawShowForPlayer(i, Textdraw[9][i]);
- TextDrawShowForPlayer(i, Textdraw[10][i]);
- TextDrawShowForPlayer(i, Textdraw[11][i]);
- TextDrawShowForPlayer(i, Textdraw[12][i]);
- TextDrawShowForPlayer(i, Textdraw[13][i]);
- TextDrawShowForPlayer(i, Textdraw[14][i]);
- TextDrawShowForPlayer(i, Textdraw[15][i]);
- TextDrawShowForPlayer(i, Textdraw[16][i]);
- TextDrawShowForPlayer(i, Textdraw[17][i]);
- TextDrawShowForPlayer(i, Textdraw[18][i]);
- TextDrawShowForPlayer(i, Textdraw[19][i]);
- TextDrawShowForPlayer(i, Textdraw[20][i]);
- TextDrawShowForPlayer(i, Textdraw[21][i]);
- TextDrawShowForPlayer(i, Textdraw[22][i]);
- TextDrawShowForPlayer(i, Textdraw[23][i]);
- TextDrawShowForPlayer(i, Textdraw41);
- TextDrawShowForPlayer(i, Textdraw42);
- TextDrawShowForPlayer(i, Textdraw43);
- TextDrawShowForPlayer(i, Textdraw44);
- TextDrawShowForPlayer(i, Textdraw45);
- TextDrawShowForPlayer(i, Textdraw46);
- }
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(Textdraw9);
- TextDrawHideForAll(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawHideForAll(Textdraw2);
- TextDrawHideForAll(Textdraw3);
- TextDrawHideForAll(Textdraw4);
- TextDrawHideForAll(Textdraw5);
- TextDrawHideForAll(Textdraw6);
- TextDrawHideForAll(TxdFechar);
- TextDrawHideForAll(Textdraw8);
- TextDrawHideForAll(Textdraw10);
- TextDrawHideForAll(Textdraw11);
- TextDrawHideForAll(Textdraw12);
- TextDrawHideForAll(Textdraw13);
- TextDrawHideForAll(Textdraw14);
- TextDrawHideForAll(Textdraw15);
- TextDrawHideForAll(Textdraw16);
- TextDrawHideForAll(Textdraw41);
- TextDrawHideForAll(Textdraw42);
- TextDrawHideForAll(Textdraw43);
- TextDrawHideForAll(Textdraw44);
- TextDrawHideForAll(Textdraw45);
- TextDrawDestroy(Textdraw9);
- TextDrawDestroy(Textdraw0);
- TextDrawDestroy(Textdraw1);
- TextDrawDestroy(Textdraw2);
- TextDrawDestroy(Textdraw3);
- TextDrawDestroy(Textdraw4);
- TextDrawDestroy(Textdraw5);
- TextDrawDestroy(Textdraw6);
- TextDrawDestroy(TxdFechar);
- TextDrawDestroy(Textdraw8);
- TextDrawDestroy(Textdraw10);
- TextDrawDestroy(Textdraw11);
- TextDrawDestroy(Textdraw12);
- TextDrawDestroy(Textdraw13);
- TextDrawDestroy(Textdraw14);
- TextDrawDestroy(Textdraw15);
- TextDrawDestroy(Textdraw16);
- TextDrawDestroy(Textdraw41);
- TextDrawDestroy(Textdraw42);
- TextDrawDestroy(Textdraw43);
- TextDrawDestroy(Textdraw44);
- TextDrawDestroy(Textdraw45);
- for(new playerid; playerid < MAX_PLAYERS; playerid ++)
- {
- TextDrawHideForAll(Textdraw[0][playerid]);
- TextDrawHideForAll(Textdraw[1][playerid]);
- TextDrawHideForAll(Textdraw[2][playerid]);
- TextDrawHideForAll(Textdraw[3][playerid]);
- TextDrawHideForAll(Textdraw[4][playerid]);
- TextDrawHideForAll(Textdraw[5][playerid]);
- TextDrawHideForAll(Textdraw[6][playerid]);
- TextDrawHideForAll(Textdraw[7][playerid]);
- TextDrawHideForAll(Textdraw[8][playerid]);
- TextDrawHideForAll(Textdraw[9][playerid]);
- TextDrawHideForAll(Textdraw[10][playerid]);
- TextDrawHideForAll(Textdraw[11][playerid]);
- TextDrawHideForAll(Textdraw[12][playerid]);
- TextDrawHideForAll(Textdraw[13][playerid]);
- TextDrawHideForAll(Textdraw[14][playerid]);
- TextDrawHideForAll(Textdraw[15][playerid]);
- TextDrawHideForAll(Textdraw[16][playerid]);
- TextDrawHideForAll(Textdraw[17][playerid]);
- TextDrawHideForAll(Textdraw[18][playerid]);
- TextDrawHideForAll(Textdraw[19][playerid]);
- TextDrawHideForAll(Textdraw[20][playerid]);
- TextDrawHideForAll(Textdraw[21][playerid]);
- TextDrawHideForAll(Textdraw[22][playerid]);
- TextDrawHideForAll(Textdraw[23][playerid]);
- TextDrawDestroy(Textdraw[0][playerid]);
- TextDrawDestroy(Textdraw[1][playerid]);
- TextDrawDestroy(Textdraw[2][playerid]);
- TextDrawDestroy(Textdraw[3][playerid]);
- TextDrawDestroy(Textdraw[4][playerid]);
- TextDrawDestroy(Textdraw[5][playerid]);
- TextDrawDestroy(Textdraw[6][playerid]);
- TextDrawDestroy(Textdraw[7][playerid]);
- TextDrawDestroy(Textdraw[8][playerid]);
- TextDrawDestroy(Textdraw[9][playerid]);
- TextDrawDestroy(Textdraw[10][playerid]);
- TextDrawDestroy(Textdraw[11][playerid]);
- TextDrawDestroy(Textdraw[12][playerid]);
- TextDrawDestroy(Textdraw[13][playerid]);
- TextDrawDestroy(Textdraw[14][playerid]);
- TextDrawDestroy(Textdraw[15][playerid]);
- TextDrawDestroy(Textdraw[16][playerid]);
- TextDrawDestroy(Textdraw[17][playerid]);
- TextDrawDestroy(Textdraw[18][playerid]);
- TextDrawDestroy(Textdraw[19][playerid]);
- TextDrawDestroy(Textdraw[20][playerid]);
- TextDrawDestroy(Textdraw[21][playerid]);
- TextDrawDestroy(Textdraw[22][playerid]);
- TextDrawDestroy(Textdraw[23][playerid]);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- /* TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, TxdFechar);
- TextDrawShowForPlayer(playerid, Textdraw8);
- TextDrawShowForPlayer(playerid, Textdraw9);
- TextDrawShowForPlayer(playerid, Textdraw10);
- TextDrawShowForPlayer(playerid, Textdraw11);
- TextDrawShowForPlayer(playerid, Textdraw12);
- TextDrawShowForPlayer(playerid, Textdraw13);
- TextDrawShowForPlayer(playerid, Textdraw14);
- TextDrawShowForPlayer(playerid, Textdraw15);
- TextDrawShowForPlayer(playerid, Textdraw16);
- TextDrawShowForPlayer(playerid, Textdraw[0][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[1][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[2][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[3][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[4][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[5][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[6][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[7][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[8][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[9][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[10][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[11][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[12][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[13][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[14][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[15][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[16][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[17][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[18][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[19][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[20][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[21][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[22][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[23][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw41);
- TextDrawShowForPlayer(playerid, Textdraw42);
- TextDrawShowForPlayer(playerid, Textdraw43);
- TextDrawShowForPlayer(playerid, Textdraw44);
- TextDrawShowForPlayer(playerid, Textdraw45);
- TextDrawShowForPlayer(playerid, Textdraw46); */
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- //new Str[128];
- //format(Str, sizeof(Str), "", playerid);
- if(clickedid == Textdraw10) return infoEstiloAtual[playerid] = 0, AtualizarPText(playerid); // Rock
- if(clickedid == Textdraw11) return infoEstiloAtual[playerid] = 1, AtualizarPText(playerid); // Hard
- if(clickedid == Textdraw12) return infoEstiloAtual[playerid] = 2, AtualizarPText(playerid); // Death
- if(clickedid == Textdraw13) return infoEstiloAtual[playerid] = 3, AtualizarPText(playerid); // Vocaloid
- if(clickedid == Textdraw14) return infoEstiloAtual[playerid] = 4, AtualizarPText(playerid); // Funk
- if(clickedid == Textdraw15) return infoEstiloAtual[playerid] = 5, AtualizarPText(playerid); // Rap
- if(clickedid == Textdraw16) return infoEstiloAtual[playerid] = 6, AtualizarPText(playerid); // Pop
- Selecionou[playerid] = 255;
- if(clickedid == TxdFechar)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "Fechado.");
- EsconderTexts(playerid);
- return 1;
- }
- if(clickedid == Textdraw42) ParaTodos[playerid] = true;
- if(clickedid == Textdraw43) ParaTodos[playerid] = false;
- if(clickedid == Textdraw44) StopAudioStreamForPlayer(playerid);
- if(clickedid == Textdraw[0][playerid])
- {
- //format(Str,sizeof(Str),"%d", name);
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- Selecionou[playerid] = 0;
- //return 1;
- }
- if(clickedid == Textdraw[1][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- Selecionou[playerid] = 1;
- //return 1;
- }
- if(clickedid == Textdraw[2][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 2;
- //return 1;
- }
- if(clickedid == Textdraw[3][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 3;
- //return 1;
- }
- if(clickedid == Textdraw[4][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 4;
- //return 1;
- }
- if(clickedid == Textdraw[5][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 5;
- //return 1;
- }
- if(clickedid == Textdraw[6][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 6;
- //return 1;
- }
- if(clickedid == Textdraw[7][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 7;
- //return 1;
- }
- if(clickedid == Textdraw[8][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 8;
- //return 1;
- }
- if(clickedid == Textdraw[9][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 9;
- // return 1;
- }
- if(clickedid == Textdraw[10][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 10;
- //return 1;
- }
- if(clickedid == Textdraw[11][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 11;
- //return 1;
- }
- if(clickedid == Textdraw[12][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 12;
- //return 1;
- }
- if(clickedid == Textdraw[13][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 13;
- //return 1;
- }
- if(clickedid == Textdraw[14][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 14;
- //return 1;
- }
- if(clickedid == Textdraw[15][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 15;
- //return 1;
- }
- if(clickedid == Textdraw[16][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 16;
- //return 1;
- }
- if(clickedid == Textdraw[17][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 17;
- //return 1;
- }
- if(clickedid == Textdraw[18][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 18;
- //return 1;
- }
- if(clickedid == Textdraw[19][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 19;
- //return 1;
- }
- if(clickedid == Textdraw[20][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 20;
- //return 1;
- }
- if(clickedid == Textdraw[21][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 21;
- //return 1;
- }
- if(clickedid == Textdraw[22][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 22;
- //return 1;
- }
- if(clickedid == Textdraw[23][playerid])
- {
- //SendClientMessage(playerid, 0xFFFFFFAA, "Você escolheu alguma opção");
- //EsconderTexts(playerid);
- Selecionou[playerid] = 23;
- //return 1;
- }
- new String[128];
- if(ParaTodos[playerid] == false) PlayAudioStreamForPlayer(playerid, urlArray[infoEstiloAtual[playerid]][Selecionou[playerid]]);
- else
- {
- printf("%s tocou a musica %s para todos", playerid, urlArray[infoEstiloAtual[playerid]][Selecionou[playerid]]);
- for(new x; x < MAX_PLAYERS; x ++)
- {
- if(IsPlayerConnected(x))
- {
- PlayAudioStreamForPlayer(x, urlArray[infoEstiloAtual[playerid]][Selecionou[playerid]]);
- }
- }
- }
- format(String,sizeof(String),"Ouvindo agora:{FFFFFF} %s", nameArray[infoEstiloAtual[playerid]][Selecionou[playerid]]);
- SendClientMessage(playerid, 0xFF0000AA, String); // Vermeiu
- //Debug
- //printf("%s",urlArray[infoEstiloAtual[playerid]][Selecionou[playerid]]);
- //printf("%s",nameArray[infoEstiloAtual[playerid]][Selecionou[playerid]]);
- //SendClientMessageToAll(-1, "[Kz DEBUG]: Função 1 executada.");
- return 1;
- }
- stock MostrarTexts(playerid)
- {
- TextDrawShowForPlayer(playerid, Textdraw9);
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, TxdFechar);
- TextDrawShowForPlayer(playerid, Textdraw8);
- TextDrawShowForPlayer(playerid, Textdraw10);
- TextDrawShowForPlayer(playerid, Textdraw11);
- TextDrawShowForPlayer(playerid, Textdraw12);
- TextDrawShowForPlayer(playerid, Textdraw13);
- TextDrawShowForPlayer(playerid, Textdraw14);
- TextDrawShowForPlayer(playerid, Textdraw15);
- TextDrawShowForPlayer(playerid, Textdraw16);
- TextDrawShowForPlayer(playerid, Textdraw[0][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[1][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[2][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[3][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[4][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[5][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[6][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[7][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[8][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[9][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[10][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[11][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[12][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[13][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[14][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[15][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[16][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[17][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[18][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[19][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[20][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[21][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[22][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw[23][playerid]);
- TextDrawShowForPlayer(playerid, Textdraw41);
- TextDrawShowForPlayer(playerid, Textdraw42);
- TextDrawShowForPlayer(playerid, Textdraw43);
- TextDrawShowForPlayer(playerid, Textdraw44);
- TextDrawShowForPlayer(playerid, Textdraw45);
- return 1;
- }
- stock EsconderTexts(playerid)
- {
- TextDrawHideForPlayer(playerid, Textdraw9);
- TextDrawHideForPlayer(playerid, Textdraw0);
- TextDrawHideForPlayer(playerid, Textdraw1);
- TextDrawHideForPlayer(playerid, Textdraw2);
- TextDrawHideForPlayer(playerid, Textdraw3);
- TextDrawHideForPlayer(playerid, Textdraw4);
- TextDrawHideForPlayer(playerid, Textdraw5);
- TextDrawHideForPlayer(playerid, Textdraw6);
- TextDrawHideForPlayer(playerid, TxdFechar);
- TextDrawHideForPlayer(playerid, Textdraw8);
- TextDrawHideForPlayer(playerid, Textdraw10);
- TextDrawHideForPlayer(playerid, Textdraw11);
- TextDrawHideForPlayer(playerid, Textdraw12);
- TextDrawHideForPlayer(playerid, Textdraw13);
- TextDrawHideForPlayer(playerid, Textdraw14);
- TextDrawHideForPlayer(playerid, Textdraw15);
- TextDrawHideForPlayer(playerid, Textdraw16);
- TextDrawHideForPlayer(playerid, Textdraw[0][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[1][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[2][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[3][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[4][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[5][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[6][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[7][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[8][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[9][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[10][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[11][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[12][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[13][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[14][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[15][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[16][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[17][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[18][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[19][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[20][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[21][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[22][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw[23][playerid]);
- TextDrawHideForPlayer(playerid, Textdraw41);
- TextDrawHideForPlayer(playerid, Textdraw42);
- TextDrawHideForPlayer(playerid, Textdraw43);
- TextDrawHideForPlayer(playerid, Textdraw44);
- TextDrawHideForPlayer(playerid, Textdraw45);
- CancelSelectTextDraw(playerid);
- return 1;
- }
- stock AtualizarPText(playerid)
- {
- /*
- IDs:
- 1 Rock
- 2 Hardstyle
- 3 Trance
- 4 Vocaloid
- 5 Funk
- 6 Rap
- 7 Pop
- */
- switch(infoEstiloAtual[playerid])
- {
- case 0: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[0][x]);
- case 1: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[1][x]);
- case 2: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[2][x]);
- case 3: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[3][x]);
- case 4: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[4][x]);
- case 5: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[5][x]);
- case 6: for(new x; x < MAX_MUSICS; x ++) TextDrawSetString(Textdraw[x][playerid], nameArray[6][x]);
- default: EsconderTexts(playerid);
- }
- for(new x; x < MAX_MUSICS; x ++) TextDrawShowForPlayer(playerid, Textdraw[x][playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement