From 7ebee9298f2054a18711a6a08bd85cbb618e536a Mon Sep 17 00:00:00 2001 From: Ganter1234 <98544111+Ganter1234@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:21:56 +0300 Subject: [PATCH] Recompile --- GetSteamID.cs | 62 ++++++++++++++++++++++------------------------- GetSteamID.csproj | 31 ++++++++++++------------ 2 files changed, 45 insertions(+), 48 deletions(-) diff --git a/GetSteamID.cs b/GetSteamID.cs index 6d5d72b..9d9a25f 100644 --- a/GetSteamID.cs +++ b/GetSteamID.cs @@ -1,34 +1,30 @@ -using System; -using CounterStrikeSharp.API; -using CounterStrikeSharp.API.Core; -using CounterStrikeSharp.API.Core.Attributes.Registration; -using CounterStrikeSharp.API.Modules.Commands; -using CounterStrikeSharp.API.Modules.Memory; -using CounterStrikeSharp.API.Modules.Menu; -using CounterStrikeSharp.API.Modules.Utils; -using CounterStrikeSharp.API.Modules.Entities; - -namespace GetSteamID; -public class GetSteamID : BasePlugin -{ - public override string ModuleName => "Get SteamID"; - public override string ModuleVersion => "1.0.0"; - public override string ModuleAuthor => "Ganter1234"; - - [ConsoleCommand("steam", "Get your SteamID")] - public void SteamCommand(CCSPlayerController? player, CommandInfo command) - { - if(player != null && player.PlayerPawn != null && player.PlayerPawn.IsValid) - { - var steamid64 = player.SteamID; - SteamID steam = new SteamID(steamid64); - var steamid3 = steam.SteamId3; - player.PrintToChat($"Приветствую, {ChatColors.Green}{player.PlayerName}!"); - player.PrintToChat($"SteamID64: {ChatColors.Red}{steamid64}"); - player.PrintToChat($"SteamID2: {ChatColors.Purple}{steam.SteamId2}"); - player.PrintToChat($"SteamID3: {ChatColors.Yellow}{steamid3}"); - steamid3 = steamid3.Replace("[", "").Replace("U:1:", "").Replace("]", ""); - player.PrintToChat($"AccountID: {ChatColors.Olive}{steamid3}"); - } - } +using CounterStrikeSharp.API.Core; +using CounterStrikeSharp.API.Core.Attributes.Registration; +using CounterStrikeSharp.API.Modules.Commands; +using CounterStrikeSharp.API.Modules.Utils; +using CounterStrikeSharp.API.Modules.Entities; + +namespace GetSteamID; +public class GSID : BasePlugin +{ + public override string ModuleName => "Get SteamID"; + public override string ModuleVersion => "1.0.0"; + public override string ModuleAuthor => "Ganter1234"; + + [ConsoleCommand("steam", "Get your SteamID")] + public void SteamCommand(CCSPlayerController? player, CommandInfo command) + { + if(player != null && player.PlayerPawn != null && player.PlayerPawn.IsValid) + { + var steamid64 = player.SteamID; + SteamID steam = new SteamID(steamid64); + var steamid3 = steam.SteamId3; + player.PrintToChat($"Приветствую, {ChatColors.Green}{player.PlayerName}!"); + player.PrintToChat($"SteamID64: {ChatColors.Red}{steamid64}"); + player.PrintToChat($"SteamID2: {ChatColors.Purple}{steam.SteamId2}"); + player.PrintToChat($"SteamID3: {ChatColors.Yellow}{steamid3}"); + steamid3 = steamid3.Replace("[", "").Replace("U:1:", "").Replace("]", ""); + player.PrintToChat($"AccountID: {ChatColors.Olive}{steamid3}"); + } + } } \ No newline at end of file diff --git a/GetSteamID.csproj b/GetSteamID.csproj index ec4a1f1..6363049 100644 --- a/GetSteamID.csproj +++ b/GetSteamID.csproj @@ -1,16 +1,17 @@ - - - - net7.0 - AnyCPU;x86 - false - true - enable - - - - - ..\CounterStrikeSharp.API.dll - - + + + + false + false + net7.0 + AnyCPU;x86 + true + enable + + + + + False + + \ No newline at end of file