Advertisement
Guest User

Sistema de Animações Feito por Ozzy

a guest
Jul 12th, 2012
2,263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.60 KB | None | 0 0
  1. //=============================================================================
  2. //=============================================================================
  3. /*                    FILTERSCRIPT FEITO POR Ozzy
  4.  
  5.                       Contém sistema de Animações em Dialog !
  6.                       Mantenha os créditos.
  7.  
  8. http://forum.sa-mp.com/showthread.php?t=359121  
  9.  
  10.     * 12/07/2012                                */
  11. //                          
  12. //=============================================================================
  13. //=============================================================================
  14.  
  15.  
  16.  
  17. /*    INCLUDES      */
  18. #include    a_samp
  19. #include     zcmd
  20.  
  21. #if defined FILTERSCRIPT
  22.  
  23. // _____________________________________________________________________________
  24.  
  25.  
  26. #else
  27.  
  28.  
  29. #endif
  30.  
  31. public OnFilterScriptInit()
  32. {
  33.     print("\n________________________________________________");
  34.     print(" Filterscript de Animações Feito por Ozzy");
  35.     print(" Filterscript de Animações Carregado Com SUCESSO");
  36.     print("\n________________________________________________");
  37.  
  38.     return 1;
  39. }
  40.  
  41.  
  42. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  43. {
  44. if(response)
  45.     {
  46.     switch(dialogid == 15)
  47.         {
  48.         case 1:
  49.             {
  50.             switch(listitem)
  51.             {
  52.                 case 0:  /* Primeiro Item */
  53.                 {
  54.                     ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
  55.                 }
  56.                 case 1:
  57.                 {
  58.                     ClearAnimations(playerid);
  59.                     ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  60.                 }
  61.                 case 2:
  62.                 {
  63.                     ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
  64.                 }
  65.                 case 3:
  66.                 {
  67.                    ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
  68.                 }
  69.                 case 4:
  70.                 {
  71.                    ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
  72.                 }
  73.                 case 5:
  74.                 {
  75.                    ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  76.                 }
  77.                 case 6:
  78.                 {
  79.                    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  80.                 }
  81.                 case 7:
  82.                 {
  83.                    ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  84.                 }
  85.                 case 8:
  86.                 {
  87.                     ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  88.                 }
  89.                 case 9:
  90.                 {
  91.                     ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  92.                 }
  93.                 case 10:
  94.                 {
  95.                     ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  96.                 }
  97.                 case 11: /* Último Item 11 */
  98.                 {
  99.                     ClearAnimations(playerid);
  100.                 }
  101.                 case 12: /* Último item  */
  102.                 {
  103.                 ShowPlayerDialog(playerid, 16, DIALOG_STYLE_LIST, "{FF0000}2 Lista de Animações", "{FF4500}Cobrar\n {63B8FF}Overdose\n {FF4500}Fumar\n {63B8FF}Fumar Beack\n {FF4500}Sentar\n {63B8FF}Conversar\n {FF4500}Foda-se\n {63B8FF}Taichi\n {FF4500}Observar\n {63B8FF}Rap\n {FF4500}Passar a Mão\n Parar Anim\n {FFFFE0}Voltar", "Selecionar", "Cancelar");
  104.                 }
  105.             }
  106.  
  107.             }
  108.         }
  109.     switch(dialogid == 16)/* Dialogo de ID 16, feito no item 11 "Segunda Lista"     */
  110.         {
  111.         case 1://
  112.             {
  113.             switch(listitem)
  114.             {
  115.                         case 0: /* Item 1 */
  116.                 {
  117.                     ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  118.                 }
  119.                 case 1:
  120.                 {
  121.                     ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  122.                 }
  123.                 case 2:
  124.                 {
  125.                     ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  126.                 }
  127.                 case 3:
  128.                 {
  129.                     ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  130.                 }
  131.                 case 4:
  132.                 {
  133.                     ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
  134.                 }
  135.                 case 5:
  136.                 {
  137.                     ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
  138.                 }
  139.                 case 6:
  140.                 {
  141.                     ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
  142.                 }
  143.                 case 7:
  144.                 {
  145.                     ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
  146.                 }
  147.                 case 8:
  148.                 {
  149.                  ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
  150.                 }
  151.                 case 9:
  152.                 {
  153.                     ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  154.                 }
  155.                 case 10:
  156.                 {
  157.                     ClearAnimations(playerid);
  158.                     ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  159.                 }
  160.                 case 11: /* Último Item 11 */
  161.                 {
  162.                     ClearAnimations(playerid);
  163.                 }
  164.                 case 12: /* Último Item 11 */
  165.                 {
  166.                             ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF0000}Lista de Animações", "{FF4500}Bebado\n {63B8FF}Bomba\n {FF4500}Apontar\n {63B8FF}Merda\n {FF4500}Marcarar-se\n {63B8FF}Roubar\n {FF4500}Cruzarb\n {63B8FF}Deitar\n {FF4500}Abaixar\n {63B8FF}Vomitar\n {FF4500}Comer\n  Parar Anim\n {FFFFE0}Proxima Lista", "Selecionar", "Sair");
  167.                 }
  168.                 }
  169.             }
  170.         }
  171.     }
  172. return 1;
  173. }
  174.  
  175.     CMD:animes(playerid, params[])
  176.     {
  177.         ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF0000}Lista de Animações", "{FF4500}Bebado\n {63B8FF}Bomba\n {FF4500}Apontar\n {63B8FF}Merda\n {FF4500}Marcarar-se\n {63B8FF}Roubar\n {FF4500}Cruzarb\n {63B8FF}Deitar\n {FF4500}Abaixar\n {63B8FF}Vomitar\n {FF4500}Comer\n  Parar Anim\n {FFFFE0}Proxima Lista", "Selecionar", "Sair");
  178.         return 1;
  179.        }
  180.  
  181. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  182. {
  183.  
  184. if(newkeys == 131072 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  185.   {
  186.  
  187.         ClearAnimations(playerid);
  188.   }
  189. return 1;
  190. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement