Raised This Month: $32 Target: $400
 8% 

GetClientAuthId giving STEAM_ID_STOP_IGNORI


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kunalpowar
Junior Member
Join Date: Sep 2014
Old 01-04-2018 , 04:04   GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #1

Am using GetClientAuthId with AuthIdType as AuthId_Engine. And the steam ID detected is STEAM_ID_STOP_IGNORI. Any idea why this would happen?

Last edited by kunalpowar; 01-04-2018 at 04:05.
kunalpowar is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-04-2018 , 05:35   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #2

GetClientAuthId is returning false because the client is not authenticated/validated yet, and you aren't checking the return value before using the buffer.
__________________
asherkin is offline
kunalpowar
Junior Member
Join Date: Sep 2014
Old 01-04-2018 , 06:25   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
GetClientAuthId is returning false because the client is not authenticated/validated yet, and you aren't checking the return value before using the buffer.
Am calling GetClientAuthId in OnClientAuthorized. Shouldn't that mean, the client is authenticated already?
kunalpowar is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-04-2018 , 06:34   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #4

Show code.
__________________
asherkin is offline
Beaast_exe
Junior Member
Join Date: Sep 2017
Old 01-04-2018 , 11:55   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #5

Code:
new String:steamid[64];
GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid), false);
You have to get that "false" to continue.

I have a !myid command.

PluginStart: RegAdminCmd("sm_myid", Command_OwnSteamID, "Command to grab own SteamID.");
Code:
public Action:Command_OwnSteamID(client, args)
{
	new String:steamid[64];
	GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid), false);
	ReplyToCommand(client, "\x016[Bananas On Fire] \x01Your \x06SteamID \x01 is \x07%s", steamid);
	
	return Plugin_Handled;
}
Beaast_exe is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 01-04-2018 , 12:44   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #6

Do not set the last parameter to false unless you want to allow people to fake their SteamIDs.
Fyren is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-04-2018 , 13:40   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #7

It also won’t change anything in relation to calls inside OnClientAuthorized.
__________________
asherkin is offline
Beaast_exe
Junior Member
Join Date: Sep 2017
Old 01-04-2018 , 13:55   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #8

Quote:
Originally Posted by Fyren View Post
Do not set the last parameter to false unless you want to allow people to fake their SteamIDs.
REALLY ??
XD
They cant fake their SteamIDS unless you create a command to it ...
Beaast_exe is offline
Beaast_exe
Junior Member
Join Date: Sep 2017
Old 01-04-2018 , 13:56   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #9

Quote:
Originally Posted by asherkin View Post
It also won’t change anything in relation to calls inside OnClientAuthorized.
What onClientAuthorized make ??
Beaast_exe is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-04-2018 , 15:08   Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI
Reply With Quote #10

Quote:
Originally Posted by Beaast_exe View Post
They cant fake their SteamIDS unless you create a command to it ...
"They" can fake their own steamids on connect. AFAIK servers can't fake a clients steamid, closest thing is hiding any display of their steamid and redisplaying it with a modified ID.
Mitchell 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 11:41.


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