GZ on your first plugin!
but you coded in the old syntax, here is a code with the new syntax, feel free to use it:
PHP Code:
/*
* SteamID Checker Plugin by : kycocss
* SourceMod (c) 2015.
* No Copyright Disclaimed. All rights reserved.
*/
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo =
{
name = "SteamID Checker",
author = "kycocss",
description = "check steamid by typing in chat",
version = "2.5.0",
url = "http://forums.alliedmods.net/",
};
public void OnPluginStart()
{
RegConsoleCmd("sm_steamid", CommandSteamid, "");
}
public Action CommandSteamid(int client, int args)
{
char authid[32];
GetClientAuthId(client, AuthId_Steam2, authid, sizeof(authid));
PrintToChat(client, "\x04[SM] \x01Here is your \x04%s \x01SteamID.", authid);
return Plugin_Handled;
}