Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ Includes ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- #include <a_samp>
- #define FILTERSCRIPT
- #include <zcmd>
- //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ Dialog's ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- #define COR_RHAY 0x00FF00FF
- //MENU
- #define zMENU 800
- //ACESSORIOS
- #define AC 799
- #define AC_1 801
- #define AC_2 802
- #define AC_3 803
- #define AC_4 804
- //EFEITOS
- #define DIALOG_EFEITOS 805
- //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" [FS] zAccessories - v1.0");
- print("--------------------------------------\n");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- //MENU
- if(dialogid == zMENU)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, AC, DIALOG_STYLE_LIST, " ..: Acessórios :.. ", "Acessórios [PAGINA 1]\nAcessórios [PAGINA 2]\nAcessórios [PAGINA 3]\nAcessórios [PAGINA 4]\n{FF0000}Nenhum acessório (Remover)", "Selecionar", "Fechar");
- }
- else if(listitem == 1)
- {
- ShowPlayerDialog(playerid,DIALOG_EFEITOS,DIALOG_STYLE_LIST,"Escolha um efeito:","{FF0000}Nenhum efeito (Remover)\nFogo\nFumaça\nChuveiro\nAbdução\nEstrelas\nÁgua","Selecionar","Voltar");
- }
- }
- return 1;
- }
- //EFEITOS
- if(dialogid == DIALOG_EFEITOS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,2))
- {
- RemovePlayerAttachedObject(playerid,2);
- SendClientMessage(playerid, COR_RHAY, "[INFO]: Efeito removido");
- }
- }
- if(listitem == 1)
- {
- SetPlayerAttachedObject(playerid,2, 18690, 1, -0.8, 0.0, -0.3, 0.0, 87.0, 90.0);
- }
- if(listitem == 2)
- {
- SetPlayerAttachedObject(playerid,2, 18714, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 3)
- {
- SetPlayerAttachedObject(playerid,2, 18720, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 4)
- {
- SetPlayerAttachedObject(playerid,2, 18721, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 5)
- {
- SetPlayerAttachedObject(playerid,2, 18728, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 6)
- {
- SetPlayerAttachedObject(playerid,2, 18742, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- }
- else
- {
- ShowPlayerDialog(playerid, zMENU, DIALOG_STYLE_LIST, " ..: Menu :.. ", "Acessórios\nEfeitos", "Selecionar", "Fechar");
- }
- }
- //ACESSORIOS
- if(dialogid == AC)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, AC_1, DIALOG_STYLE_LIST, "Acessórios [PAGINA 1]", "Fantasia de tartaruga\nFantasia de bomba de gasolina\nBola na cabeça\nTelevisão na cabeça\nMáscara de caveira\nColt M4 nas costas\nEspada Katana nas costas\nExtintor de incêndio nas costas\nParquedas (Mochila)\nExplosivo (Homem Bomba)\nBandeira verde\nParaquedas aberto\nClarão (Hydra Flare)\nDildo na frente\nDildo atrás\nCoração no peito", "Selecionar", "Fechar");
- }
- else if(listitem == 1)
- {
- ShowPlayerDialog(playerid, AC_2, DIALOG_STYLE_LIST, "Acessórios [PAGINA 2]", "Fantasia de vaca\nBola de basquete na cabeça\nPênis no skin\nFantasia de tubarão\nCaixa fumegando\nDinamite\nChapéu modelo 1\nChapéu modelo 2\nChapéu modelo 3\nChapéu modelo 4\nAparelho de som\nSeta de destaque\nChapéu de cone\nPizza na mão\nProtetor solar\nCelular na mão\nCubo na cabeça", "Selecionar", "Fechar");
- }
- else if(listitem == 2)
- {
- ShowPlayerDialog(playerid, AC_3,DIALOG_STYLE_LIST,"Acessórios [PAGINA 3]","Dado na cabeça\nÁgua viva na cabeça 1\nÁgua viva na cabeça 2\nCastelo de areia na cabeça\nAeromodelo na cabeça\nCarrinho na cabeça\nHamburguer na cabeça\nCabeça de veado morto\nCorrente no pescoço\nColete no corpo\nSniper atrás\nBazuca atrás\nGarrafão verde\nTaça de vinho\nHambúrguer na mão\nVassoura na mão\nFantasia de hipopótamo\nOstra no pescoço.","Selecionar","Fechar");
- }
- else if(listitem == 3)
- {
- ShowPlayerDialog(playerid,AC_4,DIALOG_STYLE_LIST,"Acessórios [PAGINA 3]","Cabeça de pião\nCesto de lixo\nPoste branco\nLuz branca\nSoda machine\nTampa de caldeirão\nPedra\nArco na cintura\nOrelhão\nCaçamba de lixo\nPoste de três cores\nEstátua de um leão\nGorro do Papai Noel","Selecionar","Fechar");
- }
- else if(listitem == 4)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,1))
- {
- RemovePlayerAttachedObject(playerid,1);
- SendClientMessage(playerid, COR_RHAY, "[INFO]: Acessório removido");
- }
- }
- } return 1;
- }
- if(dialogid == AC_1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerAttachedObject(playerid,1, 1609, 1, 0.0, 0.0, 0.0, 90.0, 0.0, -90.0);
- }
- if(listitem == 1)
- {
- SetPlayerAttachedObject(playerid,1, 1244, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 2)
- {
- SetPlayerAttachedObject(playerid,1, 1598, 2, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0);
- }
- if(listitem == 3)
- {
- SetPlayerAttachedObject(playerid,1, 1518, 2, 0.2, 0.0, -0.04, 0.0, 100.0, 180.0);
- }
- if(listitem == 4)
- {
- SetPlayerAttachedObject(playerid,1, 1254, 2, 0.1, 0.01, 0.0, 0.0, 90.0, 0.0);
- }
- if(listitem == 5)
- {
- SetPlayerAttachedObject(playerid,1, 356, 1, -0.2, -0.15, 0.0, 0.0, 24.0, 0.0);
- }
- if(listitem == 6)
- {
- SetPlayerAttachedObject(playerid,1, 3028, 1, 0.3, -0.15, -0.03, 0.0, 120, 0.0);
- }
- if(listitem == 7)
- {
- SetPlayerAttachedObject(playerid,1, 366, 1, 0.4, -0.25, 0.0, 0.0, 160.0, 0.0);
- }
- if(listitem == 8)
- {
- SetPlayerAttachedObject(playerid,1, 371, 1, 0.0, -0.175, 0.0, 0.0, 90.0, 0.0);
- }
- if(listitem == 9)
- {
- SetPlayerAttachedObject(playerid,1, 1252, 1, 0.1, -0.2, 0.0, 0.0, 90.0, 0.0);
- }
- if(listitem == 10)
- {
- SetPlayerAttachedObject(playerid,1, 2914, 1, 0.0, 0.0, 0.17, 180.0, 90.0, 0.0);
- }
- if(listitem == 11)
- {
- SetPlayerAttachedObject(playerid,1, 3131, 1, -0.2, 0.15, 0.0, 0.0, 90.0, 0.0);
- }
- if(listitem == 12)
- {
- SetPlayerAttachedObject(playerid,1, 354, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- }
- if(listitem == 14)
- {
- SetPlayerAttachedObject(playerid,1, 321, 1, -0.24, 0.6, -0.07, 90.0, 0.0, 0.0);
- }
- if(listitem == 13)
- {
- SetPlayerAttachedObject(playerid,1, 323, 1, -0.7, -0.2, 0.0, -90.0, 50.0, 0.0);
- }
- if(listitem == 15)
- {
- SetPlayerAttachedObject(playerid,1, 1240, 1, 0.15, 0.17, 0.06, 0.0, 90.0, 0.0);
- }
- }
- return 1;
- }
- if(dialogid == AC_2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerAttachedObject(playerid,1 ,16442 , 1, 0, 0, 0, 90, 90, 0);
- }
- if(listitem == 1)
- {
- SetPlayerAttachedObject(playerid,1 ,2114 , 2, 0.1, 0, 0, 0, 0, 0);
- }
- if(listitem == 2)
- {
- SetPlayerAttachedObject(playerid,1 ,322 , 1, -0.1, 0.2, -0.04, 90, 180, 0);
- }
- if(listitem == 3)
- {
- SetPlayerAttachedObject(playerid,1 ,1608 , 1, 0, 0, 0, 0, 90, 0);
- }
- if(listitem == 4)
- {
- SetPlayerAttachedObject(playerid,1 ,2780 , 2, 0, 0, 0, 0, 90, 180);
- }
- if(listitem == 5)
- {
- SetPlayerAttachedObject(playerid,1, 1654, 1,0.1,0.20,0.0,180.0,100.0,0.0);
- }
- if(listitem == 6)
- {
- SetPlayerAttachedObject(playerid,1 ,2054 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);
- }
- if(listitem == 7)
- {
- SetPlayerAttachedObject(playerid,1 ,2053 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);
- }
- if(listitem == 8)
- {
- SetPlayerAttachedObject(playerid,1 ,2052 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);
- }
- if(listitem == 9)
- {
- SetPlayerAttachedObject(playerid,1 ,1213 ,2 ,0.16 ,0 ,0 ,0 ,90 ,0);
- }
- if(listitem == 10)
- {
- SetPlayerAttachedObject(playerid,1 ,2226 ,5 ,0.4 ,0.04 ,0, 0 ,-90 ,30);
- }
- if(listitem == 11)
- {
- SetPlayerAttachedObject(playerid,1 ,1318 ,15 ,0 ,0 ,1 ,0 ,0 ,0);
- }
- if(listitem == 12)
- {
- SetPlayerAttachedObject(playerid,1 ,1238 ,2 ,0.4 ,-0.02 ,0.0001 ,0 ,90 ,0);
- }
- if(listitem == 13)
- {
- SetPlayerAttachedObject(playerid,1 ,1582 ,5 ,0 ,0 ,-0.16 ,50 ,0 ,10);
- }
- if(listitem == 14)
- {
- SetPlayerAttachedObject(playerid,1 ,1644 ,5 ,0.1 ,0.08 ,0 ,55 ,0 ,180);
- }
- if(listitem == 15)
- {
- SetPlayerAttachedObject(playerid,1 ,330 ,5 ,0.15 ,0.01 ,0 ,0 ,180 ,0);
- }
- if(listitem == 16)
- {
- SetPlayerAttachedObject(playerid,1 ,330 ,5 ,0.15 ,0.01 ,0 ,0 ,180 ,0);
- }
- }
- return 1;
- }
- if(dialogid == AC_3)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerAttachedObject(playerid,1 ,1852 ,2 ,0.1 ,0 ,-0.01 ,0 ,15 ,0);
- }
- if(listitem == 1)
- {
- SetPlayerAttachedObject(playerid,1 ,1603 ,2 ,0.3 ,0 ,0 ,0 ,90 ,0);
- }
- if(listitem == 2)
- {
- SetPlayerAttachedObject(playerid,1 ,1602 ,2 ,0.2 ,0 ,0 ,0 ,90 ,0);
- }
- if(listitem == 3)
- {
- SetPlayerAttachedObject(playerid,1 ,1610 ,2 ,0.08 ,0 ,0 ,0 ,90 ,0);
- }
- if(listitem == 4)
- {
- SetPlayerAttachedObject(playerid,1 ,2470 ,2 ,0.1 ,0 ,-0.07 ,35 ,80 ,180);
- }
- if(listitem == 5)
- {
- SetPlayerAttachedObject(playerid,1 ,2485 ,2 ,0.1 ,0 ,0.05 ,40 ,80 ,180);
- }
- if(listitem == 6)
- {
- SetPlayerAttachedObject(playerid,1 ,2880 ,2 ,0.13 ,-0.1 ,0 ,0 ,10 ,10);
- }
- if(listitem == 7)
- {
- SetPlayerAttachedObject(playerid,1 ,1736 ,2 ,0 ,0 ,0 ,0 ,90 ,180);
- }
- if(listitem == 8)
- {
- SetPlayerAttachedObject(playerid,1 ,2680 ,15 ,-0.06 ,0 ,0.15 ,100 ,0 ,190);
- }
- if(listitem == 9)
- {
- SetPlayerAttachedObject(playerid,1 ,373 , 1, 0.33, -0.029, -0.15, 65, 25, 35);
- }
- if(listitem == 10)
- {
- SetPlayerAttachedObject(playerid,1 ,2036 ,15 ,0 ,0.13 ,-0.2 ,90 ,0 ,-50);
- }
- if(listitem == 11)
- {
- SetPlayerAttachedObject(playerid,1 ,359 ,15 ,-0.02 ,0.08 ,-0.3 ,0 ,50 ,-10);
- }
- if(listitem == 12)
- {
- SetPlayerAttachedObject(playerid,1 ,1951 ,5 ,0.13 ,0.09 ,0.05 ,-30 ,190 ,0);
- }
- if(listitem == 13)
- {
- SetPlayerAttachedObject(playerid,1 ,1667 ,6 ,0.09 ,0.04 ,0.07 ,170 ,-170 ,0);
- }
- if(listitem == 14)
- {
- SetPlayerAttachedObject(playerid,1 ,2703 ,5 ,0.1 ,0.05 ,0 ,0 ,0 ,0);
- }
- if(listitem == 15)
- {
- SetPlayerAttachedObject(playerid,1 ,2712 ,5 ,0.1 ,-0.05 ,-0.2 ,0 ,-50 ,10);
- }
- if(listitem == 16)
- {
- SetPlayerAttachedObject(playerid,1 ,1371 , 15, 0, 0, -0.1);
- }
- if(listitem == 17)
- {
- SetPlayerAttachedObject(playerid,1 ,953 ,15 ,0 ,-0.1 ,0.2 ,0 ,0 ,0);
- }
- }
- return 1;
- }
- if(dialogid == AC_4)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerAttachedObject(playerid,1, 1243, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 1)
- {
- SetPlayerAttachedObject(playerid,1, 1235, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 2)
- {
- SetPlayerAttachedObject(playerid,1, 1223, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 3)
- {
- SetPlayerAttachedObject(playerid,1, 1215, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 4)
- {
- SetPlayerAttachedObject(playerid,1, 1209 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 5)
- {
- SetPlayerAttachedObject(playerid,1, 1301 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 6)
- {
- SetPlayerAttachedObject(playerid,1, 1305 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 7)
- {
- SetPlayerAttachedObject(playerid,1, 1316 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 8)
- {
- SetPlayerAttachedObject(playerid,1, 1346 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 9)
- {
- SetPlayerAttachedObject(playerid,1, 1358 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 10)
- {
- SetPlayerAttachedObject(playerid,1, 3472 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 11)
- {
- SetPlayerAttachedObject(playerid,1, 3471 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
- }
- if(listitem == 12)
- {
- SetPlayerAttachedObject(playerid, 1, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
- } //Gorro do Papai Noel
- }
- }
- return 1;
- }
- CMD:menu(playerid)
- {
- ShowPlayerDialog(playerid, zMENU, DIALOG_STYLE_LIST, " ..: Menu :.. ", "Acessórios\nEfeitos", "Selecionar", "Fechar");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement