Pallanas Posted June 19, 2014 Share Posted June 19, 2014 Hi Is it possible to disable or hook on native commands like /login, /logout, /reconnect, etc ? https://forum.multitheftauto.com/viewtopic.php?f ... ve#p311610 https://forum.multitheftauto.com/viewtopic.php?f ... ve#p416603 According to those no, but has something changed ? Edit : Here is where the functions are defined in the source code, I guess a dev could add a check and a config option. I guess I should write a ticket on the mantis. https://code.google.com/p/mtasa-blue/so ... s.cpp#1018 Link to comment
arezu Posted June 19, 2014 Share Posted June 19, 2014 (edited) use cancelEvent in onPlayerCommand event Edited June 19, 2014 by Guest Link to comment
xXMADEXx Posted June 19, 2014 Share Posted June 19, 2014 You can disable access to them in acl.xml Link to comment
Pallanas Posted June 19, 2014 Author Share Posted June 19, 2014 You can disable access to them in acl.xml That's what I did yes, cf https://bugs.multitheftauto.com/view.php?id=4568#c11011 use cancelEvent in onPlayerCommand event Didn't try the exact thing, but I'm pretty sure it won't work Link to comment
arezu Posted June 20, 2014 Share Posted June 20, 2014 use cancelEvent in onPlayerCommand event Didn't try the exact thing, but I'm pretty sure it won't work It works, I tried it. Link to comment
MIKI785 Posted June 20, 2014 Share Posted June 20, 2014 You can disable server commands like login/logout etc. through onPlayerCommand but you can't disable client commands, such as connect, reconnect etc. it makes sense since they are in the client itself. Link to comment
Pallanas Posted June 20, 2014 Author Share Posted June 20, 2014 use cancelEvent in onPlayerCommand event Didn't try the exact thing, but I'm pretty sure it won't work It works, I tried it. Well that's good to know then, thanks ! 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