mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 21:51:38 +00:00
Fixed !finger command executing on wrong client
This commit is contained in:
parent
74b9490433
commit
2e26cbc257
1 changed files with 4 additions and 4 deletions
|
@ -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:\";")
|
||||||
|
|
Loading…
Reference in a new issue