[16:08:03] Incoming connection: 81.129.171.31:62375 [16:08:03] [join] James_Lilian has joined the server (3:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62376 [16:08:04] [join] Jamie_Tard has joined the server (4:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62378 [16:08:04] [join] Carl_Open has joined the server (5:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62377 [16:08:04] [join] Ben_Shum has joined the server (6:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62379 [16:08:04] [join] Uma_Thama has joined the server (7:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62380 [16:08:04] [join] Kim_Kard has joined the server (8:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62383 [16:08:04] [join] Senga_Wang has joined the server (10:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62382 [16:08:04] [join] Harry_Bow has joined the server (11:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62384 [16:08:04] [join] Jim_Yang has joined the server (12:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62385 [16:08:04] [join] Freddie_Merk has joined the server (13:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62386 [16:08:04] [join] Lupe_Horse has joined the server (14:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62387 [16:08:04] [join] Anna_Jikka has joined the server (15:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62388 [16:08:04] [join] Lilian_James has joined the server (16:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62389 [16:08:04] [join] Kard_Kim has joined the server (17:81.129.171.31) [16:08:04] Incoming connection: 81.129.171.31:62390 [16:08:04] [join] Jim_Paul has joined the server (18:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62391 [16:08:05] [join] Paul_Jim has joined the server (19:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62392 [16:08:05] [join] Pao_King has joined the server (20:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62393 [16:08:05] [join] Lopo_King has joined the server (21:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62394 [16:08:05] [join] Jamie_Kala has joined the server (22:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62395 [16:08:05] [join] Janet_Coolio has joined the server (23:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62396 [16:08:05] [join] Erro_Jima has joined the server (24:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62397 [16:08:05] [join] Loko_Pinga has joined the server (25:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62398 [16:08:05] [join] Fred_Hikum has joined the server (26:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62399 [16:08:05] [join] Jamie_Tarda has joined the server (27:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62401 [16:08:05] [join] Carl_Opena has joined the server (28:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62400 [16:08:05] [join] James_Liliana has joined the server (29:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62402 [16:08:05] [join] Ben_Shuma has joined the server (30:81.129.171.31) [16:08:05] Incoming connection: 81.129.171.31:62403 [16:08:05] [join] Kim_Karda has joined the server (31:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62404 [16:08:06] [join] Uma_Thamaa has joined the server (32:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62406 [16:08:06] [join] Harry_Bowa has joined the server (33:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62405 [16:08:06] [join] Paulie_Jima has joined the server (34:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62407 [16:08:06] [join] Jim_Yanga has joined the server (35:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62408 [16:08:06] [join] Senga_Wanga has joined the server (36:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62409 [16:08:06] [join] Lupe_Horsea has joined the server (37:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62410 [16:08:06] [join] Freddie_Merka has joined the server (38:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62412 [16:08:06] [join] Lilian_Jamesa has joined the server (40:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62411 [16:08:06] [join] Anna_Jikkaa has joined the server (39:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62413 [16:08:06] [join] Kard_Kima has joined the server (41:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62414 [16:08:06] [join] Jim_Paula has joined the server (42:81.129.171.31) [16:08:06] Incoming connection: 81.129.171.31:62416 [16:08:06] [join] Paul_Jima has joined the server (43:81.129.171.31) [16:08:07] Incoming connection: 81.129.171.31:62417 [16:08:07] [join] Lopo_Kinga has joined the server (45:81.129.171.31) [16:08:08] [chat] [Chaosnz]: what hte [16:08:08] [chat] [Hellz]: wtf?!!? [16:08:12] [chat] [[MAD]WatTwo]: holy fuck [16:08:13] [chat] [Hellz]: omgawd!~! [16:08:14] [chat] [Chaosnz]: ah fuck sake [16:08:17] [part] Erro_Jima has left the server (24:0) [16:08:17] [part] Senga_Wanga has left the server (36:0) [16:08:17] [part] Loko_Pinga has left the server (25:0) [16:08:17] [part] Fred_Hikum has left the server (26:0) [16:08:17] [part] Jamie_Kala has left the server (22:0) [16:08:17] [part] Lupe_Horsea has left the server (37:0) [16:08:17] [part] Jim_Yanga has left the server (35:0) [16:08:17] [part] Lilian_Jamesa has left the server (40:0) [16:08:17] [part] Carl_Opena has left the server (28:0) [16:08:17] [part] Anna_Jikkaa has left the server (39:0) [16:08:17] [part] Uma_Thama has left the server (7:0) [16:08:17] [part] Jamie_Tard has left the server (4:0) [16:08:17] [part] Harry_Bow has left the server (11:0) [16:08:17] [part] James_Liliana has left the server (29:0) [16:08:17] [part] Kard_Kima has left the server (41:0) [16:08:17] [part] Harry_Bowa has left the server (33:0) [16:08:17] [part] Senga_Wang has left the server (10:0) [16:08:17] [part] Jamie_Tarda has left the server (27:0) [16:08:17] [part] Paul_Jim has left the server (19:0) [16:08:17] [part] James_Lilian has left the server (3:0) [16:08:17] [part] Anna_Jikka has left the server (15:0) [16:08:17] [part] Kard_Kim has left the server (17:0) [16:08:17] [part] Lopo_Kinga has left the server (45:0) [16:08:17] [part] Kim_Kard has left the server (8:0) [16:08:17] [part] Jim_Yang has left the server (12:0) [16:08:17] [part] Ben_Shuma has left the server (30:0) [16:08:17] [part] Paul_Jima has left the server (43:0) [16:08:17] [part] Freddie_Merk has left the server (13:0) [16:08:17] [part] Lupe_Horse has left the server (14:0) [16:08:17] [part] Lilian_James has left the server (16:0) [16:08:17] [part] Carl_Open has left the server (5:0) [16:08:17] [part] Pao_King has left the server (20:0) [16:08:17] [part] Kim_Karda has left the server (31:0) [16:08:17] [part] Jim_Paula has left the server (42:0) [16:08:17] [part] Lopo_King has left the server (21:0) [16:08:17] [part] Paulie_Jima has left the server (34:0) [16:08:17] [part] Freddie_Merka has left the server (38:0) [16:08:17] [part] Ben_Shum has left the server (6:0) [16:08:17] [part] Jim_Paul has left the server (18:0) [16:08:17] [part] Janet_Coolio has left the server (23:0) [16:08:17] [part] Uma_Thamaa has left the server (32:0) |
// maxips FS limits the number of players connecting from a
// single IP address.
#include <a_samp>
#define MAX_CONNECTIONS_FROM_IP 3
//---------------------------------------------
public OnFilterScriptInit()
{
printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
}
//---------------------------------------------
// GetNumberOfPlayersOnThisIP
// Returns the number of players connecting from the
// provided IP address
stock GetNumberOfPlayersOnThisIP(test_ip[])
{
new against_ip[32+1];
new x = 0;
new ip_count = 0;
for(x=0; x<MAX_PLAYERS; x++) {
if(IsPlayerConnected(x)) {
GetPlayerIp(x,against_ip,32);
if(!strcmp(against_ip,test_ip)) ip_count++;
}
}
return ip_count;
}
//---------------------------------------------
public OnPlayerConnect(playerid)
{
new connecting_ip[32+1];
GetPlayerIp(playerid,connecting_ip,32);
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
Kick(playerid);
return 1;
}
return 0;
}
//---------------------------------------------