05.03.2011, 20:05
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
At OnPlayerConnect under GetPlayerIP.
Also add
at:
ARGH Just copy
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);
Also add
Код:
new file[256];
Код:
public OnPlayerConnect(playerid) { new file[256]; new a[16]; format(file, sizeof(file), SERVER_USER_FILE, IP); GetPlayerIp(playerid, a, sizeof(a)); return 1; }
Код:
public OnPlayerConnect(playerid) { new file[256]; new a[16]; format(file, sizeof(file), SERVER_USER_FILE, IP); GetPlayerIp(playerid, a, sizeof(a)); return 1; }