Raised This Month: $ Target: $400
 0% 

Get steam name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-09-2018 , 08:05   Get steam name
Reply With Quote #1

How do you get a player's steam name if names can be changed through setinfo name "New Name"?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 06-09-2018 , 08:40   Re: Get steam name
Reply With Quote #2

You can call the Steam API using some HTTP framework, e.g. SteamWorks.
__________________
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
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-09-2018 , 10:22   Re: Get steam name
Reply With Quote #3

Quote:
Originally Posted by arne1288 View Post
You can call the Steam API using some HTTP framework, e.g. SteamWorks.
Too much work... Is there a way to hook setinfo command? The only way to change your name is setinfo and steam name change. Oh, the console variable name cannot be changed, and is always equal to your steam name.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 06-09-2018 at 10:24.
eyal282 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 06-09-2018 , 16:06   Re: Get steam name
Reply With Quote #4

Quote:
Originally Posted by eyal282 View Post
Too much work... Is there a way to hook setinfo command? The only way to change your name is setinfo and steam name change. Oh, the console variable name cannot be changed, and is always equal to your steam name.
Not sure if that "name" always 100% identical to the Steam name though.

But the "name" command comes from the client, and as such, I wouldn't trust it blindly.

Just like there are some cheats that allows you to set r_drawothermodels (walhack) even if sv_cheats is 0, you can most likely use the same sort of cheats to fool your server into believing that the faked "name" is the real one.

Too much work? It's maybe a little bit more with the HTTP calls, but isn't it worth it doing it that way, if you get a 100% accurate response, rather than having a 50-50 chance of some fake value?
__________________
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
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-09-2018 , 16:45   Re: Get steam name
Reply With Quote #5

Quote:
Originally Posted by arne1288 View Post
Not sure if that "name" always 100% identical to the Steam name though.

But the "name" command comes from the client, and as such, I wouldn't trust it blindly.

Just like there are some cheats that allows you to set r_drawothermodels (walhack) even if sv_cheats is 0, you can most likely use the same sort of cheats to fool your server into believing that the faked "name" is the real one.

Too much work? It's maybe a little bit more with the HTTP calls, but isn't it worth it doing it that way, if you get a 100% accurate response, rather than having a 50-50 chance of some fake value?
If someone actually is willing to code a cheat to bypass name change indicator I'll give him the right to bypass it LMAO.

Edit: And risking a VAC ban as well
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 06-10-2018 at 05:00.
eyal282 is offline
Reply



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 19:48.


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