-Jigsaw Posted March 26, 2013 Share Posted March 26, 2013 Hello, is it possible(and if yes how) to detect when a certain command is called, and get its arguments? For example, when I type '/comand argument' which is set in a random script, can I acquire that 'argument' to use it in another resource? Thank you in advance Link to comment
MIKI785 Posted March 26, 2013 Share Posted March 26, 2013 Event onConsole will do the thing. Link to comment
-Jigsaw Posted March 26, 2013 Author Share Posted March 26, 2013 Ok, I made it with onConsole. Thanks for the help Link to comment
PaiN^ Posted March 26, 2013 Share Posted March 26, 2013 onConsole event will be triggered only if he types the command in the console ! so if any one typed /command in the chat, it wont be triggered ( Just saying ) Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 onConsole event will be triggered only if he types the command in the console !so if any one typed /command in the chat, it wont be triggered ( Just saying ) certain Link to comment
-Jigsaw Posted March 26, 2013 Author Share Posted March 26, 2013 uhm, I think not, because if you type /command what it basically does is that it writes in the player's console 'command' so it's the same. Plus i tested it and it works with onConsole ^^ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now