Advertisement
Guest User

[Filterscript] Animation

a guest
Oct 22nd, 2013
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Animations Filterscript by BatZackMan");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17.  
  18. CMD:anims(playerid, params[])
  19. {
  20. new string[2000];
  21. format(string, sizeof(string), "%s%s", string, "{00C0FF}Walk drunk\n");
  22. format(string, sizeof(string), "%s%s", string, "{00C0FF}Handsup\n");
  23. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 1\n");
  24. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 2\n");
  25. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 3\n");
  26. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 4\n");
  27. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 5\n");
  28. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 6\n");
  29. format(string, sizeof(string), "%s%s", string, "{00C0FF}Arrest\n");
  30. format(string, sizeof(string), "%s%s", string, "{00C0FF}Sit\n");
  31. format(string, sizeof(string), "%s%s", string, "{00C0FF}Door kick\n");
  32. format(string, sizeof(string), "%s%s", string, "{00C0FF}Bitch slap\n");
  33. format(string, sizeof(string), "%s%s", string, "{00C0FF}Grab left\n");
  34. format(string, sizeof(string), "%s%s", string, "{00C0FF}Grab right\n");
  35. format(string, sizeof(string), "%s%s", string, "{00C0FF}Dance 7\n");
  36. format(string, sizeof(string), "%s%s", string, "{C77D87}Animoff (only work on dance 7 others stop with LMB)\n");
  37. ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{F3FF02}Animations", string, "Ok", "Cancel");
  38. return 1;
  39.  
  40. }
  41.  
  42. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  43. {
  44. if(response)
  45. {
  46. switch(dialogid)
  47. {
  48. case 999:
  49. {
  50. switch(listitem)
  51. {
  52. case 0:
  53. {
  54. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
  55. }
  56. case 1:
  57. {
  58. ApplyAnimation(playerid,"PED","handsup", 4.1,0,1,1,1,1,1);
  59. }
  60. case 2:
  61. {
  62. ApplyAnimation(playerid,"DANCING","dance_loop",4.1,1,1,1,1,1,1);
  63. }
  64. case 3:
  65. {
  66. ApplyAnimation(playerid,"DANCING","DAN_Down_A",4.1,1,1,1,1,1,1);
  67. }
  68. case 4:
  69. {
  70. ApplyAnimation(playerid,"DANCING","DAN_Left_A",4.1,1,1,1,1,1,1);
  71. }
  72. case 5:
  73. {
  74. ApplyAnimation(playerid,"DANCING","DAN_Loop_A",4.1,1,1,1,1,1,1);
  75. }
  76. case 6:
  77. {
  78. ApplyAnimation(playerid,"DANCING","DAN_Right_A",4.1,1,1,1,1,1,1);
  79. }
  80. case 7:
  81. {
  82. ApplyAnimation(playerid,"DANCING","DAN_Up_A",4.1,1,1,1,1,1,1);
  83. }
  84. case 8:
  85. {
  86. ApplyAnimation(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1,1);
  87. }
  88. case 9:
  89. {
  90. ApplyAnimation(playerid,"PED","SEAT_idle",4.1,0,1,1,1,1,1);
  91. }
  92. case 10:
  93. {
  94. ApplyAnimation(playerid,"POLICE","Door_Kick",4.1,0,1,1,1,1,1);
  95. }
  96. case 11:
  97. {
  98. ApplyAnimation(playerid,"MISC","bitchslap",4.1,0,1,1,1,1,1);
  99. }
  100. case 12:
  101. {
  102. ApplyAnimation(playerid,"MISC","GRAB_L",4.1,0,1,1,1,1,1);
  103. }
  104. case 13:
  105. {
  106. ApplyAnimation(playerid,"MISC","GRAB_R",4.1,0,1,1,1,1,1);
  107. }
  108. case 14:
  109. {
  110. ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
  111. }
  112. case 15:
  113. {
  114. ClearAnimations(playerid);
  115. }
  116. }
  117. }
  118. }
  119. }
  120. return 1;
  121. }
  122.  
  123. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  124. {
  125. return 1;
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement