Posts: 152
Threads: 68
Joined: Dec 2014
Posts: 596
Threads: 75
Joined: Nov 2015
I would be a bot,every original SA-MP client does have a player id in the server
Btw,you can use this function to detect ip in a string:
Код:
stock stringContainsIP(string[])
{
new dotCount;
for(new i; string[i] != EOS; ++i)
{
if(('0' <= string[i] <= '9') || string[i] == '.' || string[i] == ':')
{
if((string[i] == '.') && (string[i + 1] != '.') && ('0' <= string[i - 1] <= '9'))
{
++dotCount;
}
continue;
}
}
return (dotCount > 2);
}
Posts: 152
Threads: 68
Joined: Dec 2014
Posts: 596
Threads: 75
Joined: Nov 2015
There are some people who use bots to advertise in other servers and mostly to spam and to cause lag in the server.But as you said,you have problem from someone who advertises his/her server in your server,as your server have good player base,you need more security from these type of things especially DDoS.
You can avoid advertising by using the function i posted on my past reply.