y_plugins.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. #if defined _INC_y_plugins
  54. #endinput
  55. #endif
  56. #define _INC_y_plugins
  57. // All the code in here relies on detecting FEATURES, not FILENAMES.
  58. #if defined Streamer_IncludeFileVersion
  59. #define _YSI_PLUGINS_STREAMER
  60. #if !defined IPS_MAX_OBJECTS
  61. #define IPS_MAX_OBJECTS (20000)
  62. #endif
  63. #if !defined IPS_MAX_PICKUPS
  64. #define IPS_MAX_PICKUPS (5000)
  65. #endif
  66. #if !defined IPS_MAX_CPS
  67. #define IPS_MAX_CPS (1000)
  68. #endif
  69. #if !defined IPS_MAX_RACE_CPS
  70. #define IPS_MAX_RACE_CPS (1000)
  71. #endif
  72. #if !defined IPS_MAX_MAP_ICONS
  73. #define IPS_MAX_MAP_ICONS (2000)
  74. #endif
  75. #if !defined IPS_MAX_3D_TEXT_LABELS
  76. #define IPS_MAX_3D_TEXT_LABELS (1000)
  77. #endif
  78. #if !defined IPS_MAX_AREAS
  79. #define IPS_MAX_AREAS (1000)
  80. #endif
  81. #include <streamer>
  82. #endif
  83. #if defined WP_Hash
  84. #define _YSI_PLUGINS_WHIRLPOOL
  85. #endif
  86. #if defined gps_AddPlayer
  87. #define _YSI_PLUGINS_GPS
  88. // This plugin was included later on in the script and found first time,
  89. // include it here in the second compile pass.
  90. #include <RouteConnector>
  91. #include "y_gamerzps"
  92. #endif
  93. #if defined SetTimerEx_
  94. #define _YSI_PLUGINS_FIXES_2
  95. #endif
  96. /*
  97. #if defined mysql_function_query
  98. // BlueG R7 MySQL
  99. #define _YSI_PLUGINS_MYSQL 7
  100. #elseif defined mysql_init
  101. // StrickenKid MySQL
  102. #define _YSI_PLUGINS_MYSQL 1
  103. #elseif defined mysql_debug
  104. // BlueG R5/R6 MySQL
  105. #define _YSI_PLUGINS_MYSQL 6
  106. #else
  107. // No MySQL
  108. */
  109. #define _YSI_PLUGINS_MYSQL 0
  110. /*
  111. #endif
  112. */