Status: Show no-steam clients.

This commit is contained in:
zaCade 2018-03-22 23:40:27 +01:00
parent 51ae6cec1a
commit 3e9e3cda47
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include <sourcemod>
#include <sdktools>
#include <connect>
#tryinclude "serverfps.inc"
@ -162,7 +163,10 @@ public Action Command_Status(int client, const char[] command, int args)
}
if(IsClientInGame(player))
FormatEx(sPlayerState, sizeof(sPlayerState), "active");
if (SteamClientAuthenticated(sPlayerAuth))
FormatEx(sPlayerState, sizeof(sPlayerState), "active");
else
FormatEx(sPlayerState, sizeof(sPlayerState), "nosteam");
else
FormatEx(sPlayerState, sizeof(sPlayerState), "spawning");

View File

@ -13,6 +13,7 @@ enum EConnect
forward EConnect OnClientPreConnectEx(const char[] sName, char sPassword[255], const char[] sIP, const char[] sSteam32ID, char sRejectReason[255]);
native bool ClientPreConnectEx(const char[] sSteam32ID, EConnect RetVal, char sRejectReason[255]);
native bool SteamClientAuthenticated(const char[] sSteam32ID);
/**
* Do not edit below this line!