I know its a bump, but if anybody wants to get player's Country by is IP, this little code i made. I recommend to not use it, because it will lag and bug.
procedure OnJoinGame(IP, Nickname: string;Team: byte);
var
StringURL, : string;
begin
StringURL:=getURL('http://www.ipaddresslocation.org/ip-address-location.php?ip='+IP);
StringURL:=GetPiece(StringURL,'found in ',2);
StringURL:=GetPiece(StringURL,' ',1); //now the StringURL equals the Country...
command('/say Welcome '+Nickname+' From: '+StringURL);
end;