mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-24 12:19:17 +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`
```
37 lines
1.1 KiB
SQL
37 lines
1.1 KiB
SQL
INSERT INTO sa_admins_flags (admin_id, flag)
|
|
SELECT
|
|
min_admins.admin_id,
|
|
TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(sa_admins.flags, ',', numbers.n), ',', -1)) AS flag
|
|
FROM (
|
|
SELECT MIN(id) AS admin_id, player_steamid, server_id
|
|
FROM sa_admins
|
|
WHERE player_steamid != 'Console'
|
|
GROUP BY player_steamid, server_id
|
|
) AS min_admins
|
|
JOIN sa_admins ON min_admins.player_steamid = sa_admins.player_steamid
|
|
JOIN (
|
|
SELECT 1 AS n UNION ALL
|
|
SELECT 2 UNION ALL
|
|
SELECT 3 UNION ALL
|
|
SELECT 4 UNION ALL
|
|
SELECT 5 UNION ALL
|
|
SELECT 6 UNION ALL
|
|
SELECT 7 UNION ALL
|
|
SELECT 8 UNION ALL
|
|
SELECT 9 UNION ALL
|
|
SELECT 10 UNION ALL
|
|
SELECT 11 UNION ALL
|
|
SELECT 12 UNION ALL
|
|
SELECT 13 UNION ALL
|
|
SELECT 14 UNION ALL
|
|
SELECT 15 UNION ALL
|
|
SELECT 16 UNION ALL
|
|
SELECT 17 UNION ALL
|
|
SELECT 18 UNION ALL
|
|
SELECT 19 UNION ALL
|
|
SELECT 20
|
|
) AS numbers
|
|
ON CHAR_LENGTH(sa_admins.flags) - CHAR_LENGTH(REPLACE(sa_admins.flags, ',', '')) >= numbers.n - 1
|
|
AND (min_admins.server_id = sa_admins.server_id OR (min_admins.server_id IS NULL AND sa_admins.server_id IS NULL))
|
|
WHERE sa_admins.id IS NOT NULL;
|