Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #pragma newdecls required
- #pragma semicolon 1
- public Plugin myinfo = {
- description = "Shows all SteamID for player",
- version = "1.0",
- author = "CrazyHackGUT aka Kruzya",
- name = "[ANY] SteamID shower",
- url = "https://kruzya.me/"
- };
- stock const char gc_szAuthNames[][] = { "Engine ID", "v2", "v3", "Community ID" };
- public void OnPluginStart() {
- RegConsoleCmd("sm_myserial", CmdHandler);
- }
- public Action CmdHandler(int iClient, int iArgC) {
- if (iClient == 0) return Plugin_Handled;
- if (!IsClientAuthorized(iClient)) {
- ReplyToCommand(iClient, "[SM] Повторите попытку позднее.");
- return Plugin_Handled;
- }
- char szBuffer[32];
- for (AuthIdType iAuth = AuthId_Steam2; view_as<int>(iAuth) < 4; ++iAuth)
- if (GetClientAuthId(iClient, iAuth, szBuffer, sizeof(szBuffer)))
- ReplyToCommand(iClient, "[SM] Ваш Steam %s: %s", gc_szAuthNames[view_as<int>(iAuth)], szBuffer);
- return Plugin_Handled;
- }
Advertisement
Add Comment
Please, Sign In to add comment