Skip to content

Commit

Permalink
redm ConCommand: add more info about commit or release
Browse files Browse the repository at this point in the history
* more aesthetic
* add Docs link
  • Loading branch information
SergeyShorokhov committed Jun 21, 2024
1 parent cc18215 commit 05cebf6
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions cstrike/addons/amxmodx/scripting/ReDeathmatch.sma
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,27 @@ public ConCmd_redm_status(const player, const level, const commandId) {
public ConCmd_redm(const player, const level, const commandId) {
SetGlobalTransTarget(player)

console_print(player, " _____ _____ __ __")
console_print(player, "| __ \ | __ \| \/ |")
console_print(player, "| |__) |___| | | | \ / |")
console_print(player, "| _ // _ \ | | | |\/| |")
console_print(player, "| | \ \ __/ |__| | | | |")
console_print(player, "|_| \_\___|_____/|_| |_|")

console_print(player, "[Re:DM] Version `%s`", REDM_VERSION)
console_print(player, "[Re:DM] https://github.com/wopox1337/ReDeathmatch")
console_print(player, "[Re:DM] https://ReDeathmatch.github.io")

new bool: isManualBuild = (strfind(REDM_VERSION, "manual") != -1)
if (!isManualBuild) {
new bool: isRelease = (strlen(REDM_VERSION_PATCH) < 4)

console_print(player,
"[Re:DM] https://github.com/ReDeathmatch/ReDeathmatch_AMXX/%s/%s",
isRelease ? "releases/tag" : "commit",
isRelease ? REDM_VERSION : REDM_VERSION_PATCH
)
}

console_print(player, "[Re:DM] Copyright (c) 2024 Sergey Shorokhov")

if (!cmd_access(player, level, commandId, 1, .accesssilent = true))
Expand All @@ -218,7 +237,7 @@ public ConCmd_redm(const player, const level, const commandId) {
console_print(player, "Compilation info:")
console_print(player, " AMXX version: `%s`", AMXX_VERSION_STR)
console_print(player, " ReAPI version: `%i.%i`", REAPI_VERSION_MAJOR, REAPI_VERSION_MINOR)
console_print(player, " Time: `%s %s`", __DATE__, __TIME__)
console_print(player, " Time: `%s %s (GMT)`", __DATE__, __TIME__)

return PLUGIN_HANDLED
}
Expand Down

0 comments on commit 05cebf6

Please sign in to comment.