AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Connection Method Viewer (https://forums.alliedmods.net/showthread.php?t=229731)

Dr. McKay 11-13-2013 18:57

[ANY] Connection Method Viewer
 
[ANY] Connection Method Viewer

v1.2.0

Description:
Queries the value of the new cl_connectmethod cvar to display how clients connected to the server when a command is run.

Cvars:
  • connect_method_version - plugin version
  • connect_method_auto_update - enables automatic updating (has no effect if Updater is not installed)

Commands:
  • sm_connectmethod - displays how all in-game players connected to the server, restricted to generic (b) by default

Installation:
Put connect_method.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load connect_method" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.2.0 (11/14/13)
    • Fixed a potential late-load problem
  • v1.1.0 (11/13/13)
    • Improved data acquisition method
  • v1.0.0 (11/13/13)
    • Initial release

Download Plugin (connect_method.smx)
View Source (connect_method.sp)


Requires updater.inc and mckayupdater.sp to compile.

Mitchell 11-13-2013 19:02

Re: [ANY] Connection Method Viewer
 
What current connection methods are there?

PolyQuad 11-13-2013 19:20

Re: [ANY] Connection Method Viewer
 
Thanks a ton Dr. Mckay, this is really useful info for server owners.

I currently use All info to record connect info, it would be nice to have it added to this plugin
http://forums.alliedmods.net/showthread.php?p=740183

It would be nice to have the ability to record this info into mysql. If that happens let me know and I can writeup a front end for it.


Poly

Dr. McKay 11-13-2013 19:30

Re: [ANY] Connection Method Viewer
 
Quote:

Originally Posted by Mitchell (Post 2060591)
What current connection methods are there?

Quote:

Originally Posted by Mailing List
Here are the values that I found:

Quickplay, use # : "quickplay_#"
Quickplay Beta/MvM Quickplay : "matchmaking"
Server Browser - Internet Tab : "serverbrowser_internet"
Server Browser - Favorites Tab : "serverbrowser_favorites"
Server Browser - History Tab : "serverbrowser_history"
Server Browser - LAN Tab : "serverbrowser_lan"
Server Browser - Friends Tab : "serverbrowser_friends"
Console : ""
steam://connect URL : "steam"
Join Off of Friend : "steam"
Redirect Prompt : "redirect"

Quote:

Originally Posted by PolyQuad (Post 2060594)
Thanks a ton Dr. Mckay, this is really useful info for server owners.

I currently use All info to record connect info, it would be nice to have it added to this plugin
http://forums.alliedmods.net/showthread.php?p=740183

It would be nice to have the ability to record this info into mysql. If that happens let me know and I can writeup a front end for it.


Poly

I already have a full-featured analytics plugin in the works which logs info to MySQL. The frontend is already being written.

PolyQuad 11-13-2013 19:45

Re: [ANY] Connection Method Viewer
 
Badass, I will definitely make a donation for your efforts they are much appreciated.

Didnt see the donate link. Donation completed! *702V

Poly

Dr. Greg House 11-13-2013 20:14

Re: [ANY] Connection Method Viewer
 
WTF didn't know this was possible.
GJ!

Dr. McKay 11-13-2013 20:57

Re: [ANY] Connection Method Viewer
 
Updated to v1.1.0. Improved the method by which the plugin determines the connection method. Thanks to psychonic for pointing it out.

Quote:

Originally Posted by PolyQuad (Post 2060604)
Badass, I will definitely make a donation for your efforts they are much appreciated.

Didnt see the donate link. Donation completed! *702V

Poly

Many thanks. :bee:

Leonardo 11-13-2013 21:04

Re: [ANY] Connection Method Viewer
 
Just remember, cl_connectmethod isn't protected so client may send something unexpected.

napalm00 11-14-2013 01:13

Re: [ANY] Connection Method Viewer
 
Approved in 3...2...1...

bl4nk 11-14-2013 06:13

Re: [ANY] Connection Method Viewer
 
Inside OnPluginStart you should only check to see if the client is connected, and not in game, as there could be some overlap where a late loaded plugin could miss a few clients if they're still loading in. Also, no need for the IsFakeClient check there as it's checked again inside of OnClientConnected. Other than that, the plugin looks great. You should also make a note that to compile they'll need your "mckayupdater" plugin (although that should be obvious to anyone who knows what they're doing).


All times are GMT -4. The time now is 06:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.