Guest User

Untitled

a guest
Jan 2nd, 2014
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. #if defined FILTERSCRIPT
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("\n--------------------------------------");
  9. print(" Animations Script by kiwimaster2001");
  10. print("--------------------------------------\n");
  11. return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16. return 1;
  17. }
  18.  
  19. public OnPlayerRequestClass(playerid, classid)
  20. {
  21. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  22. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  23. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  24. return 1;
  25. }
  26.  
  27.  
  28. public OnPlayerCommandText(playerid, cmdtext[])
  29. {
  30. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  31. {
  32. return 1;
  33. }
  34. return 0;
  35. }
  36.  
  37. CMD:anims(playerid, params[])
  38. {
  39. ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_LIST, "Animations", "/pee\n/handsup\n/wank\n/lay\n/crack\n/injured\n/smoke\n/dance1-4\n/rap\n/aim\n/aim2\nRemember to stop Animation type /stopanims!", "Okay", "Close");
  40. return 1;
  41. }
  42.  
  43. CMD:handsup(playerid, params[])
  44. {
  45. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  46. return 1;
  47. }
  48.  
  49. CMD:pee(playerid, params[])
  50. {
  51. SetPlayerSpecialAction(playerid, 68);
  52. return 1;
  53. }
  54.  
  55. CMD:wank(playerid, params[])
  56. {
  57. ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.0,1,1,1,1,0);
  58. return 1;
  59. }
  60.  
  61. CMD:lay(playerid, params[])
  62. {
  63. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  64. return 1;
  65. }
  66.  
  67. CMD:crack(playerid, params[])
  68. {
  69. ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  70. return 1;
  71. }
  72.  
  73. CMD:injured(playerid, params[])
  74. {
  75. ApplyAnimation(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  76. return 1;
  77. }
  78.  
  79. CMD:smoke(playerid, params[])
  80. {
  81. ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  82. return 1;
  83. }
  84.  
  85. CMD:dance(playerid, params[])
  86. {
  87. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  88. return 1;
  89. }
  90.  
  91. CMD:dance2(playerid, params[])
  92. {
  93. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  94. return 1;
  95. }
  96.  
  97. CMD:dance3(playerid, params[])
  98. {
  99. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  100. return 1;
  101. }
  102.  
  103. CMD:dance4(playerid, params[])
  104. {
  105. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
  106. return 1;
  107. }
  108.  
  109. CMD:rap(playerid, params[])
  110. {
  111. ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
  112. return 1;
  113. }
  114.  
  115. CMD:aim(playerid, params[])
  116. {
  117. ApplyAnimation(playerid,"PED","gang_gunstand", 4.0, 1, 0, 0, 0, 0);
  118. return 1;
  119. }
  120.  
  121. CMD:aim2(playerid, params[])
  122. {
  123. ApplyAnimation(playerid, "SHOP", "SHP_Gun_Aim", 4.0, 0, 1, 1, 1, -1);
  124. return 1;
  125. }
  126.  
  127. CMD:stopanims(playerid, params[])
  128. {
  129. ClearAnimations(playerid);
  130. return 1;
  131. }
  132.  
  133. #endif
Advertisement
Add Comment
Please, Sign In to add comment