Guest User

NaGaz000r Animations System!

a guest
Jul 26th, 2013
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. // NaGaz0000r Animations System v1.0 //
  2. // 20 Animations - in v2.0 will be more! //
  3. // Do not remove the Credits! //
  4. // Created for WwW.Sa-Mp.Ro //
  5. // Regards! //
  6. #include <a_samp>
  7. #include <sscanf>
  8. #include <zcmd>
  9.  
  10. #define SCM SendClientMessage
  11. #define SPECIAL_ACTION_PISSING 2
  12. #define SPECIAL_ACTION_HANDSUP 3
  13.  
  14. #if defined FILTERSCRIPT
  15.  
  16. public OnFilterScriptInit()
  17. {
  18. print("\n--------------------------------------");
  19. print(" NaGaz000r Animations FilterScript System v1.0");
  20. print("--------------------------------------\n");
  21. return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26. return 1;
  27. }
  28.  
  29. #else
  30.  
  31. main()
  32. {
  33. print("\n----------------------------------");
  34. print(" Blank Gamemode by your name here");
  35. print("----------------------------------\n");
  36. }
  37.  
  38. #endif
  39.  
  40. public OnGameModeInit()
  41. {
  42. // Don't use these lines if it's a filterscript
  43. return 1;
  44. }
  45.  
  46. public OnGameModeExit()
  47. {
  48. return 1;
  49. }
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53. SCM(playerid,0xFF0000FF,"==============================================");
  54. SCM(playerid,0xFF0000FF,"Acest server foloses-te NAnims v1.0!");
  55. SCM(playerid,0xFF0000FF,"Pentru a vedea animatiile folositi /nanims");
  56. SCM(playerid,0xFF0000FF,"==============================================");
  57. return 1;
  58. }
  59. public OnPlayerCommandText(playerid, cmdtext[])
  60. {
  61. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  62. {
  63. // Do something here
  64. return 1;
  65. }
  66. return 0;
  67. }
  68. CMD:nanims(playerid,params[])
  69. {
  70. new astring[500];
  71. format(astring,sizeof(astring),"{FF9900}1.nkiss\n\
  72. 2.{FF9900}nDeal\n\
  73. 3.{FF9900}nDance\n\
  74. 4.{FF9900}nChat\n\
  75. 5.{FF9900}nWave\n\
  76. 6.{FF9900}nSlap\n\
  77. 7.{FF9900}nStrip\n\
  78. 8.{FF9900}nStrip2\n\
  79. 9.{FF9900}nstrip3\n\
  80. 10.{FF9900}nDrunked\n\
  81. 11.{FF9900}nLaba\n\
  82. 12.{FF9900}nFall\n\
  83. 13.{FF9900}nBslap\n\
  84. 14.{FF9900}nVomit\n\
  85. 15.{FF9900}nPee\n\
  86. 16.{FF9900}nLay\n\
  87. 17.{FF9900}nRob\n\
  88. 18.{FF9900}nHandsup\n\
  89. 19.{FF9900}nSleep\n\
  90. 20.{FF9900}nEat\n\
  91. {FF9900}Opreste Animatia");
  92. ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"{FF9900}NaGaz000r Animations",astring,"Okey","Cancel");
  93. return 1;
  94. }
  95. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  96. {
  97. if(response)
  98. {
  99. switch(dialogid)
  100. {
  101. case 1:
  102.  
  103. {
  104. switch(listitem)
  105. {
  106. case 0:
  107. {
  108. ApplyAnimation(playerid,"KISSING","Grlfrd_Kiss_02",1.800001, 1, 0, 0, 1, 600);
  109. }
  110. case 1:
  111. {
  112. ApplyAnimation(playerid,"DEALER","DEALER_DEAL",4.1, 0, 1, 1, 1, 1);
  113. }
  114. case 2:
  115. {
  116. ApplyAnimation(playerid,"DANCING","dance_loop",1.800001, 1, 0, 0, 1, 600);
  117.  
  118. }
  119. case 3:
  120. {
  121. ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1, 0, 1, 1, 1, 1);
  122. }
  123. case 4:
  124. {
  125. ApplyAnimation(playerid,"ON_LOOKERS","wave_loop", 4.0, 1, 0, 0, 0, 0);
  126. }
  127. case 5:
  128. {
  129. ApplyAnimation(playerid,"PED","BIKE_elbowL", 4.1, 0, 1, 1, 1, 1);
  130. }
  131. case 6:
  132. {
  133. ApplyAnimation(playerid,"STRIP","STR_Lpop_A",1.800001, 1, 0, 0, 1, 600);
  134. }
  135. case 7:
  136. {
  137. ApplyAnimation(playerid,"STRIP","STR_Lpop_B",1.800001, 1, 0, 0, 1, 600);
  138. }
  139. case 8:
  140. {
  141. ApplyAnimation(playerid,"STRIP","STR_Lpop_C",1.800001, 1, 0, 0, 1, 600);
  142. }
  143. case 9:
  144. {
  145. ApplyAnimation(playerid,"PED","WALK_DRUNK", 4.1, 0, 1, 1, 1, 1);
  146. }
  147. case 10:
  148. {
  149. ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  150. }
  151. case 11:
  152. {
  153. ApplyAnimation(playerid,"PED","BIKE_fallR",4.1, 0, 1, 1, 1, 1);
  154. }
  155. case 12:
  156. {
  157. ApplyAnimation(playerid,"MISC","bitchslap",1.800001, 1, 0, 0, 1, 600);
  158. }
  159. case 13:
  160. {
  161. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  162. }
  163. case 14:
  164. {
  165. SetPlayerSpecialAction(playerid, 2);
  166. }
  167. case 15:
  168. {
  169. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  170. }
  171. case 16:
  172. {
  173. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  174. }
  175. case 17:
  176. {
  177. SetPlayerSpecialAction(playerid, 3);
  178. }
  179. case 18:
  180. {
  181. ApplyAnimation(playerid,"CRACK", "crckdeth4", 4.0, 0, 1, 1, 1, 0, 1);
  182. }
  183. case 19:
  184. {
  185. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 1, 0, 0, 0, 0, 1);
  186. }
  187. case 20:
  188. {
  189. ClearAnimations(playerid);
  190. }
  191.  
  192. }
  193. }
  194. }
  195. }
  196. return 1;
  197.  
  198. }
Advertisement
Add Comment
Please, Sign In to add comment