Close



Keep me logged in.

Forgot your password? | Register Now

Page 1 of 5 1 2 3 ... LastLast
Results 1 to 10 of 44
  1. Original Post
    [move]Jake from state farm.[/move] 402 Crew!
    Jake625's Avatar

    Default Dynamic Banning MW2




    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! =D

    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.
    Register or log in to view signatures.

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

    CoDyMoDz1000XD (05-07-2012), Convex (05-07-2012), DuhvouR (05-07-2012), itzHaZed (05-06-2012), Jarod. (05-06-2012), Jasdeep (05-07-2012), JokerRey (05-17-2012), LightModz (06-09-2012), Lord Hal (05-07-2012), Maty360414 (05-07-2012), Ninja (05-06-2012), Pauly (05-06-2012), Rin1 (05-07-2012), seb5594 (05-07-2012), The NGU Jew (05-07-2012), TheFuziioN- (06-06-2012), WOLF (05-07-2012), xRafiq- (05-08-2012)

  3. #2
    [move] Gone. [/move]
    Jarod.'s Avatar

    Default


    0 Not allowed! Not allowed!
    This makes me cry. But now I'm going to go ban everyone on bypass
    Register or log in to view signatures.

  4. #3
    I love my cat
    NextGenUpdate Elite Member
    Jango's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by SatanicAmerican View Post
    It only ends if you go to the main menu (host) which will probz never happen! Enjoy!
    What does that mean exactly? As in you go to the main menu and then it will end.
    Register or log in to view signatures.

  5. #4
    [move]Jake from state farm.[/move] 402 Crew!
    Jake625's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Jango View Post
    What does that mean exactly? As in you go to the main menu and then it will end.
    It means if you are in a game, back out, and go to the main menu (spec ops, campaign, multiplayer) it will be reset.
    Register or log in to view signatures.

  6. #5
    I love my cat
    NextGenUpdate Elite Member
    Jango's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by SatanicAmerican View Post
    It means if you are in a game, back out, and go to the main menu (spec ops, campaign, multiplayer) it will be reset.
    Alright. Sounds good.
    Register or log in to view signatures.

  7. #6
    [move]Jake from state farm.[/move] 402 Crew!
    Jake625's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Ace Hood View Post
    Why would you make that dickhead
    To stop leachers from joining your lobby..
    Register or log in to view signatures.

  8. #7
    ƃuɐʍ ɟןoƃ
    Cmd-X's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by SatanicAmerican View Post
    To stop leachers from joining your lobby..
    Lmao! You're hilarious! That dude called you a dickhead and you're just all chill and shit.. Lmao I love you :drack:
    Register or log in to view signatures.

  9. #8
    Banned

    Default


    0 Not allowed! Not allowed!
    brb banning everyone
    Register or log in to view signatures.

  10. #9
    Roasted Bacon
    JoeModZ1337's Avatar

    Default


    0 Not allowed! Not allowed!
    So You Are onna Make Everyone Hate Bypass And Never Come On It And ruin The Bypass Community Nice Man
    Register or log in to view signatures.

  11. #10
    [move]Jake from state farm.[/move] 402 Crew!
    Jake625's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote 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
    What banning people from using "your" patch ruins bypass?

    Leachers ruin the community for actual patch makers. Your statement is invalid.
    Register or log in to view signatures.

Page 1 of 5 1 2 3 ... LastLast

Posting Permissions

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