27.07.2017, 16:20
If you use YSI, or if you don't, I advise you to use y_flooding
Код:
<summary>SetMaxConnections</summary> <param name="max">Maximum number of connections allowed from the same IP.</param> <param name="e_FLOOD_ACTION:action">What to do if there's too many.</param> <returns> - </returns> <remarks> Sets the maximum connections allowed from a single IP. Options: e_FLOOD_ACTION_BLOCK - Kick the latest player on this IP. e_FLOOD_ACTION_KICK - Kick all players on this IP. e_FLOOD_ACTION_BAN - Ban the IP and have players time out. e_FLOOD_ACTION_FBAN - Ban the IP and kick all the players instantly. e_FLOOD_ACTION_GHOST - Silently force all players on the IP to reconnect. e_FLOOD_ACTION_OTHER - Call a callback. </remarks>