y_flooding.inc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /**
  2. * <library name="y_flooding">
  3. * <section>
  4. * Description
  5. * </section>
  6. * Allows a limited number of connections from a single IP.
  7. * <section>
  8. * Functions
  9. * </section>
  10. * <subsection>
  11. * Core
  12. * </subsection><ul>
  13. * <symbol name="OnPlayerConnect">Called to check IPs.</symbol>
  14. * <symbol name="OnScriptInit">Sets the OnPlayerConnect function flag.</symbol>
  15. * </ul><subsection>
  16. * API
  17. * </subsection><ul>
  18. * <symbol name="SetMaxConnections">Sets the max allowed connections from an IP.</symbol>
  19. * </ul><section>
  20. * Enums
  21. * </section><ul>
  22. * <symbol name="e_FLOOD_ACTION">What to do if too many connections form.</symbol>
  23. * </ul><section>
  24. * Variables
  25. * </section>
  26. * <subsection>
  27. * Static
  28. * </subsection><ul>
  29. * <symbol name="YSI_g_sPlayerIPs">People's stored IPs for speed.</symbol>
  30. * <symbol name="YSI_g_sMaxConnections">Data for the script.</symbol>
  31. * </ul>
  32. * </library>
  33. *//** *//*
  34. Legal:
  35. Version: MPL 1.1
  36. The contents of this file are subject to the Mozilla Public License Version
  37. 1.1 the "License"; you may not use this file except in compliance with
  38. the License. You may obtain a copy of the License at
  39. http://www.mozilla.org/MPL/
  40. Software distributed under the License is distributed on an "AS IS" basis,
  41. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  42. for the specific language governing rights and limitations under the
  43. License.
  44. The Original Code is the YSI framework.
  45. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  46. Portions created by the Initial Developer are Copyright C 2011
  47. the Initial Developer. All Rights Reserved.
  48. Contributors:
  49. Y_Less
  50. koolk
  51. JoeBullet/Google63
  52. g_aSlice/Slice
  53. Misiur
  54. samphunter
  55. tianmeta
  56. maddinat0r
  57. spacemud
  58. Crayder
  59. Dayvison
  60. Ahmad45123
  61. Zeex
  62. irinel1996
  63. Yiin-
  64. Chaprnks
  65. Konstantinos
  66. Masterchen09
  67. Southclaws
  68. PatchwerkQWER
  69. m0k1
  70. paulommu
  71. udan111
  72. Thanks:
  73. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  74. ZeeX - Very productive conversations.
  75. koolk - IsPlayerinAreaEx code.
  76. TheAlpha - Danish translation.
  77. breadfish - German translation.
  78. Fireburn - Dutch translation.
  79. yom - French translation.
  80. 50p - Polish translation.
  81. Zamaroht - Spanish translation.
  82. Los - Portuguese translation.
  83. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  84. me to strive to better.
  85. Pixels^ - Running XScripters where the idea was born.
  86. Matite - Pestering me to release it and using it.
  87. Very special thanks to:
  88. Thiadmer - PAWN, whose limits continue to amaze me!
  89. Kye/Kalcor - SA:MP.
  90. SA:MP Team past, present and future - SA:MP.
  91. Optional plugins:
  92. Gamer_Z - GPS.
  93. Incognito - Streamer.
  94. Me - sscanf2, fixes2, Whirlpool.
  95. */
  96. #if !defined _INC_y_flooding
  97. #tryinclude "y_flooding\y_flooding_entry"
  98. #endif
  99. #if !defined _INC_y_flooding
  100. #tryinclude "YSI_Server\y_flooding\y_flooding_entry"
  101. #endif
  102. #if !defined _INC_y_flooding
  103. #tryinclude "YSI\YSI_Server\y_flooding\y_flooding_entry"
  104. #endif
  105. #if !defined _INC_y_flooding
  106. #tryinclude <YSI_Server\y_flooding\y_flooding_entry>
  107. #endif
  108. #if !defined _INC_y_flooding
  109. #tryinclude <YSI\YSI_Server\y_flooding\y_flooding_entry>
  110. #endif
  111. #if !defined _INC_y_flooding
  112. #error Could not find y_flooding
  113. #endif