24.06.2014, 14:10
(
Last edited by ATomas; 25/06/2014 at 01:04 PM.
)
Resolved, was a hack, attaching to all the script, which I wrote and protects the server
pawn Code:
#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;
}