Author Topic: ip priority on full servers  (Read 976 times)

0 Members and 1 Guest are viewing this topic.

Offline Hello!

  • Major(1)
  • Posts: 9
ip priority on full servers
« on: January 06, 2007, 05:21:29 pm »
We want to make a evro server with a priority for russians to join it. For example: if someone with russian ip wants to join a full server, a evro player will be replaced to specs and russian player can join. Is it possible or not?

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: ip priority on full servers
« Reply #1 on: January 06, 2007, 07:47:02 pm »
Yeah you can do that, but you would have to manually determine what country they are from based on their IP address.

Offline iftach

  • Major(1)
  • Posts: 16
Re: ip priority on full servers
« Reply #2 on: April 25, 2007, 03:16:49 pm »
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.

Code: [Select]
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;