General > Developers Corner
How could I check if a player ran a ULX command?
Matsumoto:
I'm making a chatbox and I want to make it so when people run commands the text has a icon in front of it, is there a way to check if a ULX command was ran? Or any ideas how I would do such?
roastchicken:
A very lazy way would just be to check the first character of the chat message and see if it's an exclamation mark. Of course this will work for any text preceded by !, so if you want it to only work for valid ULX commands you're going to have to go another route.
Matsumoto:
--- Quote from: roastchicken on July 03, 2016, 09:20:28 AM ---A very lazy way would just be to check the first character of the chat message and see if it's an exclamation mark. Of course this will work for any text preceded by !, so if you want it to only work for valid ULX commands you're going to have to go another route.
--- End quote ---
Doesn't take into account of console commands.
JamminR:
ULibCommandCalled
Matsumoto:
--- Quote from: JamminR on July 03, 2016, 05:50:18 PM ---ULibCommandCalled
--- End quote ---
Thanks man, not sure how to mark this solved or something.
Navigation
[0] Message Index
[#] Next page
Go to full version