igthomas Posted March 13, 2012 Share Posted March 13, 2012 Hi I wanted to know how to disable this command because it isn't in any of my scripts but somewhere in the default MTA scripts. So is it possible to turn it off? Link to comment
X-SHADOW Posted March 13, 2012 Share Posted March 13, 2012 removeCommandHandler("kill") Link to comment
TAPL Posted March 13, 2012 Share Posted March 13, 2012 This function removes a command handler, that is one that has been added using addCommandHandler. This function can only remove command handlers that were added by the resource that it is called in. so if wiki is not wrong then this way won't work removeCommandHandler("kill") this one will work addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "kill" then cancelEvent() end end) 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