SAMP Gitlab CI Test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

5 years ago
  1. // -----------------------------------------------------------------------------
  2. // Example Filterscript for the new SA-MP Animations
  3. // -------------------------------------------------
  4. // By Matite in January 2015
  5. //
  6. // This script tests the new SA-MP animation/pose inside the SAMP.ifp file.
  7. //
  8. // -----------------------------------------------------------------------------
  9. // -----------------------------------------------------------------------------
  10. // Includes
  11. // --------
  12. // SA-MP include
  13. #include <a_samp>
  14. // ------------------------------------------------------------------------------
  15. // Callbacks
  16. // ---------
  17. public OnPlayerCommandText(playerid, cmdtext[])
  18. {
  19. // Check command text
  20. if (strcmp("/fish", cmdtext, true, 5) == 0)
  21. {
  22. // Apply animation
  23. ApplyAnimation(playerid, "SAMP", "FishingIdle", 4.1, 0, 1, 1, 1, 1);
  24. // Send a gametext message to the player
  25. GameTextForPlayer(playerid, "~b~~h~Fishing Animation Pose!", 3000, 3);
  26. // Exit here
  27. return 1;
  28. }
  29. // Exit here (return 0 as the command was not handled in this filterscript)
  30. return 0;
  31. }
  32. public OnFilterScriptInit()
  33. {
  34. // Display information in the Server Console
  35. print("\n");
  36. print(" |---------------------------------------------------");
  37. print(" |--- SA-MP Animations Filterscript by Matite");
  38. print(" |-- Script v1.01");
  39. print(" |-- 12th January 2015");
  40. print(" |---------------------------------------------------");
  41. // Exit here
  42. return 1;
  43. }
  44. public OnFilterScriptExit()
  45. {
  46. // Display information in the Server Console
  47. print(" |---------------------------------------------------");
  48. print(" |-- SA-MP Animations Filterscript Unloaded");
  49. print(" |---------------------------------------------------");
  50. // Exit here
  51. return 1;
  52. }