Added team color to !listplayers

This commit is contained in:
Timo Smit 2019-02-09 17:46:46 +01:00
parent d35ed96d26
commit 4d5e69d785

View file

@ -64,8 +64,9 @@ function commandListPlayers(clientId, command)
fireteamName = fireteams.getName(fireteamId):sub(1, 1) fireteamName = fireteams.getName(fireteamId):sub(1, 1)
end end
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^f"..string.format("%2i %s ^7%-2i %20s ^7(*%s) ^1%1s ^3%1s ^7%s ^7%s%s^7%s", et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^f"..string.format("%2i %s%s ^7%-2i %20s ^7(*%s) ^1%1s ^3%1s ^7%s ^7%s%s^7%s",
player, -- slot player, -- slot
teamColor, -- team
teamCode, -- team teamCode, -- team
level, -- level level, -- level
levelName, -- levelname levelName, -- levelname