NoSteamManager: Remove sm_usertype.

This commit is contained in:
zaCade 2019-02-28 18:32:24 +01:00
parent ee09b14f28
commit a13004bdb0

View File

@ -38,8 +38,6 @@ public void OnPluginStart()
RegConsoleCmd("sm_nosteam", Command_DisplaySteamStats, "Shows the number of Steam and No-Steam players");
RegConsoleCmd("sm_steam", Command_DisplaySteamStats, "Shows the number of Steam and No-Steam players");
RegAdminCmd("sm_usertype", Command_DisplayUserTypes, ADMFLAG_BAN, "Show the usertypes of Steam and No-Steam players");
AutoExecConfig();
Database.Connect(OnDatabaseConnect, "antispoofing");
@ -104,46 +102,6 @@ public Action Command_DisplaySteamStats(int client, int args)
return Plugin_Handled;
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
public Action Command_DisplayUserTypes(int client, int args)
{
PrintToConsole(client, "# %8s %40s %24s %12s %s",
"userid", "name", "uniqueid", "type", "steam");
for(int player = 1; player <= MaxClients; player++)
{
if(!IsClientConnected(player) || IsFakeClient(player))
continue;
char sPlayerID[8];
char sPlayerName[MAX_NAME_LENGTH + 2];
char sPlayerAuth[24];
char sPlayerType[64];
char sPlayerSteam[64];
FormatEx(sPlayerID, sizeof(sPlayerID), "%d", GetClientUserId(player));
FormatEx(sPlayerName, sizeof(sPlayerName), "\"%N\"", player);
if(!GetClientAuthId(player, AuthId_Steam2, sPlayerAuth, sizeof(sPlayerAuth)))
FormatEx(sPlayerAuth, sizeof(sPlayerAuth), "STEAM_ID_PENDING");
if(!RevEmu_GetPlayerType(player, sPlayerType, sizeof(sPlayerType)))
FormatEx(sPlayerType, sizeof(sPlayerType), "Invalid");
if (RevEmu_IsPlayerSteam(player))
FormatEx(sPlayerSteam, sizeof(sPlayerSteam), "Yes");
else
FormatEx(sPlayerSteam, sizeof(sPlayerSteam), "No");
PrintToConsole(client, "# %8s %40s %24s %12s %s",
sPlayerID, sPlayerName, sPlayerAuth, sPlayerType, sPlayerSteam);
}
return Plugin_Handled;
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------