-Jigsaw Posted March 26, 2013 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
MIKI785 Posted March 26, 2013 Posted March 26, 2013 Event onConsole will do the thing. Lua Scripter Owner of mshost.cz MTA portal.
PaiN^ Posted March 26, 2013 Posted March 26, 2013 'onPlayerCommand' " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
-Jigsaw Posted March 26, 2013 Author Posted March 26, 2013 Ok, I made it with onConsole. Thanks for the help
PaiN^ Posted March 26, 2013 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 ) " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
ZL|LuCaS Posted March 26, 2013 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 MTA Scripters. ♥♥♥Beijinhos♥♥♥
-Jigsaw Posted March 26, 2013 Author 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 ^^
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