From 4d5e69d785889965cce0755e8ba8b8d8a08a45a2 Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Sat, 9 Feb 2019 17:46:46 +0100 Subject: [PATCH] Added team color to !listplayers --- luascripts/wolfadmin/commands/admin/listplayers.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luascripts/wolfadmin/commands/admin/listplayers.lua b/luascripts/wolfadmin/commands/admin/listplayers.lua index d0c659c..70a3943 100644 --- a/luascripts/wolfadmin/commands/admin/listplayers.lua +++ b/luascripts/wolfadmin/commands/admin/listplayers.lua @@ -64,8 +64,9 @@ function commandListPlayers(clientId, command) fireteamName = fireteams.getName(fireteamId):sub(1, 1) 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 + teamColor, -- team teamCode, -- team level, -- level levelName, -- levelname