Files
CS2-SimpleAdmin/CS2-SimpleAdminApi/PlayerInfo.cs
Dawid Bepierszcz 38f1f0c782 Add files via upload
2025-08-07 11:28:01 +02:00

39 lines
1.1 KiB
C#

using CounterStrikeSharp.API.Modules.Entities;
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 List<(ulong SteamId, string PlayerName)> AccountsAssociated { get; set; } = [];
public DiePosition? DiePosition { get; set; }
}
public class DiePosition(Vector_t position, QAngle_t angle)
{
public Vector_t Position { get; } = position;
public QAngle_t Angle { get; } = angle;
}