General > Developers Corner
Ignore PlayerSay
dankpepe:
How does ulx ignore the PlayerSay hook for commands? For example, why can people still type in admin chat while muted?
Bytewave:
Either hook priority, or they're using the ulx * console commands as opposed to their chat counterparts.
JamminR:
Additionally, admin chat isn't standard chat. I'd have to dig into our code, but it's likely that once @ is used, it would never get to the playersay hook anyway.
Essentially, we never return chat text in the first place.
iViscosity:
What JamminR said, ulx asay uses no hooks, as a matter of fact, and sends a message to only those allowed to see it and the person who used it. Can't remember if they used fancyLog or fancyLogAdmin, though.
dankpepe:
That makes sense. Do you know how ulx detects if you type something without using the PlayerSay hook?
Navigation
[0] Message Index
[#] Next page
Go to full version