1.5.1a
- Possibility to use new line in translations - Improved initializing - More errors logging - Localized Message refactor
This commit is contained in:
parent
3bc51330af
commit
bb0a236f28
16 changed files with 334 additions and 368 deletions
|
|
@ -64,13 +64,13 @@ namespace CS2_SimpleAdmin
|
|||
public static List<CCSPlayerController> GetValidPlayers()
|
||||
{
|
||||
return Utilities.GetPlayers().FindAll(p => p is
|
||||
{ IsBot: false, IsHLTV: false });
|
||||
{ IsValid: true, IsBot: false, Connected: PlayerConnectedState.PlayerConnected });
|
||||
}
|
||||
|
||||
public static IEnumerable<CCSPlayerController?> GetValidPlayersWithBots()
|
||||
{
|
||||
return Utilities.GetPlayers().FindAll(p =>
|
||||
p is { IsBot: false, IsHLTV: false } or { IsBot: true, IsHLTV: false }
|
||||
p is { IsValid: true, IsBot: false, IsHLTV: false } or { IsValid: true, IsBot: true, IsHLTV: false }
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -314,6 +314,11 @@ namespace CS2_SimpleAdmin
|
|||
return message;
|
||||
}
|
||||
|
||||
public static string[] SeparateLines(string message)
|
||||
{
|
||||
return message.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
|
||||
}
|
||||
|
||||
public static string GetServerIp()
|
||||
{
|
||||
var network_system = NativeAPI.GetValveInterface(0, "NetworkSystemVersion001");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue