Map and say commands

Source https://github.com/Hackmastr/css-basic-admin
This commit is contained in:
daffyyyy
2023-12-02 23:16:04 +01:00
parent fa508c965a
commit 31bc91e0a4
3 changed files with 84 additions and 5 deletions

View File

@@ -37,7 +37,15 @@ namespace CS2_SimpleAdmin
public static void KickPlayer(int? userId, string? reason = null)
{
Server.ExecuteCommand($"kickid {userId} {reason}");
NativeAPI.IssueServerCommand($"kickid {userId} {reason}");
}
public static void PrintToCenterAll(string message)
{
Utilities.GetPlayers().ForEach(controller =>
{
controller.PrintToCenter(message);
});
}
internal static string ReplaceTags(string message)