With this function you can find an administrator through SteamId, for example...
PHP Code:
#include <sourcemod>
public Plugin myinfo =
{
name = "Check Admin",
author = "sekm",
description = "",
version = "1.0",
url = "https://steamcommunity.com/id/h5r/"
};
public void OnPluginStart()
{
RegConsoleCmd("sm_checkadmin", Command_CheckAdmin);
}
public Action Command_CheckAdmin(int iClient, int iArgs)
{
AdminId iAdmin = FindAdminByIdentity("steam", "STEAM_0:0:1347337");
if (iAdmin != INVALID_ADMIN_ID)
{
PrintToChatAll("SteamId: STEAM_0:0:1347337 has admin");
}
else
{
PrintToChatAll("SteamId: STEAM_0:0:1347337 has not a admin");
}
}
Greetings!