Status: Show no-steam clients.
This commit is contained in:
parent
51ae6cec1a
commit
3e9e3cda47
@ -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");
|
||||
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user