Hiukuss

SA-MP Animations.pwn code

Sep 28th, 2011
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #define SPECIAL_ACTION_PISSING 68
  3. #define COLOR_RED 0xAA3333AA
  4. #define COLOR_YELLOW 0xFFFF00AA
  5.  
  6. #include <a_samp>
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Animation CMD's by Hiukuss Loaded");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27. print("\n----------------------------------");
  28. print(" Animation CMD's by Hiukuss Unloaded");
  29. print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnPlayerCommandText(playerid, cmdtext[])
  35. {
  36. if(!strcmp(cmdtext, "/handsup"))
  37. {
  38. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  39. return 1;
  40. }
  41. if(!strcmp(cmdtext, "/dance1"))
  42. {
  43. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  44. return 1;
  45. }
  46. if(!strcmp(cmdtext, "/dance2"))
  47. {
  48. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  49. return 1;
  50. }
  51. if(!strcmp(cmdtext, "/dance3"))
  52. {
  53. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  54. return 1;
  55. }
  56. if(!strcmp(cmdtext, "/dance4"))
  57. {
  58. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
  59. return 1;
  60. }
  61. if(!strcmp(cmdtext, "/smokecig"))
  62. {
  63. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
  64. SendClientMessage(playerid, COLOR_RED, "Press LMB to smoke it!");
  65. return 1;
  66. }
  67. if(!strcmp(cmdtext, "/piss"))
  68. {
  69. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING);
  70. SendClientMessage(playerid, COLOR_YELLOW, "Ewww, gross!");
  71. return 1;
  72. }
  73. if(!strcmp(cmdtext, "/drinkbeer"))
  74. {
  75. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  76. SendClientMessage(playerid, COLOR_RED, "Press LMB to drink it!");
  77. return 1;
  78. }
  79. if(!strcmp(cmdtext, "/drinkwine"))
  80. {
  81. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
  82. SendClientMessage(playerid, COLOR_RED, "Press LMB to drink it!");
  83. return 1;
  84. }
  85. if(!strcmp(cmdtext, "/drinksoda"))
  86. {
  87. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK );
  88. SendClientMessage(playerid, COLOR_RED, "Press LMB to drink it!");
  89. return 1;
  90. }
  91. return 0;
  92. }
  93.  
Advertisement
Add Comment
Please, Sign In to add comment