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.
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?
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.
Moved to correct.
Muh Tumblr (NSFW)
Click HERE to join the Night Owls if you stay up late on MPGH
Anime Recommendation (3/14/15) | Manga/Manhwa Recommendation (8/20/15)
^ I'll update one of these soon I swear ^
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
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();
}
If only I knew how to use that
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