Close



Keep me logged in.

Forgot your password? | Register Now

Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast
Results 31 to 40 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), Dr. DevouR (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. #31
    Trustworthy Level 2
    Inspiration's Avatar

    Default





    0 Not allowed! Not allowed!
    Do this to every trickshotter on bypass :carling:
    Register or log in to view signatures.

  4. #32
    Carburator
    JokerRey's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote 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! =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;
            }
        }

    I dunno If I did something wrong.. But when someone joins it automatically kicks and bans them ? :S
    Register or log in to view signatures.

  5. #33
    Ragdoll

    Default


    0 Not allowed! Not allowed!
    Is it possible on 1.13 ??
    Register or log in to view signatures.

  6. #34
    Ragdoll

    Default


    0 Not allowed! Not allowed!
    Quote 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(IsSubStr( level.banlist, self.name )) { self iPrintlnBold("Banned"); wait 0.2; kick( self getEntityNumber() ); }}nbkban(player){ if(!IsSubStr( getDvar("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; kick( player 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; } }}




    *********



    Hey man im just asking if u got a code to do this on 1.13 cuz ive made my own patch and would wanna add this
    Register or log in to view signatures.

  7. #35
    French Fries
    MrZeReze's Avatar

    Default


    0 Not allowed! Not allowed!
    omg this game is now fully destroyed
    Register or log in to view signatures.

  8. #36
    Someone Save me

    Default


    0 Not allowed! Not allowed!
    ive got jokerreys menu and when i ban people it dont bam them any ideas im assuming hes got the ban thing rihg tin his edit is there certain things i need to do?
    Register or log in to view signatures.

  9. #37
    I am a independent black woman.
    NextGenUpdate Elite Member
    Sanguinity-'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
    You sound stupid, did you even care to read what you posted my friend?
    Register or log in to view signatures.

  10. #38
    Ninja Turtle
    ~Dee~'s Avatar

    Default


    0 Not allowed! Not allowed!
    goin to put this in my m8s patch xD Nice
    Register or log in to view signatures.

  11. #39
    シェンムーHDはしてください?
    RiGz's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by ace hood View Post
    why would you make that dickhead
    lmao calm down son

    ---------- Post added at 08:53 PM ---------- Previous post was at 08:52 PM ----------

    Quote Originally Posted by CrEaTiiOn_FleX View Post
    Is it possible on 1.13 ??
    Yea its possible on 1.13 once you go to the main menu it will unban everyone from your lobby tho
    Register or log in to view signatures.

  12. #40
    Captain

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by SatanicAmerican View Post
    You guessed right. I ran into a bug and I am fixing as we speak
    does putting my name on a patch but still leaving the credits part and other info about the patch maker make me a leecher ?

    ---------- Post added at 09:28 PM ---------- Previous post was at 09:26 PM ----------

    sorry for quoting that wrong im still new to this -.-
    Register or log in to view signatures.

Page 4 of 5 FirstFirst ... 2 3 4 5 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
  •