Thread: Perm ban

Results 1 to 9 of 9
  1. #1
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    828
    My Mood
    Cool

    Perm ban

    I have seen the perm ban gsc code but is there anyway to make so it reads a .txt banlist or .gsc banlist

  2. #2
    Emma Watson's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,581
    Reputation
    2
    Thanks
    239
    ()get;
    banlist.txt
    ?
    I dont know, I am not much of a coder for mw2.

    but some kind of a string that gets to locate and reads the file. (I am guessing AlterIWnet Dedi server)

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,538
    My Mood
    Angelic
    Quote Originally Posted by intervention61 View Post
    I have seen the perm ban gsc code but is there anyway to make so it reads a .txt banlist or .gsc banlist
    Yes, there is. But you need to add the players name.

    So you can make a list that auto kicks banned players.

    If you have the name or Xuid.
    ( The long number + letter code in the mw2 console when you type in status )

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,314
    My Mood
    Breezy
    You can't read txt files, sorry. /

    You could create a GSC dedicated to adding new GUIDs and such then just check the list somehow from _rank.gsc.

    Example:

    _userBan.gsc
    Code:
    loadSettings()
    {
        level.bannedGUIDs = [];
        level readBannedGUIDList();
    }
    
    readBannedGUIDList() //Add GUIDs to ban here
    {
        AddGUID("1001010101010101");
        AddGUID("1001253423001420");
    }
    
    AddGUID(GUID)
    {
        level.bannedGUIDs[level.bannedGUIDs.size] = GUID;
    }
    _rank.gsc
    Code:
    init()
    {
        level thread maps\mp\gametypes\_userBan::loadSettings(); //This accesses the other GSC and reads the banned users
        //Rest of code from init()
    }
    
    onPlayerConnect()
    {
        level waittill("connected", player);
        //This code will kick the player if they are banned
        for(i = 0; i < level.bannedGUIDs.size; i++) //Goes through each banned GUID
            if(player.GUID == level.bannedGUIDs[i]) //If the player's GUID equals the current banned GUID
                kick(player getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT"); //Kick the player (sorta like a ban, they can't join without being kicked)
        //Rest of code from onPlayerConnect
    }
    Last edited by master131; 05-04-2011 at 06:20 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  5. The Following User Says Thank You to master131 For This Useful Post:

    intervention61 (05-04-2011)

  6. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,538
    My Mood
    Angelic
    Quote Originally Posted by master131 View Post
    You can't read txt files, sorry. /

    You could create a GSC dedicated to adding new GUIDs and such then just check the list somehow from _rank.gsc.
    Example:
    Code:
    _userBan.gscloadSettings()
    {
        level.bannedGUIDs = [];
        level readBannedGUIDList();
    }
    
    readBannedGUIDList() //Add GUIDs to ban here
    {
        AddGUID("1001010101010101");
        AddGUID("1001253423001420");
    }
    
    AddGUID(GUID)
    {
        level.bannedGUIDs[level.bannedGUIDs.size] = GUID;
    }
    
    _rank.gsc
    init()
    {
        level thread maps\mp\gametypes\_userBan::loadSettings(); //This accesses the other GSC and reads the banned users
        //Rest of code from init()
    }
    
    onPlayerConnect()
    {
        level waittill("connected", player);
        //This code will kick the player if they are banned
        for(i = 0; i < level.bannedGUIDs.size; i++) //Goes through each banned GUID
            if(player.GUID == level.bannedGUIDs[i]) //If the player's GUID equals the current banned GUID
                kick(player getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT"); //Kick the player (sorta like a ban, they can't join without being kicked)
        //Rest of code from onPlayerConnect
    }

    Wups, my falt.
    I didn't think about the txt question.

    I was just thinking on the GSC...

    Sorry
    Last edited by Jorndel; 05-04-2011 at 06:33 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  7. #6
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    828
    My Mood
    Cool
    Quote Originally Posted by master131 View Post
    You can't read txt files, sorry. /

    You could create a GSC dedicated to adding new GUIDs and such then just check the list somehow from _rank.gsc.

    Example:

    _userBan.gsc
    Code:
    loadSettings()
    {
        level.bannedGUIDs = [];
        level readBannedGUIDList();
    }
    
    readBannedGUIDList() //Add GUIDs to ban here
    {
        AddGUID("1001010101010101");
        AddGUID("1001253423001420");
    }
    
    AddGUID(GUID)
    {
        level.bannedGUIDs[level.bannedGUIDs.size] = GUID;
    }
    _rank.gsc
    Code:
    init()
    {
        level thread maps\mp\gametypes\_userBan::loadSettings(); //This accesses the other GSC and reads the banned users
        //Rest of code from init()
    }
    
    onPlayerConnect()
    {
        level waittill("connected", player);
        //This code will kick the player if they are banned
        for(i = 0; i < level.bannedGUIDs.size; i++) //Goes through each banned GUID
            if(player.GUID == level.bannedGUIDs[i]) //If the player's GUID equals the current banned GUID
                kick(player getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT"); //Kick the player (sorta like a ban, they can't join without being kicked)
        //Rest of code from onPlayerConnect
    }
    Thanks, Really helpful.

  8. #7
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic
    kick( player getEntityNumber(), "EXE_PLAYERKICKED_YOUR_MESSAGE" ); // custom kick msg !!! WITH _ !!!!

  9. #8
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by YuDi21 View Post
    kick( player getEntityNumber(), "EXE_PLAYERKICKED_YOUR_MESSAGE" ); // custom kick msg !!! WITH _ !!!!
    Thats old, was posted long time ago, but it can cause terrible lagg in lobby if somebody is kicked with it more than once.

  10. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,538
    My Mood
    Angelic
    Quote Originally Posted by Yamato View Post
    Thats old, was posted long time ago, but it can cause terrible lagg in lobby if somebody is kicked with it more than once.
    And no one like lagg

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A