Check IP when connect?
#2

For tut you must #define IP_FINDER "location"
like:
#define IP_FINDER "myserver\%s.txt" // NOTE: Change myserver to something

So this will do it, and than you need to block some ips like: 66.92.110.20.

So if u find it on a website, You will find it on the scriptfiles\myserver\%s.txt too.

for how to block it.. Ask others.

Try this if it works if u got errors on compiling, reply.

And do this also!

Add
Код:
format(file, sizeof(file), SERVER_USER_FILE, IP);
At OnPlayerConnect under GetPlayerIP.

Also add
Код:
new file[256];
at:

Код:
public OnPlayerConnect(playerid)
{
      new file[256];
      new a[16];
      format(file, sizeof(file), SERVER_USER_FILE, IP);
      GetPlayerIp(playerid, a, sizeof(a));
      return 1;
}
ARGH Just copy

Код:
public OnPlayerConnect(playerid)
{
      new file[256];
      new a[16];
      format(file, sizeof(file), SERVER_USER_FILE, IP);
      GetPlayerIp(playerid, a, sizeof(a));
      return 1;
}
Reply


Messages In This Thread
Check IP when connect? - by Jantjuh - 21.12.2010, 13:54
Re: Check IP when connect? - by bestr32 - 05.03.2011, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)