Advertisement
Rhay_Fither

Codigo Util...

Sep 9th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 12.59 KB | None | 0 0
  1. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ Includes ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2.  
  3. #include <a_samp>
  4. #define FILTERSCRIPT
  5. #include <zcmd>
  6.  
  7. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ Dialog's ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  8. #define COR_RHAY 0x00FF00FF
  9. //MENU
  10. #define zMENU                                                       800
  11. //ACESSORIOS
  12. #define AC                                                          799
  13. #define AC_1                                                        801
  14. #define AC_2                                                        802
  15. #define AC_3                                                        803
  16. #define AC_4                                                        804
  17. //EFEITOS
  18. #define DIALOG_EFEITOS                                              805
  19. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  20. public OnFilterScriptInit()
  21. {
  22.     print("\n--------------------------------------");
  23.     print(" [FS] zAccessories - v1.0");
  24.     print("--------------------------------------\n");
  25.     return 1;
  26. }
  27.  
  28.  
  29. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  30. {
  31.     //MENU
  32.     if(dialogid == zMENU)
  33.     {
  34.         if(response)
  35.         {
  36.             if(listitem == 0)
  37.             {
  38.                 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");
  39.             }
  40.             else if(listitem == 1)
  41.             {
  42.                 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");
  43.             }
  44.         }
  45.         return 1;
  46.     }
  47.     //EFEITOS
  48.    
  49.     if(dialogid == DIALOG_EFEITOS)
  50.     {
  51.         if(response)
  52.         {
  53.             if(listitem == 0)
  54.             {
  55.                 if(IsPlayerAttachedObjectSlotUsed(playerid,2))
  56.                 {
  57.                     RemovePlayerAttachedObject(playerid,2);
  58.                     SendClientMessage(playerid, COR_RHAY, "[INFO]: Efeito removido");
  59.                 }
  60.             }
  61.             if(listitem == 1)
  62.             {
  63.                 SetPlayerAttachedObject(playerid,2, 18690, 1, -0.8, 0.0, -0.3, 0.0, 87.0, 90.0);
  64.             }
  65.             if(listitem == 2)
  66.             {
  67.                 SetPlayerAttachedObject(playerid,2, 18714, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  68.             }
  69.             if(listitem == 3)
  70.             {
  71.                 SetPlayerAttachedObject(playerid,2, 18720, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  72.             }
  73.             if(listitem == 4)
  74.             {
  75.                 SetPlayerAttachedObject(playerid,2, 18721, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  76.             }
  77.             if(listitem == 5)
  78.             {
  79.                 SetPlayerAttachedObject(playerid,2, 18728, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  80.             }
  81.             if(listitem == 6)
  82.             {
  83.                 SetPlayerAttachedObject(playerid,2, 18742, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  84.             }
  85.         }
  86.         else
  87.         {
  88.             ShowPlayerDialog(playerid, zMENU, DIALOG_STYLE_LIST, " ..: Menu :.. ", "Acessórios\nEfeitos", "Selecionar", "Fechar");
  89.         }
  90.     }
  91.     //ACESSORIOS
  92.    
  93.     if(dialogid == AC)
  94.     {
  95.         if(response)
  96.         {
  97.             if(listitem == 0)
  98.             {
  99.                 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");
  100.             }
  101.             else if(listitem == 1)
  102.             {
  103.                 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");
  104.             }
  105.             else if(listitem == 2)
  106.             {
  107.                 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");
  108.             }
  109.             else if(listitem == 3)
  110.             {
  111.                 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");
  112.             }
  113.             else if(listitem == 4)
  114.             {
  115.                 if(IsPlayerAttachedObjectSlotUsed(playerid,1))
  116.                 {
  117.                     RemovePlayerAttachedObject(playerid,1);
  118.                     SendClientMessage(playerid, COR_RHAY, "[INFO]: Acessório removido");
  119.                 }
  120.             }
  121.         }   return 1;
  122.     }
  123.    
  124.    
  125.     if(dialogid == AC_1)
  126.     {
  127.         if(response)
  128.         {
  129.             if(listitem == 0)
  130.             {
  131.                 SetPlayerAttachedObject(playerid,1, 1609, 1, 0.0, 0.0, 0.0, 90.0, 0.0, -90.0);
  132.             }
  133.             if(listitem == 1)
  134.             {
  135.                 SetPlayerAttachedObject(playerid,1, 1244, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  136.             }
  137.             if(listitem == 2)
  138.             {
  139.                 SetPlayerAttachedObject(playerid,1, 1598, 2, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0);
  140.             }
  141.             if(listitem == 3)
  142.             {
  143.                 SetPlayerAttachedObject(playerid,1, 1518, 2, 0.2, 0.0, -0.04, 0.0, 100.0, 180.0);
  144.             }
  145.             if(listitem == 4)
  146.             {
  147.                 SetPlayerAttachedObject(playerid,1, 1254, 2, 0.1, 0.01, 0.0, 0.0, 90.0, 0.0);
  148.             }
  149.             if(listitem == 5)
  150.             {
  151.                 SetPlayerAttachedObject(playerid,1, 356, 1, -0.2, -0.15, 0.0, 0.0, 24.0, 0.0);
  152.             }
  153.             if(listitem == 6)
  154.             {
  155.                 SetPlayerAttachedObject(playerid,1, 3028, 1, 0.3, -0.15, -0.03, 0.0, 120, 0.0);
  156.             }
  157.             if(listitem == 7)
  158.             {
  159.                 SetPlayerAttachedObject(playerid,1, 366, 1, 0.4, -0.25, 0.0, 0.0, 160.0, 0.0);
  160.             }
  161.             if(listitem == 8)
  162.             {
  163.                 SetPlayerAttachedObject(playerid,1, 371, 1, 0.0, -0.175, 0.0, 0.0, 90.0, 0.0);
  164.             }
  165.             if(listitem == 9)
  166.             {
  167.                 SetPlayerAttachedObject(playerid,1, 1252, 1, 0.1, -0.2, 0.0, 0.0, 90.0, 0.0);
  168.             }
  169.             if(listitem == 10)
  170.             {
  171.                 SetPlayerAttachedObject(playerid,1, 2914, 1, 0.0, 0.0, 0.17, 180.0, 90.0, 0.0);
  172.             }
  173.             if(listitem == 11)
  174.             {
  175.                 SetPlayerAttachedObject(playerid,1, 3131, 1, -0.2, 0.15, 0.0, 0.0, 90.0, 0.0);
  176.             }
  177.             if(listitem == 12)
  178.             {
  179.                 SetPlayerAttachedObject(playerid,1, 354, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  180.             }
  181.             if(listitem == 14)
  182.             {
  183.                 SetPlayerAttachedObject(playerid,1, 321, 1, -0.24, 0.6, -0.07, 90.0, 0.0, 0.0);
  184.             }
  185.             if(listitem == 13)
  186.             {
  187.                 SetPlayerAttachedObject(playerid,1, 323, 1, -0.7, -0.2, 0.0, -90.0, 50.0, 0.0);
  188.             }
  189.             if(listitem == 15)
  190.             {
  191.                 SetPlayerAttachedObject(playerid,1, 1240, 1, 0.15, 0.17, 0.06, 0.0, 90.0, 0.0);
  192.             }
  193.         }
  194.         return 1;
  195.     }
  196.    
  197.     if(dialogid == AC_2)
  198.     {
  199.         if(response)
  200.         {
  201.             if(listitem == 0)
  202.             {
  203.                 SetPlayerAttachedObject(playerid,1 ,16442 , 1, 0, 0, 0, 90, 90, 0);
  204.             }
  205.             if(listitem == 1)
  206.             {
  207.                 SetPlayerAttachedObject(playerid,1 ,2114 , 2, 0.1, 0, 0, 0, 0, 0);
  208.  
  209.             }
  210.             if(listitem == 2)
  211.             {
  212.                 SetPlayerAttachedObject(playerid,1 ,322 , 1, -0.1, 0.2, -0.04, 90, 180, 0);
  213.             }
  214.             if(listitem == 3)
  215.             {
  216.                 SetPlayerAttachedObject(playerid,1 ,1608 , 1, 0, 0, 0, 0, 90, 0);
  217.             }
  218.             if(listitem == 4)
  219.             {
  220.                 SetPlayerAttachedObject(playerid,1 ,2780 , 2, 0, 0, 0, 0, 90, 180);
  221.             }
  222.             if(listitem == 5)
  223.             {
  224.                 SetPlayerAttachedObject(playerid,1, 1654, 1,0.1,0.20,0.0,180.0,100.0,0.0);
  225.             }
  226.             if(listitem == 6)
  227.             {
  228.                 SetPlayerAttachedObject(playerid,1 ,2054 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);
  229.             }
  230.             if(listitem == 7)
  231.             {
  232.                 SetPlayerAttachedObject(playerid,1 ,2053 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);
  233.             }
  234.             if(listitem == 8)
  235.             {
  236.                 SetPlayerAttachedObject(playerid,1 ,2052 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);
  237.             }
  238.             if(listitem == 9)
  239.             {
  240.                 SetPlayerAttachedObject(playerid,1 ,1213 ,2 ,0.16 ,0 ,0 ,0 ,90 ,0);
  241.             }
  242.             if(listitem == 10)
  243.             {
  244.                 SetPlayerAttachedObject(playerid,1 ,2226 ,5 ,0.4 ,0.04 ,0, 0 ,-90 ,30);
  245.             }
  246.             if(listitem == 11)
  247.             {
  248.                 SetPlayerAttachedObject(playerid,1 ,1318 ,15 ,0 ,0 ,1 ,0 ,0 ,0);
  249.             }
  250.             if(listitem == 12)
  251.             {
  252.                 SetPlayerAttachedObject(playerid,1 ,1238 ,2 ,0.4 ,-0.02 ,0.0001 ,0 ,90 ,0);
  253.             }
  254.             if(listitem == 13)
  255.             {
  256.                 SetPlayerAttachedObject(playerid,1 ,1582 ,5 ,0 ,0 ,-0.16 ,50 ,0 ,10);
  257.             }
  258.             if(listitem == 14)
  259.             {
  260.                 SetPlayerAttachedObject(playerid,1 ,1644 ,5 ,0.1 ,0.08 ,0 ,55 ,0 ,180);
  261.             }
  262.             if(listitem == 15)
  263.             {
  264.                 SetPlayerAttachedObject(playerid,1 ,330 ,5 ,0.15 ,0.01 ,0 ,0 ,180 ,0);
  265.             }
  266.             if(listitem == 16)
  267.             {
  268.                 SetPlayerAttachedObject(playerid,1 ,330 ,5 ,0.15 ,0.01 ,0 ,0 ,180 ,0);
  269.             }
  270.         }
  271.         return 1;
  272.     }
  273.    
  274.     if(dialogid == AC_3)
  275.     {
  276.         if(response)
  277.         {
  278.             if(listitem == 0)
  279.             {
  280.                 SetPlayerAttachedObject(playerid,1 ,1852 ,2 ,0.1 ,0 ,-0.01 ,0 ,15 ,0);
  281.             }
  282.             if(listitem == 1)
  283.             {
  284.                 SetPlayerAttachedObject(playerid,1 ,1603 ,2 ,0.3 ,0 ,0 ,0 ,90 ,0);
  285.             }
  286.             if(listitem == 2)
  287.             {
  288.                 SetPlayerAttachedObject(playerid,1 ,1602 ,2 ,0.2 ,0 ,0 ,0 ,90 ,0);
  289.             }
  290.             if(listitem == 3)
  291.             {
  292.                 SetPlayerAttachedObject(playerid,1 ,1610 ,2 ,0.08 ,0 ,0 ,0 ,90 ,0);
  293.             }
  294.             if(listitem == 4)
  295.             {
  296.                 SetPlayerAttachedObject(playerid,1 ,2470 ,2 ,0.1 ,0 ,-0.07 ,35 ,80 ,180);
  297.             }
  298.             if(listitem == 5)
  299.             {
  300.                 SetPlayerAttachedObject(playerid,1 ,2485 ,2 ,0.1 ,0 ,0.05 ,40 ,80 ,180);
  301.             }
  302.             if(listitem == 6)
  303.             {
  304.                 SetPlayerAttachedObject(playerid,1 ,2880 ,2 ,0.13 ,-0.1 ,0 ,0 ,10 ,10);
  305.             }
  306.             if(listitem == 7)
  307.             {
  308.                 SetPlayerAttachedObject(playerid,1 ,1736 ,2 ,0 ,0 ,0 ,0 ,90 ,180);
  309.             }
  310.             if(listitem == 8)
  311.             {
  312.                 SetPlayerAttachedObject(playerid,1 ,2680 ,15 ,-0.06 ,0 ,0.15 ,100 ,0 ,190);
  313.             }
  314.             if(listitem == 9)
  315.             {
  316.                 SetPlayerAttachedObject(playerid,1 ,373 , 1, 0.33, -0.029, -0.15, 65, 25, 35);
  317.             }
  318.             if(listitem == 10)
  319.             {
  320.                 SetPlayerAttachedObject(playerid,1 ,2036 ,15 ,0 ,0.13 ,-0.2 ,90 ,0 ,-50);
  321.             }
  322.             if(listitem == 11)
  323.             {
  324.                 SetPlayerAttachedObject(playerid,1 ,359 ,15 ,-0.02 ,0.08 ,-0.3 ,0 ,50 ,-10);
  325.             }
  326.             if(listitem == 12)
  327.             {
  328.                 SetPlayerAttachedObject(playerid,1 ,1951 ,5 ,0.13 ,0.09 ,0.05 ,-30 ,190 ,0);
  329.             }
  330.             if(listitem == 13)
  331.             {
  332.                 SetPlayerAttachedObject(playerid,1 ,1667 ,6 ,0.09 ,0.04 ,0.07 ,170 ,-170 ,0);
  333.             }
  334.             if(listitem == 14)
  335.             {
  336.                 SetPlayerAttachedObject(playerid,1 ,2703 ,5 ,0.1 ,0.05 ,0 ,0 ,0 ,0);
  337.             }
  338.             if(listitem == 15)
  339.             {
  340.                 SetPlayerAttachedObject(playerid,1 ,2712 ,5 ,0.1 ,-0.05 ,-0.2 ,0 ,-50 ,10);
  341.             }
  342.             if(listitem == 16)
  343.             {
  344.                 SetPlayerAttachedObject(playerid,1 ,1371 , 15, 0, 0, -0.1);
  345.             }
  346.             if(listitem == 17)
  347.             {
  348.                 SetPlayerAttachedObject(playerid,1 ,953 ,15 ,0 ,-0.1 ,0.2 ,0 ,0 ,0);
  349.             }
  350.         }
  351.         return 1;
  352.     }
  353.    
  354.     if(dialogid == AC_4)
  355.     {
  356.         if(response)
  357.         {
  358.             if(listitem == 0)
  359.             {
  360.                 SetPlayerAttachedObject(playerid,1, 1243, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  361.             }
  362.             if(listitem == 1)
  363.             {
  364.                 SetPlayerAttachedObject(playerid,1, 1235, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  365.             }
  366.             if(listitem == 2)
  367.             {
  368.                 SetPlayerAttachedObject(playerid,1, 1223, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  369.             }
  370.             if(listitem == 3)
  371.             {
  372.                 SetPlayerAttachedObject(playerid,1, 1215, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  373.             }
  374.             if(listitem == 4)
  375.             {
  376.                 SetPlayerAttachedObject(playerid,1, 1209 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  377.             }
  378.             if(listitem == 5)
  379.             {
  380.                 SetPlayerAttachedObject(playerid,1, 1301 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  381.             }
  382.             if(listitem == 6)
  383.             {
  384.                 SetPlayerAttachedObject(playerid,1, 1305 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  385.             }
  386.             if(listitem == 7)
  387.             {
  388.                 SetPlayerAttachedObject(playerid,1, 1316 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  389.             }
  390.             if(listitem == 8)
  391.             {
  392.                 SetPlayerAttachedObject(playerid,1, 1346 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  393.             }
  394.             if(listitem == 9)
  395.             {
  396.                 SetPlayerAttachedObject(playerid,1, 1358 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  397.             }
  398.             if(listitem == 10)
  399.             {
  400.                 SetPlayerAttachedObject(playerid,1, 3472 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  401.             }
  402.             if(listitem == 11)
  403.             {
  404.                 SetPlayerAttachedObject(playerid,1, 3471 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);
  405.             }
  406.             if(listitem == 12)
  407.             {
  408.                 SetPlayerAttachedObject(playerid, 1, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
  409.             } //Gorro do Papai Noel
  410.         }
  411.     }
  412.     return 1;
  413. }
  414.  
  415. CMD:menu(playerid)
  416. {
  417.     ShowPlayerDialog(playerid, zMENU, DIALOG_STYLE_LIST, " ..: Menu :.. ", "Acessórios\nEfeitos", "Selecionar", "Fechar");
  418.     return 1;
  419. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement