mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
【UPDATE 1.7.1a】 🆕 What's new and what's changed: - Fixed 2x player lock text - Added immunity check when using css_addX - MenuManagerCS2 has been updated - Added return of lock ID by api (check example_module) - Fixed reasons for locks, no longer need to use `“”` if there is a space in them - Improved handling of lock times, from now on you can use: -- 1mo - 1 month -- 1w - 1 week -- 1d - 1 day -- 1h - 1 hour -- 1m - 1 minute -- 1 - 1 minute You can also combine it, e.g: 10d5h - 10 days and 5 hours 2w3d - 2 weeks and 3 days 1w1d1h1 - 1 week, 1 day and 1 minute So for example css_ban player 10d5h Super reason for my ban - Added a `rcon_password` column in the `sa_servers` table that populates with the rcon password - Fixed `banid` and banning - Fixed too fast kick (it was caused by checking players online) ⚠️ **Remember to update all files + api**
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using CounterStrikeSharp.API.Modules.Entities;
|
|
using CounterStrikeSharp.API.Modules.Utils;
|
|
|
|
namespace CS2_SimpleAdminApi;
|
|
|
|
public class PlayerInfo(
|
|
int? userId,
|
|
int slot,
|
|
SteamID steamId,
|
|
string name,
|
|
string? ipAddress,
|
|
int totalBans = 0,
|
|
int totalMutes = 0,
|
|
int totalGags = 0,
|
|
int totalSilences = 0,
|
|
int totalWarns = 0)
|
|
{
|
|
public int? UserId { get; } = userId;
|
|
public int Slot { get; } = slot;
|
|
public SteamID SteamId { get; } = steamId;
|
|
public string Name { get; } = name;
|
|
public string? IpAddress { get; } = ipAddress;
|
|
public int TotalBans { get; set; } = totalBans;
|
|
public int TotalMutes { get; set; } = totalMutes;
|
|
public int TotalGags { get; set; } = totalGags;
|
|
public int TotalSilences { get; set; } = totalSilences;
|
|
public int TotalWarns { get; set; } = totalWarns;
|
|
public bool WaitingForKick { get; set; } = false;
|
|
public DiePosition? DiePosition { get; set; }
|
|
}
|
|
|
|
public struct DiePosition(Vector position, QAngle angle)
|
|
{
|
|
public Vector Position { get; set; } = position;
|
|
public QAngle Angle { get; set; } = angle;
|
|
}
|