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 cea94af
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion 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 Down

0 comments on commit cea94af

Please sign in to comment.