What I'm trying to do is use StatusText to report what class a spy has disguised into. I have been using this very inefficient piece of code:
Code:
register_event("StatusText", "CLASS_SCOUT", "b", "2&#Spy_disguised Blue #Scout")
Is there a way to hook the message by ignoring the team's name, and only reading what class comes after it?