27.11.2013, 04:17
I'm using this include that uses LookupFFS, and I cannot grab if the user is using a proxy.
Does anyone have any idea what could be doing this? When a player connects it won't tell me if they're using a proxy.
The url to the include: https://sampforum.blast.hk/showthread.php?tid=460410
Thanks guys.
Does anyone have any idea what could be doing this? When a player connects it won't tell me if they're using a proxy.
pawn Код:
public OnLookupComplete(playerid)
{
new string[128];
new pname[24];
GetPlayerName(playerid,pname,sizeof(pname));
new ip[16];
GetPlayerIp(playerid,ip,16);
if(IsProxyUser(playerid))
{
format(string,sizeof(string),"{208DD6}[SERVER] {FFFFFF}%s[%d] has been kicked from the server. (Possible Proxy).",pname,playerid);
SendClientMessageToAll(COLOR_ADMIN,string);
SetTimerEx("KickPlayer", 1000, false, "i", playerid);
}
format(string,sizeof(string),"7%s[%d] has joined the server. (Proxy: %s).",pname,playerid,IsProxyUser(playerid));
Say(IRC_ADMINCHANNEL,string);
return 1;
}
Thanks guys.