mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed name retrieval of console id
This commit is contained in:
parent
0c3f0d84ee
commit
d33beade2b
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ function players.getCachedName(clientId)
|
|||
end
|
||||
|
||||
function players.getName(clientId)
|
||||
if clientId == -1337 then
|
||||
return "console"
|
||||
end
|
||||
|
||||
return et.gentity_get(clientId, "pers.netname")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue