Fixed !finger command executing on wrong client

This commit is contained in:
Timo Smit 2016-12-15 16:26:39 +01:00
parent 74b9490433
commit 2e26cbc257

View file

@ -46,11 +46,11 @@ function commandFinger(clientId, cmdArguments)
end end
local stats = { local stats = {
["name"] = players.getName(clientId), ["name"] = players.getName(cmdClient),
["cleanname"] = players.getName(clientId):gsub("%^[^^]", ""), ["cleanname"] = players.getName(cmdClient):gsub("%^[^^]", ""),
["codedsname"] = players.getName(clientId):gsub("%^([^^])", "^^2%1"), ["codedsname"] = players.getName(cmdClient):gsub("%^([^^])", "^^2%1"),
["slot"] = cmdClient, ["slot"] = cmdClient,
["guid"] = players.getGUID(clientId), ["guid"] = players.getGUID(cmdClient),
} }
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dInformation about ^7"..stats["name"].."^d:\";") et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dInformation about ^7"..stats["name"].."^d:\";")