mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 02:41:55 +00:00
Map and say commands
Source https://github.com/Hackmastr/css-basic-admin
This commit is contained in:
10
Helper.cs
10
Helper.cs
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user