Fixed name retrieval of console id

This commit is contained in:
Timo Smit 2016-11-30 14:18:45 +01:00
parent 0c3f0d84ee
commit d33beade2b

View file

@ -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