27.07.2017, 14:52
(
Последний раз редактировалось skiplovebra; 28.07.2017 в 15:54.
)
close
I only see this
Код:
[19:36:22] [part] Member_ao_4 has left the server (71:2) [19:36:22] [part] Member_ao_6 has left the server (72:2) [19:36:23] [part] Member_ao_0 has left the server (59:2) [19:36:23] [connection] 27.3.254.106:2469 requests connection cookie. [19:36:23] [connection] incoming connection: 27.3.254.106:2469 id: 49 [19:36:23] [join] Member_ao_9 has joined the server (49:27.3.254.106) [19:36:24] Falcon Mafia has logged in. [19:36:25] [part] Member_ao_9 has left the server (49:2) [19:36:25] [connection] 27.3.254.106:2470 requests connection cookie. [19:36:25] [connection] incoming connection: 27.3.254.106:2470 id: 70 [19:36:25] [connection] 27.3.254.106:2471 requests connection cookie. [19:36:25] [connection] incoming connection: 27.3.254.106:2471 id: 64 [19:36:25] [connection] 27.3.254.106:2472 requests connection cookie. [19:36:25] [connection] incoming connection: 27.3.254.106:2472 id: 69 [19:36:25] [join] Member_ao_5 has joined the server (70:27.3.254.106) [19:36:25] [connection] 27.3.254.106:2473 requests connection cookie. [19:36:25] [connection] incoming connection: 27.3.254.106:2473 id: 11 [19:36:25] [connection] 27.3.254.106:2474 requests connection cookie. [19:36:25] [connection] incoming connection: 27.3.254.106:2474 id: 40 [19:36:25] [connection] 27.3.254.106:2475 requests connection cookie. [19:36:25] [join] Member_ao_1 has joined the server (64:27.3.254.106) [19:36:25] [connection] incoming connection: 27.3.254.106:2475 id: 72 [19:36:25] [connection] 27.3.254.106:2476 requests connection cookie. [19:36:25] [connection] incoming connection: 27.3.254.106:2476 id: 73 [19:36:25] [connection] 27.3.254.106:2477 requests connection cookie. [19:36:25] [join] Member_ao_3 has joined the server (69:27.3.254.106) [19:36:25] [connection] incoming connection: 27.3.254.106:2477 id: 71 [19:36:25] [join] Member_ao_2 has joined the server (11:27.3.254.106) [19:36:25] [join] Member_ao_7 has joined the server (40:27.3.254.106) [19:36:25] [join] Member_ao_8 has joined the server (72:27.3.254.106) [19:36:26] [join] Member_ao_6 has joined the server (73:27.3.254.106) [19:36:26] [connection] 27.3.254.106:2478 requests connection cookie. [19:36:26] [connection] incoming connection: 27.3.254.106:2478 id: 59 [19:36:26] [join] Member_ao_4 has joined the server (71:27.3.254.106) [19:36:26] [part] Member_ao_5 has left the server (70:2) [19:36:26] Long Congsanboizz (63) saving their 415 (slot 1) (Model 415)... [19:36:26] [part] Member_ao_1 has left the server (64:2) [19:36:26] [part] Member_ao_3 has left the server (69:2) [19:36:26] [part] Member_ao_7 has left the server (40:2) [19:36:26] [part] Member_ao_2 has left the server (11:2) [19:36:27] [part] Member_ao_8 has left the server (72:2) [19:36:27] [part] Member_ao_6 has left the server (73:2) [19:36:27] [join] Member_ao_0 has joined the server (59:27.3.254.106) [19:36:27] [part] Member_ao_4 has left the server (71:2) [19:36:28] [part] Member_ao_0 has left the server (59:2) [19:36:30] Long Congsanboizz (63) saving their 445 (slot 2) (Model 445)... [19:36:31] [connection] 27.3.254.106:2479 requests connection cookie. [19:36:31] [connection] incoming connection: 27.3.254.106:2479 id: 75 [19:36:31] [join] Member_ao_4 has joined the server (75:27.3.254.106) [19:36:32] [part] Member_ao_4 has left the server (75:2) [19:36:33] [connection] 27.3.254.106:2480 requests connection cookie. [19:36:33] [connection] incoming connection: 27.3.254.106:2480 id: 49 [19:36:34] [connection] 27.3.254.106:2481 requests connection cookie. [19:36:35] [connection] incoming connection: 27.3.254.106:2481 id: 11 [19:36:35] [connection] 27.3.254.106:2482 requests connection cookie. [19:36:35] [join] Member_ao_9 has joined the server (49:27.3.254.106) [19:36:35] [connection] 27.3.254.106:2483 requests connection cookie. [19:36:35] [connection] incoming connection: 27.3.254.106:2482 id: 59 [19:36:35] [connection] incoming connection: 27.3.254.106:2483 id: 64 [19:36:35] [connection] 27.3.254.106:2484 requests connection cookie. [19:36:36] [join] Member_ao_2 has joined the server (11:27.3.254.106) [19:36:36] [connection] incoming connection: 27.3.254.106:2484 id: 73 [19:36:36] [part] Tiesto has left the server (57:0) [19:36:36] [join] Member_ao_1 has joined the server (59:27.3.254.106) [19:36:36] [part] Member_ao_9 has left the server (49:2) [19:36:36] [connection] 27.3.254.106:2485 requests connection cookie. [19:36:36] [connection] incoming connection: 27.3.254.106:2485 id: 57 [19:36:36] [join] Member_ao_6 has joined the server (73:27.3.254.106) [19:36:37] [part] Member_ao_2 has left the server (11:2) [19:36:37] [join] Member_ao_5 has joined the server (57:27.3.254.106) [19:36:37] [part] Member_ao_1 has left the server (59:2) [19:36:37] [part] Member_ao_6 has left the server (73:2) [19:36:37] [connection] 1.55.183.194:12802 requests connection cookie. [19:36:38] [part] Member_ao_5 has left the server (57:2) [19:36:38] [connection] incoming connection: 1.55.183.194:12802 id: 70 [19:36:39] [join] Member_ao_0 has joined the server (64:27.3.254.106) [19:36:40] [connection] 27.3.254.106:2486 requests connection cookie. [19:36:40] [part] Member_ao_0 has left the server (64:2) [19:36:40] [connection] 27.3.254.106:2487 requests connection cookie. [19:36:40] [join] PhiHung has joined the server (70:1.55.183.194) [19:36:41] [connection] incoming connection: 27.3.254.106:2486 id: 49 [19:36:41] [connection] incoming connection: 27.3.254.106:2487 id: 71 [19:36:41] [connection] 27.3.254.106:2486 requests connection cookie. [19:36:42] [warning] dropping a split packet from client [19:36:42] [connection] 27.3.254.106:2489 requests connection cookie. [19:36:42] [connection] incoming connection: 27.3.254.106:2489 id: 73 [19:36:42] [connection] 27.3.254.106:2490 requests connection cookie. [19:36:42] [join] Member_ao_9 has joined the server (49:27.3.254.106) [19:36:42] [join] Member_ao_1 has joined the server (71:27.3.254.106) [19:36:42] [connection] 27.3.254.106:2488 requests connection cookie. |
public OnPlayerFloodControl(playerid, iCount, iTimeSpan) // iCount is players that joined, in iTimeSpan time millseconds)
{
if(iCount > 3 && iTimeSpan < 8000) // if 3 players joined in less than 8 seconds it ban the player
{
Ban(playerid);
}
}
Hai!
you must set a maxium amout of players that can connect from 1 IP i suggest to you to use this include FAQ: how? include this inc file ^ and put this anywhere in your script PHP код:
|
Does this mean that 1 IP address with 3 participants will be banned?
|
iCount > 3 && iTimeSpan < 8000
<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>