BlueMond
|
  |
| Joined: 26 Dec 2007 |
| Total Posts: 47 |
|
|
| 01 Jul 2013 09:18 PM |
| I've done some testing with the NetworkServer which can be returned by using game:GetService("NetworkServer"). Every player's connection is stored under it using a NetworkReplicator object and I was wondering if there is anything you can do with this service. I've already tried deleting a connection but the Service is locked so that wasn't possible. (Btw it can only be accessed when in a live server) |
|
|
| Report Abuse |
|
|
Gavin12
|
  |
| Joined: 01 Apr 2008 |
| Total Posts: 1910 |
|
|
| 02 Jul 2013 12:06 AM |
| NetworkReplicator:GetPlayer() --Returns the connected player. ^,^ |
|
|
| Report Abuse |
|
|
BlueMond
|
  |
| Joined: 26 Dec 2007 |
| Total Posts: 47 |
|
|
| 02 Jul 2013 12:09 AM |
| Well I know that but is there really anything you can do with it besides that? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 12:16 AM |
http://wiki.roblox.com/index.php/NetworkReplicator http://wiki.roblox.com/index.php/CloseConnection_(Method)
You can disconnect the client. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 12:17 AM |
| Never mind, it's a locked method. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 02 Jul 2013 12:33 AM |
repeat wait() until serverStarted; game:service("NetworkServer").IncommingConnection:connect(function(peer, rep) if isBannedIP(rep) or (rep:GetPlayer() and isBannedPlayer(rep:GetPlayer().Name)) then rep:CloseConnection(); end _G.ServerUtilities.ClientsConnected=game:service("NetworkServer"):GetClientCount(); end)
It may be locked but I still used it |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 02 Jul 2013 12:34 AM |
| ^ from https://github.com/blocco/RBXPri-Legacy-Code/blob/master/rpui/server.lua |
|
|
| Report Abuse |
|
|
shayan414
|
  |
| Joined: 11 Aug 2008 |
| Total Posts: 8090 |
|
|
| 02 Jul 2013 03:18 AM |
@Cody
Of course its a locked method, imagine how many admin scripts would use that method against its prestigious powers. I can only imagine how much users would abuse that.
|
|
|
| Report Abuse |
|
|
shayan414
|
  |
| Joined: 11 Aug 2008 |
| Total Posts: 8090 |
|
|
| 02 Jul 2013 03:19 AM |
@blocco
Ah nice, some of your RBXPri code. |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 02 Jul 2013 03:31 AM |
| @Blocco I've been looking around the web for ages for that code! I had it on my pc before but idk where it went. |
|
|
| Report Abuse |
|
|
BlueMond
|
  |
| Joined: 26 Dec 2007 |
| Total Posts: 47 |
|
| |
|
BlueMond
|
  |
| Joined: 26 Dec 2007 |
| Total Posts: 47 |
|
|
| 02 Jul 2013 11:02 AM |
| But yes I checked the wiki and the event is protected (locked) |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 11:03 AM |
| @blocco I'm pretty sure Incommingconnection was locked. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 11:40 AM |
| the old rbxpri used level 7. |
|
|
| Report Abuse |
|
|