24.06.2014, 13:00
(
Last edited by ATomas; 25/06/2014 at 01:01 PM.
)
Hello,
#include <a_samp>
new LastConnect[256][256];
public OnIncomingConnection(playerid,ip_address[],port)
{
new first = strval(ip_address);
new pos = chrfind('.',ip_address)+1;
new second = strval(ip_address[pos]);
if(GetTickCount() - LastConnect[first][second] < 5000)
{
new string[32];
format(string,sizeof(string),"%d.%d.*.*",first,second);
BlockIpAddress(string,24*60*60*1000);
}
LastConnect[first][second] = GetTickCount();
return 1;
}
stock chrfind(n,h[],s=0)
{
/*//TestPrint("chrfind");*/
new l = strlen(h);
while(s < l)
{
if(h[s] == n) return s;
s++;
}
return -1;
}
[16:58:14] Incoming connection: 31.16.216.247:54992 [16:58:14] Incoming connection: 99.244.43.183:24698 [16:58:14] Incoming connection: 187.7.92.187:23519 [16:58:14] Incoming connection: 53.173.81.124:44797 [16:58:14] Incoming connection: 53.213.172.229:36106 [16:58:14] Incoming connection: 53.180.149.128:39176 [16:58:14] Incoming connection: 5.130.66.205:6011 [16:58:14] Incoming connection: 53.55.198.78:5271 [16:58:14] Incoming connection: 70.64.154.37:34270 [16:58:14] Incoming connection: 53.254.121.254:41816 [16:58:15] Incoming connection: 53.20.28.222:52755 [16:58:15] Incoming connection: 5.130.227.165:7407 [16:58:15] Incoming connection: 37.94.72.150:14833 [16:58:15] Incoming connection: 53.105.91.196:24031 [16:58:15] Incoming connection: 87.71.88.233:52163 [16:58:15] Incoming connection: 2.166.241.196:42364 [16:58:15] Incoming connection: 176.230.90.117:38028 [16:58:15] Incoming connection: 37.94.225.60:16761 [16:58:15] Incoming connection: 87.71.70.248:43898 [16:58:15] Incoming connection: 99.230.242.220:48674 [16:58:15] Incoming connection: 31.234.111.100:54213 [16:58:16] Incoming connection: 176.230.235.122:47926 [16:58:16] Incoming connection: 31.227.151.48:39669 [16:58:16] Incoming connection: 187.4.159.172:15228 [16:58:16] Incoming connection: 99.242.140.31:26677 [16:58:16] Incoming connection: 2.169.100.249:29199 [16:58:16] Incoming connection: 109.64.74.53:45605 [16:58:16] Incoming connection: 84.111.186.23:23598 [16:58:16] Incoming connection: 187.7.244.226:7612 [16:58:16] Incoming connection: 84.111.37.175:52146 [16:58:16] Incoming connection: 179.239.187.210:29687 [16:58:16] Incoming connection: 31.227.202.119:19820 [16:58:16] Incoming connection: 179.239.101.127:6075 [16:58:16] Incoming connection: 109.64.178.95:22953 [16:58:16] Incoming connection: 53.93.164.79:21387 [16:58:16] Incoming connection: 24.79.152.20:27406 [16:58:16] Incoming connection: 53.207.210.69:44037 [16:58:16] Incoming connection: 99.230.6.196:16621 [16:58:16] Incoming connection: 53.108.240.99:51069 [16:58:16] Incoming connection: 53.67.156.115:8211 [16:58:17] Incoming connection: 187.4.2.220:24977 [16:58:17] Incoming connection: 53.83.101.250:10156 [16:58:17] Incoming connection: 99.245.199.125:19756 [16:58:17] Incoming connection: 70.64.92.62:32045 [16:58:17] Incoming connection: 37.82.232.102:52109 [16:58:17] Incoming connection: 99.248.240.35:37949 [16:58:17] Incoming connection: 53.80.236.177:13154 [16:58:17] Incoming connection: 53.9.254.202:27808 [16:58:17] Incoming connection: 77.125.94.33:52980 [16:58:17] Incoming connection: 53.94.217.101:44066 [16:58:17] Incoming connection: 53.48.74.40:16705 [16:58:17] Incoming connection: 77.125.43.151:51020 [16:58:17] Incoming connection: 177.27.36.198:45490 [16:58:17] Incoming connection: 5.4.250.203:6671 [16:58:17] Incoming connection: 53.136.69.34:40535 [16:58:17] Incoming connection: 186.255.216.226:46442 [16:58:18] Incoming connection: 5.7.85.189:56600 [16:58:18] Incoming connection: 5.4.124.53:40627 [16:58:18] Incoming connection: 31.19.19.145:45976 [16:58:18] Incoming connection: 186.255.105.81:31954 [16:58:18] Incoming connection: 177.51.208.192:15817 [16:58:18] Incoming connection: 177.27.244.200:24197 [16:58:18] Incoming connection: 99.244.98.153:30288 [16:58:18] Incoming connection: 24.79.8.60:34417 [16:58:18] Incoming connection: 109.67.247.202:22708 [16:58:18] Incoming connection: 177.25.9.205:56386 [16:58:18] Incoming connection: 99.233.58.200:55751 [16:58:18] Incoming connection: 31.231.65.7:53916 [16:58:19] Incoming connection: 53.93.177.129:51047 [16:58:19] Incoming connection: 91.79.125.122:56074 [16:58:19] Incoming connection: 186.222.113.86:37167 [16:58:19] Incoming connection: 47.128.81.85:13164 [16:58:19] Incoming connection: 37.87.30.230:55959 [16:58:19] Incoming connection: 177.26.9.188:12861 [16:58:19] Incoming connection: 177.51.207.106:26377 [16:58:19] Incoming connection: 179.193.82.51:29043 [16:58:19] Incoming connection: 31.19.107.103:28102 [16:58:19] Incoming connection: 177.49.28.112:32395 [16:58:19] Incoming connection: 177.49.96.160:33622 [16:58:19] Incoming connection: 186.223.9.96:15329 [16:58:19] Incoming connection: 53.215.149.160:28807 [16:58:19] Incoming connection: 70.65.192.12:47066 [16:58:19] Incoming connection: 186.223.14.61:34922 [16:58:19] Incoming connection: 186.222.80.145:19548 [16:58:19] Incoming connection: 53.15.228.117:44270 [16:58:19] Incoming connection: 177.25.20.137:50795 [16:58:20] Incoming connection: 53.2.205.229:6434 [16:58:20] Incoming connection: 109.67.105.173:39704 [16:58:20] Incoming connection: 77.126.150.212:31008 [16:58:20] Incoming connection: 77.126.184.23:25961 [16:58:20] Incoming connection: 176.229.103.14:35096 [16:58:20] Incoming connection: 99.233.225.34:38601 [16:58:20] Incoming connection: 177.24.54.201:39349 [16:58:20] Incoming connection: 77.127.143.177:21962 [16:58:20] Incoming connection: 53.120.210.23:30580 [16:58:20] Incoming connection: 53.142.182.198:55120 [16:58:20] Incoming connection: 91.79.47.109:29785 [16:58:20] Incoming connection: 24.81.107.64:40893 [16:58:20] Incoming connection: 5.129.111.212:41144 [16:58:20] Incoming connection: 70.69.20.227:13534 [16:58:20] Incoming connection: 176.229.55.212:14713 [16:58:20] Incoming connection: 85.173.243.153:39624 [16:58:20] Incoming connection: 85.175.176.151:28902 [16:58:20] Incoming connection: 179.193.12.19:34873 [16:58:20] Incoming connection: 77.127.19.8:21305 [16:58:20] Incoming connection: 5.129.97.10:48725 [16:58:20] Incoming connection: 177.24.236.184:17626 [16:58:21] Incoming connection: 85.175.217.13:54069 [16:58:21] Incoming connection: 24.78.58.53:52862 [16:58:21] Incoming connection: 53.153.108.94:22781 [16:58:21] Incoming connection: 186.221.230.129:44892 [16:58:21] Incoming connection: 70.71.68.51:19370 [16:58:21] Incoming connection: 186.254.42.216:18992 [16:58:21] Incoming connection: 5.7.181.239:40053 [16:58:21] Incoming connection: 53.194.223.165:19353 [16:58:21] Incoming connection: 186.254.245.104:27172 [16:58:21] Incoming connection: 53.255.244.147:23963 [16:58:21] Incoming connection: 31.17.69.254:37291 [16:58:21] Incoming connection: 91.76.117.10:43407 [16:58:22] Incoming connection: 53.221.158.141:54114 [16:58:22] Incoming connection: 53.114.18.112:6026
Code:
[16:58:14] Incoming connection: 31.16.216.247:54992 [16:58:14] Incoming connection: 99.244.43.183:24698 [16:58:14] Incoming connection: 187.7.92.187:23519 [16:58:14] Incoming connection: 53.173.81.124:44797 [16:58:14] Incoming connection: 53.213.172.229:36106 [16:58:14] Incoming connection: 53.180.149.128:39176 [16:58:14] Incoming connection: 5.130.66.205:6011 [16:58:14] Incoming connection: 53.55.198.78:5271 [16:58:14] Incoming connection: 70.64.154.37:34270 [16:58:14] Incoming connection: 53.254.121.254:41816 [16:58:15] Incoming connection: 53.20.28.222:52755 [16:58:15] Incoming connection: 5.130.227.165:7407 [16:58:15] Incoming connection: 37.94.72.150:14833 [16:58:15] Incoming connection: 53.105.91.196:24031 [16:58:15] Incoming connection: 87.71.88.233:52163 [16:58:15] Incoming connection: 2.166.241.196:42364 [16:58:15] Incoming connection: 176.230.90.117:38028 [16:58:15] Incoming connection: 37.94.225.60:16761 [16:58:15] Incoming connection: 87.71.70.248:43898 [16:58:15] Incoming connection: 99.230.242.220:48674 [16:58:15] Incoming connection: 31.234.111.100:54213 [16:58:16] Incoming connection: 176.230.235.122:47926 [16:58:16] Incoming connection: 31.227.151.48:39669 [16:58:16] Incoming connection: 187.4.159.172:15228 [16:58:16] Incoming connection: 99.242.140.31:26677 [16:58:16] Incoming connection: 2.169.100.249:29199 [16:58:16] Incoming connection: 109.64.74.53:45605 [16:58:16] Incoming connection: 84.111.186.23:23598 [16:58:16] Incoming connection: 187.7.244.226:7612 [16:58:16] Incoming connection: 84.111.37.175:52146 [16:58:16] Incoming connection: 179.239.187.210:29687 [16:58:16] Incoming connection: 31.227.202.119:19820 [16:58:16] Incoming connection: 179.239.101.127:6075 [16:58:16] Incoming connection: 109.64.178.95:22953 [16:58:16] Incoming connection: 53.93.164.79:21387 [16:58:16] Incoming connection: 24.79.152.20:27406 [16:58:16] Incoming connection: 53.207.210.69:44037 [16:58:16] Incoming connection: 99.230.6.196:16621 [16:58:16] Incoming connection: 53.108.240.99:51069 [16:58:16] Incoming connection: 53.67.156.115:8211 [16:58:17] Incoming connection: 187.4.2.220:24977 [16:58:17] Incoming connection: 53.83.101.250:10156 [16:58:17] Incoming connection: 99.245.199.125:19756 [16:58:17] Incoming connection: 70.64.92.62:32045 [16:58:17] Incoming connection: 37.82.232.102:52109 [16:58:17] Incoming connection: 99.248.240.35:37949 [16:58:17] Incoming connection: 53.80.236.177:13154 [16:58:17] Incoming connection: 53.9.254.202:27808 [16:58:17] Incoming connection: 77.125.94.33:52980 [16:58:17] Incoming connection: 53.94.217.101:44066 [16:58:17] Incoming connection: 53.48.74.40:16705 [16:58:17] Incoming connection: 77.125.43.151:51020 [16:58:17] Incoming connection: 177.27.36.198:45490 [16:58:17] Incoming connection: 5.4.250.203:6671 [16:58:17] Incoming connection: 53.136.69.34:40535 [16:58:17] Incoming connection: 186.255.216.226:46442 [16:58:18] Incoming connection: 5.7.85.189:56600 [16:58:18] Incoming connection: 5.4.124.53:40627 [16:58:18] Incoming connection: 31.19.19.145:45976 [16:58:18] Incoming connection: 186.255.105.81:31954 [16:58:18] Incoming connection: 177.51.208.192:15817 [16:58:18] Incoming connection: 177.27.244.200:24197 [16:58:18] Incoming connection: 99.244.98.153:30288 [16:58:18] Incoming connection: 24.79.8.60:34417 [16:58:18] Incoming connection: 109.67.247.202:22708 [16:58:18] Incoming connection: 177.25.9.205:56386 [16:58:18] Incoming connection: 99.233.58.200:55751 [16:58:18] Incoming connection: 31.231.65.7:53916 [16:58:19] Incoming connection: 53.93.177.129:51047 [16:58:19] Incoming connection: 91.79.125.122:56074 [16:58:19] Incoming connection: 186.222.113.86:37167 [16:58:19] Incoming connection: 47.128.81.85:13164 [16:58:19] Incoming connection: 37.87.30.230:55959 [16:58:19] Incoming connection: 177.26.9.188:12861 [16:58:19] Incoming connection: 177.51.207.106:26377 [16:58:19] Incoming connection: 179.193.82.51:29043 [16:58:19] Incoming connection: 31.19.107.103:28102 [16:58:19] Incoming connection: 177.49.28.112:32395 [16:58:19] Incoming connection: 177.49.96.160:33622 [16:58:19] Incoming connection: 186.223.9.96:15329 [16:58:19] Incoming connection: 53.215.149.160:28807 [16:58:19] Incoming connection: 70.65.192.12:47066 [16:58:19] Incoming connection: 186.223.14.61:34922 [16:58:19] Incoming connection: 186.222.80.145:19548 [16:58:19] Incoming connection: 53.15.228.117:44270 [16:58:19] Incoming connection: 177.25.20.137:50795 [16:58:20] Incoming connection: 53.2.205.229:6434 [16:58:20] Incoming connection: 109.67.105.173:39704 [16:58:20] Incoming connection: 77.126.150.212:31008 [16:58:20] Incoming connection: 77.126.184.23:25961 [16:58:20] Incoming connection: 176.229.103.14:35096 [16:58:20] Incoming connection: 99.233.225.34:38601 [16:58:20] Incoming connection: 177.24.54.201:39349 [16:58:20] Incoming connection: 77.127.143.177:21962 [16:58:20] Incoming connection: 53.120.210.23:30580 [16:58:20] Incoming connection: 53.142.182.198:55120 [16:58:20] Incoming connection: 91.79.47.109:29785 [16:58:20] Incoming connection: 24.81.107.64:40893 [16:58:20] Incoming connection: 5.129.111.212:41144 [16:58:20] Incoming connection: 70.69.20.227:13534 [16:58:20] Incoming connection: 176.229.55.212:14713 [16:58:20] Incoming connection: 85.173.243.153:39624 [16:58:20] Incoming connection: 85.175.176.151:28902 [16:58:20] Incoming connection: 179.193.12.19:34873 [16:58:20] Incoming connection: 77.127.19.8:21305 [16:58:20] Incoming connection: 5.129.97.10:48725 [16:58:20] Incoming connection: 177.24.236.184:17626 [16:58:21] Incoming connection: 85.175.217.13:54069 [16:58:21] Incoming connection: 24.78.58.53:52862 [16:58:21] Incoming connection: 53.153.108.94:22781 [16:58:21] Incoming connection: 186.221.230.129:44892 [16:58:21] Incoming connection: 70.71.68.51:19370 [16:58:21] Incoming connection: 186.254.42.216:18992 [16:58:21] Incoming connection: 5.7.181.239:40053 [16:58:21] Incoming connection: 53.194.223.165:19353 [16:58:21] Incoming connection: 186.254.245.104:27172 [16:58:21] Incoming connection: 53.255.244.147:23963 [16:58:21] Incoming connection: 31.17.69.254:37291 [16:58:21] Incoming connection: 91.76.117.10:43407 [16:58:22] Incoming connection: 53.221.158.141:54114 [16:58:22] Incoming connection: 53.114.18.112:6026 |