Fixed admin chat not working
This commit is contained in:
parent
1ca7070646
commit
75a19dfcc2
|
@ -33,7 +33,7 @@ function commandAdminChat(clientId, cmdArguments)
|
||||||
end
|
end
|
||||||
|
|
||||||
for playerId = 0, et.trap_Cvar_Get("sv_maxclients") - 1 do
|
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)
|
table.insert(recipients, playerId)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue