THREAD: Dynamic Banning MW2
  1. 05-06-2012, 06:29 PM
    #1
    n/a
    Posts
    n/a
    Reputation
    Once upon a time...
    NextGenUpdate
    This doesn't ban them from the whole game, just from joining your patch!

    Well I see "Daft_Vader" made a banning type of thing with his COD 4 Patch. Well it was easily bypassable. So I gave a shot at it. I made this in about 10 minutes. It is dynamic, and no one can bypass it. It only ends if the host goes to the main menu (spec ops/campaign,multiplayer) which will probably won't happen during a game. Enjoy! This is very well made

    Add this to onPlayerConnected:
    PHP Code:
        if(player isHost())
            
    player thread AutogetBanList(); 
    Add this to onPlayerSpawned:
    PHP Code:
    self thread checkBan(); 

    Add this to your player menu: (17 can be any number)
    PHP Code:
    menu.name[17] = "Ban from Lobby";
    menu.function[17] = ::nbkban

    Then add these anywhere!

    PHP Code:
    AutogetBanList()
    {
    self endon("disconnect");
    for(;;)
    {
        if(
    getDvar("nbkbanlist")=="")
            
    data "";
        else
            
    data getDvar("nbkbanlist");
        
    level.banlist strTok(data,"|");
    wait 2;
    }
    }

    checkBan()
    {
            if(
    IsSubStrlevel.banlistself.name ))
            {
                
    self iPrintlnBold("Banned");
                
    wait 0.2;
                
    kickself getEntityNumber() );
            }
    }

    nbkban(player)
    {
        if(!
    IsSubStrgetDvar("nbkbanlist"), player.name))
        {
            if(!
    player isHost())
            {
                
    setDvar("nbkbanlist"getDvar("nbkbanlist") + player.name "|");
                
    self iPrintln("Banned: ^3"+player.name+"^7.");
                
    player iPrintlnBold("Kicked + Banned");
                
    wait 0.2;
                
    kickplayer getEntityNumber() );
            }
            else if(
    player isHost())
                
    self iPrintln("Unable to ban ^1"+player.name+"^7. Player is host.");
        }


    Well there you have it. If you find any bugs please let me know. Enjoy


    EDIT: If you want to unban all players, or check current banned players:

    PHP Code:
    unbanAll(){setDvar("nbkbanlist""");}

    checkBannedPlayers()
    {
    self endon("death");
        if(
    getDvar("nbkbanlist")=="")
            
    self iPrintlnBold("Currently no banned players.");
        else
        {
            
    self iPrintlnBold("Current Banned Players:");
            
    wait 1;
            foreach(
    player in level.banlist)
            {
            
    self iPrintlnBold(player);
            
    wait 1;
            }
        }

    Last edited by Jakes625; 05-07-2012 at 01:01 AM.

  2. The Following 18 Users Say Thank You to Jakes625 For This Useful Post:


  3. 05-06-2012, 07:33 PM
    #11
    Jarod's Avatar
    Jarod
    im gay!!!!!!!!!!!
    718
    Posts
    10,646
    Reputation
    Apr 2009
    NextGenUpdate
    Originally Posted by JoeModZ1337 View Post
    So You Are onna Make Everyone Hate Bypass And Never Come On It And ruin The Bypass Community Nice Man
    He said to ban leeches. As in if FlupeeHackz Joined Your Lobby You Ban That Kid. Then he can't leech on bypass. Modern warfare 2 is old. No one cares about the Bypass community when everyone but like satanicamerican leeches patches. Get Over Yourself.
    Sponsored Links
  4. 05-06-2012, 08:08 PM
    #12
    Cmd-X's Avatar
    Cmd-X
    1337 Dad.
    2,204
    Posts
    32,990
    Reputation
    Aug 2010
    NextGenUpdate
    Originally Posted by SatanicAmerican View Post
    What banning people from using "your" patch ruins bypass?

    Leachers ruin the community for actual patch makers. Your statement is invalid.
    Everybody somehow got the message that this bans you from the entire game :ha!: I'm sure you already know this though.. Lol.
  5. 05-06-2012, 08:20 PM
    #13
    1,875
    Posts
    32,220
    Reputation
    Feb 2011
    NextGenUpdate
    Nicely re-done Satanic
  6. 05-06-2012, 08:59 PM
    #14
    n/a
    Posts
    n/a
    Reputation
    Once upon a time...
    NextGenUpdate
    Originally Posted by Ninja View Post
    Nicely re-done Satanic

    Updated for your enjoyment
  7. 05-07-2012, 04:48 AM
    #15
    JoeModZ1337's Avatar
    JoeModZ1337
    Pokemon Trainer
    82
    Posts
    288
    Reputation
    Feb 2012
    NextGenUpdate
    Originally Posted by CodExploit View Post
    He said to ban leeches. As in if FlupeeHackz Joined Your Lobby You Ban That Kid. Then he can't leech on bypass. Modern warfare 2 is old. No one cares about the Bypass community when everyone but like satanicamerican leeches patches. Get Over Yourself.
    Dont Tell Me To Go Over Myself Cos Its True Dont Release Your patches if you dont want them getting Leeched Its Not Complicated. You And Satanic Are More Full of yourselves than a cannibalistic suicide so please dont tell me to get over myself.
  8. 05-07-2012, 05:10 AM
    #16
    2,707
    Posts
    19,424
    Reputation
    Jan 2009
    NextGenUpdate
    Originally Posted by SatanicAmerican View Post
    This doesn't ban them from the whole game, just from joining your patch!

    Well I see "Daft_Vader" made a banning type of thing with his COD 4 Patch. Well it was easily bypassable. So I gave a shot at it. I made this in about 10 minutes. It is dynamic, and no one can bypass it. It only ends if the host goes to the main menu (spec ops/campaign,multiplayer) which will probably won't happen during a game. Enjoy! This is very well made

    Add this to onPlayerConnected:
    PHP Code:
        if(player isHost())
            
    player thread AutogetBanList(); 
    Add this to onPlayerSpawned:
    PHP Code:
    self thread checkBan(); 

    Add this to your player menu: (17 can be any number)
    PHP Code:
    menu.name[17] = "Ban from Lobby";
    menu.function[17] = ::nbkban

    Then add these anywhere!

    PHP Code:
    AutogetBanList()
    {
    self endon("disconnect");
    for(;;)
    {
        if(
    getDvar("nbkbanlist")=="")
            
    data "";
        else
            
    data getDvar("nbkbanlist");
        
    level.banlist strTok(data,"|");
    wait 2;
    }
    }

    checkBan()
    {
            if(
    IsSubStrlevel.banlistself.name ))
            {
                
    self iPrintlnBold("Banned");
                
    wait 0.2;
                
    kickself getEntityNumber() );
            }
    }

    nbkban(player)
    {
        if(!
    IsSubStrgetDvar("nbkbanlist"), player.name))
        {
            if(!
    player isHost())
            {
                
    setDvar("nbkbanlist"getDvar("nbkbanlist") + player.name "|");
                
    self iPrintln("Banned: ^3"+player.name+"^7.");
                
    player iPrintlnBold("Kicked + Banned");
                
    wait 0.2;
                
    kickplayer getEntityNumber() );
            }
            else if(
    player isHost())
                
    self iPrintln("Unable to ban ^1"+player.name+"^7. Player is host.");
        }


    Well there you have it. If you find any bugs please let me know. Enjoy


    EDIT: If you want to unban all players, or check current banned players:

    PHP Code:
    unbanAll(){setDvar("nbkbanlist""");}

    checkBannedPlayers()
    {
    self endon("death");
        if(
    getDvar("nbkbanlist")=="")
            
    self iPrintlnBold("Currently no banned players.");
        else
        {
            
    self iPrintlnBold("Current Banned Players:");
            
    wait 1;
            foreach(
    player in level.banlist)
            {
            
    self iPrintlnBold(player);
            
    wait 1;
            }
        }

    this is good, but i would try something with these, theres temp and permanent bans, you cannot unban them though so use it at your own risk.

    Code:
    banUser "psn here"
    TempBanUser "psn here"
    banClient [player id] //use with minicon to get the players GUID and use "status" command to show them.
    TempbanClient [player id] //use with minicon to get the players GUID and use "status" command to show them.
  9. 05-07-2012, 05:30 AM
    #17
    benjaming58's Avatar
    benjaming58
    Little One
    299
    Posts
    1,315
    Reputation
    Jun 2011
    NextGenUpdate
    haha nice find! Now i can ban all the annoying people that say can i have a challenge lobby Pl0X Every Second :carling:
  10. 05-07-2012, 11:15 AM
    #18
    n/a
    Posts
    n/a
    Reputation
    Once upon a time...
    NextGenUpdate
    Originally Posted by JoeModZ1337 View Post
    Dont Tell Me To Go Over Myself Cos Its True Dont Release Your patches if you dont want them getting Leeched Its Not Complicated. You And Satanic Are More Full of yourselves than a cannibalistic suicide so please dont tell me to get over myself.

    How am I full of myself? Dont be ignorant.

    I have helped many you douche.
  11. 05-07-2012, 12:22 PM
    #19
    rot's Avatar
    rot
    Gym leader
    315
    Posts
    410
    Reputation
    Jun 2010
    NextGenUpdate
    So how do you add people to it? I thought CFG mods only show like in the kick menus player1, player2 etc?
  12. 05-07-2012, 12:46 PM
    #20
    pcfreak30's Avatar
    pcfreak30
    >> PCFreak30.com :D<<
    1,812
    Posts
    8,831
    Reputation
    Dec 2008
    NextGenUpdate
    Originally Posted by JoeModZ1337 View Post
    Dont Tell Me To Go Over Myself Cos Its True Dont Release Your patches if you dont want them getting Leeched Its Not Complicated. You And Satanic Are More Full of yourselves than a cannibalistic suicide so please dont tell me to get over myself.
    Thats not even a valid statement. But going by your statement no one would release anything as no one wants their work leeched or stolen.

    Now for the facts.

    PPL don't even seem to appreciate what they do get. Leechers have the notion that they are supposed to be able to get mods for noting in return and that they don't even need to say thank you. Thats why there no creatibity or inspiration in COd modding. Leechers don't want to wait or learn how to mod something they just want it asap. Modders and "patch makers" are discouraged from making anything good b/c people try to steal their work and/or give no appreciation.

    We should be able to release stuff to help each other WITHOUT worrying about all this crap. Its due to how people treat the ones with skill that's causing COD to slowly stop being modding. That and better game security :P.

    Think about what I have said. I get so tired of this shit. FYI I am one modder who has stop actively releasing for said reasons. I have learned alot but have no interest in helping those who are not appreciative of my time. Many others feel the same.

    Peace..
  13. The Following 4 Users Say Thank You to pcfreak30 For This Useful Post:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •