mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 18:49:23 +00:00
```diff
+ `Refactored Code`: Improved code structure for better maintainability.
+ `Player Penalties Command`: Introduced the `css_penalties` command to display player penalties.
+ `Admin Penalties Information`: Added functionality to provide information for admins regarding penalties of connecting players.
+ `Disconnected Players Command`: Added the `css_disconnected` command to show a list of disconnected players.
+ `Colorful Messages`: Implemented the `css_cssay` command to send colorful messages, e.g., `css_cssay {lightgreen}Test`.
+ `Respawn Functionality`: Updated the `css_respawn` command to respawn players at their death location.
+ `Menu Type Management`: Introduced the `css_menus` command to change the menu type via `MenuManagerCS2`.
+ `Dynamic Menu Control`: Enhanced menu interaction with dynamic controls using WASD + ER keys.
+ `Language File Updates`: Updated language files for better localization.
+ `API Integration`: Added a simple API for external interaction.
+ `Configurable Timezone`: Introduced timezone settings in the configuration.
+ `Admin Activity Display Options`: Added configurable settings for displaying admin activity:
+ `0`: Do not show
+ `1`: Hide admin name
+ `2`: Show admin name
+ `Discord Notification Customization`: Made Discord duration notifications customizable with `{relative}` and `{normal}` placeholders.
+ Improved command logging
+
`Configuration Options:`
+ `Timezone`
+ `Other Settings`
+ `Disconnected Players History Count`
+ `Show Activity Type`
```
51 lines
2.4 KiB
SQL
51 lines
2.4 KiB
SQL
CREATE TABLE IF NOT EXISTS `sa_bans` (
|
|
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
`player_name` VARCHAR(128),
|
|
`player_steamid` VARCHAR(64),
|
|
`player_ip` VARCHAR(128),
|
|
`admin_steamid` VARCHAR(64) NOT NULL,
|
|
`admin_name` VARCHAR(128) NOT NULL,
|
|
`reason` VARCHAR(255) NOT NULL,
|
|
`duration` INT NOT NULL,
|
|
`ends` TIMESTAMP NULL,
|
|
`created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`server_id` INT NULL,
|
|
`status` ENUM('ACTIVE', 'UNBANNED', 'EXPIRED', '') NOT NULL DEFAULT 'ACTIVE'
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
|
|
CREATE TABLE IF NOT EXISTS `sa_mutes` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`player_name` varchar(128) NULL,
|
|
`player_steamid` varchar(64) NOT NULL,
|
|
`admin_steamid` varchar(64) NOT NULL,
|
|
`admin_name` varchar(128) NOT NULL,
|
|
`reason` varchar(255) NOT NULL,
|
|
`duration` int(11) NOT NULL,
|
|
`ends` timestamp NULL,
|
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`type` enum('GAG','MUTE','SILENCE','') NOT NULL DEFAULT 'GAG',
|
|
`server_id` INT NULL,
|
|
`status` enum('ACTIVE','UNMUTED','EXPIRED','') NOT NULL DEFAULT 'ACTIVE',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
|
|
CREATE TABLE IF NOT EXISTS `sa_admins` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`player_name` varchar(128) NOT NULL,
|
|
`player_steamid` varchar(64) NOT NULL,
|
|
`flags` TEXT NULL,
|
|
`immunity` int(11) NOT NULL DEFAULT 0,
|
|
`server_id` INT NULL,
|
|
`ends` timestamp NULL,
|
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
|
|
CREATE TABLE IF NOT EXISTS `sa_servers` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`hostname` varchar(128) NOT NULL,
|
|
`address` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `address` (`address`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|