class AdminList extends Object
  abstract
  config(AdminPlus_v4);

struct AdminRecord
{
  var string AdminLogin;
  var string AdminPass;
  var string AdminID;
  var byte   AdminPriv;
};
var config array<AdminRecord> AdminList;

static function bool CheckAdmin(PlayerController outer, string Username, string Password)
{
  local int i;
  local array<AdminRecord> temp;

  temp = default.AdminList;
  for(i=0; i<temp.Length; i++)
  {
    if(temp[i].AdminID != outer.GetPlayerIDHash())
      continue;
    if(temp[i].AdminLogin == Username && temp[i].AdminPass == Password)
    {
      outer.PlayerReplicationInfo.bAdmin = true;
      return true;
    }
  }
  return false;
}