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

(CS:S) Wrong SteamID-Universe


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xice1337
AlliedModders Donor
Join Date: Dec 2015
Old 03-11-2024 , 12:13   (CS:S) Wrong SteamID-Universe
Reply With Quote #1

I have a strange issue with the GetClientAuthId function.
Context: I had a CS:GO server, and since Valve switched to CS2 and CS:GO is more or less dead, I want to migrate this server to CS:S.
Im currently still using my CS:GO database to store things like player profiles and many other things, including the SteamID.
Now, in the database, there's still my "old" SteamID that starts with "STEAM_1:0" from CS:GO.
In the admin.cfg for CS:S, I have accordingly set my id to "STEAM_0:0:".

Now, onto the actual problem:
Although its very rare, sometimes I get a rank again (from my plugin, due to the user profile from the database) and also lose admin rights,
which can be due to the GetClientAuthId function returning the SteamID as "STEAM_1:0" instead of "STEAM_0:0".
Any ideas how this happens?
(Btw, I dont really want to switch to other SteamID formats because it could be a lot of work and might increase the occurrence of bugs in the plugins.)

Thanks
xice1337 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-21-2024 , 09:22   Re: (CS:S) Wrong SteamID-Universe
Reply With Quote #2

The two prefixes are interchangeable and all core SM plugins ignore them, any correctly written plugin should.
__________________
asherkin 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 15:02.


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