Fixed admin chat not working

This commit is contained in:
Timo Smit 2017-01-21 15:10:49 +01:00
parent 1ca7070646
commit 75a19dfcc2
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function commandAdminChat(clientId, cmdArguments)
end
for playerId = 0, et.trap_Cvar_Get("sv_maxclients") - 1 do
if players.isConnected(playerId) and auth.isPlayerAllowed(playerId, "~") then
if players.isConnected(playerId) and auth.isPlayerAllowed(playerId, auth.PERM_ADMINCHAT) then
table.insert(recipients, playerId)
end
end