Add "who" reply to spy to notify of player whereabouts

This commit is contained in:
2024-11-27 15:09:17 +01:00
parent 5d7b5a4306
commit a6a99d5463
3 changed files with 29 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
-- CHAT_MSG_WHISPER
---@type event string
---@type msg string
---@type sender string
function(event, msg, sender)
if msg == "who" then
for _, player in pairs(aura_env.stinkies) do
table.insert(aura_env.messageQueue, {
to = sender,
message = aura_env.MakeNotifyMessage(player)
})
end
end
end