Is it possible to read a notification, for example?
if v:Notify == "Blah" then
concommand.Run("kill")
end
Assuming you mean the notifications that get added with notification.AddLegacy there is no way currently implemented into gmod to check what the notification says. However its easy enough to detour the function and check what it says yourself.
Code:
local old = notification.AddLegacy
function notification.AddLegacy(text, type, time)
MsgN(text)
old(text, type, time)
end