View Single Post
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-13-2019 , 08:59   Re: [CSGO] check profile status in csgo
Reply With Quote #3

Quote:
Originally Posted by Ilusion9 View Post
Use OnClientPostAdminCheck instead of OnClientPutInServer (clients might not have a valid steamid in that function).

https://sm.alliedmods.net/new-api/cl...entPutInServer
dont work:
PHP Code:
public void OnClientPostAdminCheck(int client)
{
    
SetToDefaults(client);
    
    if(
IsValidClient(client))
    {
        if(
sm_cac_profilecheck.BoolValue)
        {
            
Handle request CreateRequest_ProfileStatus(client);
            
SteamWorks_SendHTTPRequest(request);
        }
        
        if(
sm_cac_hourcheck.BoolValue)
        {
            
Handle request CreateRequest_TimePlayed(client);
            
SteamWorks_SendHTTPRequest(request);
        }
    }

Dr.Mohammad is offline