• 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release [Half-Outdated]Ban fix
#1
Hey,
This is just a quick fix for the ban bug people are experiencing
since i'm at the university i can't extensively test it but it seems to work
Simply insert it into the plugins folder and forget about is Tongue
Why half outdated, because the xuid dont end up in the permanen.ban file, but it still kicks if someone is in there

Code:
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Addon;
namespace BanFunction
{
    public class BanFunction : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("Ban fixer loaded");
        }
        public override string OnCheckBan(string xuid)
        {
            try
            {
                String line;
                StreamReader sr = new StreamReader("main\\permanent.ban");
                while ((line = sr.ReadLine()) != null)
                {
                    string[] split = line.Split(' ');
                    if (split[0].Equals(xuid))
                    {
                        sr.Close();
                        return "You have been banned from this server";
                    }
                }
            }
            catch (Exception e)
            {
                ServerPrint("An error has occured:" + e.Message);

            }
            return null;
        }
    }
}
Virus scan:
https://www.virustotal.com/file/f5a92950...328536584/

Mirror:
http://94.75.245.138/plugins/BanFunction.dll


Attached Files
.rar   BanFunction.rar (Size: 1.9 KB / Downloads: 102)
[-] The following 3 users say Thank You to bonemind for this post:
  • d0h!, JariZ, Tylerd86
  Reply
#2
Thanks will test later mate!
  Reply
#3
I'm jelly.

My PermBan for MW2 consisted of way more code.
  Reply
#4
(02-06-2012, 18:47)SuperNovaAO Wrote: I'm jelly.

My PermBan for MW2 consisted of way more code.

I can imagine, only thing this does is what the server for some reason doesn't do, which is, actually check if someone is banned..
or at least, people are actually kicked xD
  Reply
#5
@bonemind
WTF ban bug?
  Reply
#6
(02-08-2012, 18:35)Yurio Wrote: @bonemind
WTF ban bug?

Some servers for some reason apparantly didn't kick banned people
  Reply
#7
Hi bonemind

Ban fix not working - when use kick or ban just show text of ban and player in serevr
  Reply
#8
(02-08-2012, 20:04)amirdj Wrote: Hi bonemind

Ban fix not working - when use kick or ban just show text of ban and player in serevr

What?
This only works if someone already has been banned and does not get kicked...this doesnt do anything else...
  Reply
#9
Hi bonemind

Were do Banned or kicked players GUID get put once banned?
Never mind bonemind found it it is in MW3\Main folder thanks any how

  Reply
#10
With that fix, !rcon banclient or !rcon ban dont work. and of course, nothing fixed.

I got a great problem all !ban !banc !rcon ban !rconbanclient, dont work only kick players.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] ZombieS Project - outdated - barata 9 2,724 01-03-2013, 03:26
Last Post: barata
  1.9.448 CT editor [outdated] Gladio 5 2,266 09-29-2012, 20:54
Last Post: TacoHD
  Half Life 3 Arteq 15 3,797 09-29-2012, 14:15
Last Post: Arteq
  I GOT 2 VIEWS IN HALF AN YEAR YAY 4FunPlayin 37 6,975 07-12-2012, 04:59
Last Post: AZUMIKKEL
  [Release] Outdated ranked server files for MW3 OrangePL 318 116,346 02-15-2012, 09:33
Last Post: JariZ
  [Release] Mw3 VB Ingame Trainer Source Code(outdated adresses) barata 7 3,121 01-21-2012, 00:52
Last Post: aosma8
  Half-Life 2 & Half-Life 2: Episode One Giveaway! "Giveaway Is Over" The Clay Man 4 1,489 12-26-2011, 13:03
Last Post: d0h!

Forum Jump:


Users browsing this thread: 1 Guest(s)