View Single Post
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 11-12-2018 , 14:03   Re: [CS:S] SteamID Checker Plugin by KycoCss
Reply With Quote #2

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 clientint args)
{
    
char authid[32];
    
GetClientAuthId(clientAuthId_Steam2authidsizeof(authid));
    
    
PrintToChat(client"\x04[SM] \x01Here is your \x04%s \x01SteamID."authid);
    return 
Plugin_Handled;

iskenderkebab33 is offline