PDA

View Full Version : [HELP] OnClientAuthorized doesn't work


puga4off
10-07-2014, 19:54
Hi everyone. I have some trouble : forwards OnClientAuthorized, OnClientPostAdminCheck working times through time. OnClientConnected is working. What is reason? (have last sourcemod, metamod, updated srcds)


#pragma semicolon 1

#include <sourcemod>

public Plugin:myinfo =
{
name = "my plugin",
author = "me",
description = "",
version = "1.0",
url = "https://www.example.com/"
};

public OnPluginStart()
{
}

public OnClientPostAdminCheck(client)
{
LogMessage("OnClientPostAdminCheck");
}

public OnClientConnected(client)
{
LogMessage("OnClientConnected");
}

public OnClientAuthorized(client, const String:auth[])
{
LogMessage("OnClientAuthorized");
}

bl4nk
10-08-2014, 00:15
What mod are you trying this on? Could you give us the output of the following server commands:

version
meta version
sm version

puga4off
10-08-2014, 02:03
Just notice, VAC kicked me after some time when OnClientAuthorized is not working with error : STEAMAUTH : error code. How to make server kick player if he is not really connected to steam? Strange that server console print : player with some steam_id just connected and then VAC kicked me and when i reload steam, it work's fine

Mitchell
10-08-2014, 10:51
If you cant connect to steam, then you cant verify your steamid
if you cant verify your steamid then OnClientAuthorized does not fire. (because the client wasnt authorized)
right?

puga4off
10-08-2014, 19:56
I understood the reason. How do not allow player connect to my server if he is not connected to steam?