y_plugins.inc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /**--------------------------------------------------------------------------**\
  2. ===================================
  3. y_plugins - Used plugin detection
  4. ===================================
  5. Description:
  6. Configuration and detection for third-party SA:MP plugins (including
  7. ones by Y_Less).
  8. Legal:
  9. Version: MPL 1.1
  10. The contents of this file are subject to the Mozilla Public License Version
  11. 1.1 (the "License"); you may not use this file except in compliance with
  12. the License. You may obtain a copy of the License at
  13. http://www.mozilla.org/MPL/
  14. Software distributed under the License is distributed on an "AS IS" basis,
  15. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  16. for the specific language governing rights and limitations under the
  17. License.
  18. The Original Code is the YSI groups include.
  19. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  20. Portions created by the Initial Developer are Copyright (C) 2011
  21. the Initial Developer. All Rights Reserved.
  22. Contributors:
  23. ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  24. Thanks:
  25. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  26. ZeeX - Very productive conversations.
  27. koolk - IsPlayerinAreaEx code.
  28. TheAlpha - Danish translation.
  29. breadfish - German translation.
  30. Fireburn - Dutch translation.
  31. yom - French translation.
  32. 50p - Polish translation.
  33. Zamaroht - Spanish translation.
  34. Los - Portuguese translation.
  35. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  36. for me to strive to better.
  37. Pixels^ - Running XScripters where the idea was born.
  38. Matite - Pestering me to release it and using it.
  39. Very special thanks to:
  40. Thiadmer - PAWN, whose limits continue to amaze me!
  41. Kye/Kalcor - SA:MP.
  42. SA:MP Team past, present and future - SA:MP.
  43. Optional plugins:
  44. Gamer_Z - GPS.
  45. Incognito - Streamer.
  46. Me - sscanf2, fixes2, Whirlpool.
  47. Version:
  48. 1.0
  49. Changelog:
  50. 21/10/12:
  51. First version
  52. \**--------------------------------------------------------------------------**/
  53. // All the code in here relies on detecting FEATURES, not FILENAMES.
  54. #if defined Streamer_IncludeFileVersion
  55. #define _YSI_PLUGINS_STREAMER
  56. #if !defined IPS_MAX_OBJECTS
  57. #define IPS_MAX_OBJECTS (20000)
  58. #endif
  59. #if !defined IPS_MAX_PICKUPS
  60. #define IPS_MAX_PICKUPS (5000)
  61. #endif
  62. #if !defined IPS_MAX_CPS
  63. #define IPS_MAX_CPS (1000)
  64. #endif
  65. #if !defined IPS_MAX_RACE_CPS
  66. #define IPS_MAX_RACE_CPS (1000)
  67. #endif
  68. #if !defined IPS_MAX_MAP_ICONS
  69. #define IPS_MAX_MAP_ICONS (2000)
  70. #endif
  71. #if !defined IPS_MAX_3D_TEXT_LABELS
  72. #define IPS_MAX_3D_TEXT_LABELS (1000)
  73. #endif
  74. #if !defined IPS_MAX_AREAS
  75. #define IPS_MAX_AREAS (1000)
  76. #endif
  77. #include <streamer>
  78. #endif
  79. #if defined WP_Hash
  80. #define _YSI_PLUGINS_WHIRLPOOL
  81. #endif
  82. //#if defined gps_AddPlayer
  83. // #define _YSI_PLUGINS_GPS
  84. // // This plugin was included later on in the script and found first time,
  85. // // include it here in the second compile pass.
  86. // #include <RouteConnector>
  87. // #include "y_gamerzps"
  88. //#endif
  89. #if defined SetTimerEx_
  90. #define _YSI_PLUGINS_FIXES_2
  91. #endif
  92. /*
  93. #if defined mysql_function_query
  94. // BlueG R7 MySQL
  95. #define _YSI_PLUGINS_MYSQL 7
  96. #elseif defined mysql_init
  97. // StrickenKid MySQL
  98. #define _YSI_PLUGINS_MYSQL 1
  99. #elseif defined mysql_debug
  100. // BlueG R5/R6 MySQL
  101. #define _YSI_PLUGINS_MYSQL 6
  102. #else
  103. // No MySQL
  104. */
  105. #define _YSI_PLUGINS_MYSQL 0
  106. /*
  107. #endif
  108. */