Raised This Month: $12 Target: $400
 3% 

To know how the player connected to the server?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
a4r2
New Member
Join Date: Dec 2020
Old 01-11-2021 , 22:18   To know how the player connected to the server?
Reply With Quote #1

I'm coding a sourcepawn mod for L4D2.

It's a little bit quirky but is there a way to identify how the player connected to the server?

Like, from quick match, lobby list, using openserverbrowser or connect "x.x.x.x:27105".

Last edited by a4r2; 01-11-2021 at 22:20.
a4r2 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-12-2021 , 14:47   Re: To know how the player connected to the server?
Reply With Quote #2

You can try looking into "cl_connectmethod" with GetClientInfo.

There might be some samples for you to see, by looking into sources of plugins like e.g.:

-> [ANY] Connection Method Viewer
-> [ANY] Player Analytics

Due to this thread, I'm however sceptical about whether it will work or not in L4D2..
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
a4r2
New Member
Join Date: Dec 2020
Old 01-16-2021 , 08:40   Re: To know how the player connected to the server?
Reply With Quote #3

Quote:
Originally Posted by DarkDeviL View Post
You can try looking into "cl_connectmethod" with GetClientInfo.

There might be some samples for you to see, by looking into sources of plugins like e.g.:

-> [ANY] Connection Method Viewer
-> [ANY] Player Analytics

Due to this thread, I'm however sceptical about whether it will work or not in L4D2..


Thanks for the idea!! Sadly it seems that this won't work in L4D2. Just shows blank string...
a4r2 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:01.


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