y_commands_entry.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #if defined _INC_y_commands
  2. #endinput
  3. #endif
  4. #define _INC_y_commands
  5. /*
  6. Legal:
  7. Version: MPL 1.1
  8. The contents of this file are subject to the Mozilla Public License Version
  9. 1.1 the "License"; you may not use this file except in compliance with
  10. the License. You may obtain a copy of the License at
  11. http://www.mozilla.org/MPL/
  12. Software distributed under the License is distributed on an "AS IS" basis,
  13. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14. for the specific language governing rights and limitations under the
  15. License.
  16. The Original Code is the YSI framework.
  17. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  18. Portions created by the Initial Developer are Copyright C 2011
  19. the Initial Developer. All Rights Reserved.
  20. Contributors:
  21. Y_Less
  22. koolk
  23. JoeBullet/Google63
  24. g_aSlice/Slice
  25. Misiur
  26. samphunter
  27. tianmeta
  28. maddinat0r
  29. spacemud
  30. Crayder
  31. Dayvison
  32. Ahmad45123
  33. Zeex
  34. irinel1996
  35. Yiin-
  36. Chaprnks
  37. Konstantinos
  38. Masterchen09
  39. Southclaws
  40. PatchwerkQWER
  41. m0k1
  42. paulommu
  43. udan111
  44. Thanks:
  45. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  46. ZeeX - Very productive conversations.
  47. koolk - IsPlayerinAreaEx code.
  48. TheAlpha - Danish translation.
  49. breadfish - German translation.
  50. Fireburn - Dutch translation.
  51. yom - French translation.
  52. 50p - Polish translation.
  53. Zamaroht - Spanish translation.
  54. Los - Portuguese translation.
  55. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  56. me to strive to better.
  57. Pixels^ - Running XScripters where the idea was born.
  58. Matite - Pestering me to release it and using it.
  59. Very special thanks to:
  60. Thiadmer - PAWN, whose limits continue to amaze me!
  61. Kye/Kalcor - SA:MP.
  62. SA:MP Team past, present and future - SA:MP.
  63. Optional plugins:
  64. Gamer_Z - GPS.
  65. Incognito - Streamer.
  66. Me - sscanf2, fixes2, Whirlpool.
  67. */
  68. #include "..\..\YSI_Core\y_utils"
  69. #define MAX_COMMAND_LENGTH (32)
  70. #define COMMAND_NOT_FOUND (-1)
  71. #if !defined MAX_COMMANDS
  72. #define MAX_COMMANDS (512)
  73. #endif
  74. // Misc includes.
  75. #include "..\..\YSI_Data\y_hashmap"
  76. #include "..\..\YSI_Data\y_iterate"
  77. #include "..\..\YSI_Data\y_playerarray"
  78. #include "..\..\YSI_Server\y_punycode"
  79. // Include the group functions (maybe).
  80. #define Y_COMMANDS_GROUP_NAME<%0...%1> %0Command%1
  81. #define Y_COMMANDS_GROUP_LIMIT MAX_COMMANDS
  82. #define Y_COMMANDS_GROUP_TAG _
  83. #include "..\..\YSI_Players\y_groups\y_groups__include"
  84. // Set commands as master 51.
  85. #define MASTER 51
  86. #define YSIM_U_DISABLE
  87. #include "..\..\YSI_Core\y_master"
  88. #if defined YSI_TESTS
  89. #if !defined Y_COMMANDS_NO_IPC
  90. #define Y_COMMANDS_NO_IPC
  91. #endif
  92. #endif
  93. #include "..\..\YSI_Coding\y_hooks"
  94. // Include the main implementation.
  95. #include "y_commands_impl"
  96. #if defined YSI_TESTS
  97. #include "y_commands_tests"
  98. #endif
  99. // Restore previous settings.
  100. //#undef _GROUP_MAKE_LIMIT
  101. //#undef _GROUP_MAKE_NAME
  102. #include "..\..\YSI_Core\y_master"