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

admin rights not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-15-2024 , 16:52   admin rights not working
Reply With Quote #1

I write myself in admin.cfg as an administrator, but I am not an administrator on the server, has anyone encountered this problem?
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");


Last edited by Gold Fish; 02-15-2024 at 16:52.
Gold Fish is offline
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-17-2024 , 12:14   Re: admin rights not working
Reply With Quote #2

why does the function GetClientAuthId() always return STEAM_ID_STOP_IGNORING_RETVALS?

HTML Code:
	char steamid[32];
	GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid));
	PrintToChatAll("steamid: %s",steamid);
because of this, I can't get admin rights on the server.
is there a problem with steam?
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");

Gold Fish is offline
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-17-2024 , 12:49   Re: admin rights not working
Reply With Quote #3

the problem was with my hosting server
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");


Last edited by Gold Fish; 02-17-2024 at 12:50.
Gold Fish is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-20-2024 , 20:02   Re: admin rights not working
Reply With Quote #4

Quote:
Originally Posted by Gold Fish View Post
why does the function GetClientAuthId() always return STEAM_ID_STOP_IGNORING_RETVALS?
The reason for this is because you're using it incorrectly.

PHP Code:
    char steamid[32];
    if (
GetClientAuthId(clientAuthId_Steam2steamidsizeof(steamid))) {
        
PrintToChatAll("steamid: %s",steamid);
    } else {
        
/* Something went wrong, ... do what we have to do in a such case ...
            ... should we maybe create a timer and re-check later? */
        
PrintToChatAll("Something went wrong trying to retrieve %N's SteamID."client);
    } 
__________________
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
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 02:45.


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