Results 1 to 8 of 8
  1. #1
    desrow's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0

    Dedicated server banning

    Hello members of MPGH
    (Unsure if this is the right section...forgive me!)
    Recently I viewed the thread by BarackObamaCare about his Server Chat Announcement spammer and I have a small idea.

    If you could remotely send messages to everyone from the server, wouldn't it be possible to remotely ban users too? Even if it was a dedicated server?

    I am literally blowing a fuse at my brain looking at the NetworkBans and the DLL that the above thread supplied.

    I really have no idea how this would work...does anyone have any clues?
    Attached Thumbnails Attached Thumbnails
    S0hynHJ.png  


  2. #2
    Blueblood1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    711
    Reputation
    132
    Thanks
    7,125
    My Mood
    Mellow
    I tried to remotely send SpawnPlayers.reset() to every player, which should kill everyone on the server, but it had no effect and didn't even kill me. I don't think you can just send these commands, but there probably is a loop hole somewhere there.

  3. #3
    Color's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    19,896
    Reputation
    2588
    Thanks
    7,864
    My Mood
    Lurking
    Moved to correct.

    Member Since 8/05/2012
    Editor 4/04/13 - 4/21/13
    Middleman 7/14/13 - 11/4/13

    Battlefield Minion 6/13/14-3/20/15
    Steam Minion 7/16/14-3/20/15

    Minion+ 10/1/14-3/20/15
    M.A.T. Minion 10/19/14-3/20/15
    ROTMG Minion 1/14/15-3/20/15

    Donator Since 2/26/15 (Thanks @Cursed!)
    Steam Minion 5/9/15 - 11/5/15
    OSFPS Minion 9/15/15 - 11/5/15


  4. #4
    xiEatNoodlezx's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Location
    X:\Windows\System32
    Posts
    167
    Reputation
    10
    Thanks
    616
    My Mood
    Busy
    public static void ban(string name, string id)
    {
    bans.Add(new NetworkBanned(name, id));
    save();
    }




    public static void ban(string name, string id)
    {
    bans.Add(new NetworkBanned(name, id));
    save();
    }

  5. #5
    desrow's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    If only I knew how to use that

  6. #6
    xiEatNoodlezx's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Location
    X:\Windows\System32
    Posts
    167
    Reputation
    10
    Thanks
    616
    My Mood
    Busy
    public static void kick(NetworkPlayer player, string reason)
    {
    NetworkChat.sendNotification(player, reason);
    NetworkChat.sendAlert(reason);
    if (player == Network.player)
    {
    disconnect();
    }
    else
    {
    Network.CloseConnection(player, true);
    }
    }

    public static void ban(NetworkPlayer player, string name, string id, string reason)
    {
    NetworkBans.ban(name, id);
    kick(player, reason);
    }


    If only i knew how to use them too

  7. #7
    BarackObamaCare's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    175
    Reputation
    10
    Thanks
    199
    My Mood
    Happy
    Quote Originally Posted by xiEatNoodlezx View Post
    public static void kick(NetworkPlayer player, string reason)
    {
    NetworkChat.sendNotification(player, reason);
    NetworkChat.sendAlert(reason);
    if (player == Network.player)
    {
    disconnect();
    }
    else
    {
    Network.CloseConnection(player, true);
    }
    }

    public static void ban(NetworkPlayer player, string name, string id, string reason)
    {
    NetworkBans.ban(name, id);
    kick(player, reason);
    }


    If only i knew how to use them too
    The Code Works But will need some editing due to it just banning yourself and kicking yourself
    Last edited by BarackObamaCare; 07-28-2014 at 11:21 PM.

  8. #8
    desrow's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by BarackObamaCare View Post
    The Code Works But will need some editing due to it just banning yourself and kicking yourself
    ...everyone knows what they are doing except me

Similar Threads

  1. VAC-banned for joining "dedicated servers"
    By Drazzix in forum Call of Duty Modern Warfare 2 Discussions
    Replies: 12
    Last Post: 04-24-2010, 05:42 AM
  2. DEDICATED SERVERS :)?
    By nekrokill in forum Call of Duty Modern Warfare 2 Help
    Replies: 12
    Last Post: 01-10-2010, 10:18 PM
  3. *New MW2 Pro Dedicated Servers Petition
    By eliteop in forum Call of Duty Modern Warfare 2 Discussions
    Replies: 10
    Last Post: 11-21-2009, 06:04 AM
  4. CoD: MW2 - NO Dedicated Servers for PC
    By eliteop in forum General
    Replies: 0
    Last Post: 10-20-2009, 05:55 AM