Skraund Posted July 15, 2019 Share Posted July 15, 2019 Hi, how to ensure that these commands do not work in the console? If this is not possible, then how to ensure that they are not available to ordinary players?List of commands: Console Commands and CVars https://wiki.multitheftauto.com/wiki/Server_Commands https://wiki.multitheftauto.com/wiki/Client_Commands Sorry for my bad english. Link to comment
HassoN Posted July 15, 2019 Share Posted July 15, 2019 (edited) Use onPlayerCommand then cancel the command you want. Edited July 15, 2019 by HassoN Link to comment
xMKHx Posted July 15, 2019 Share Posted July 15, 2019 This is an example -- Server Side function disableCommands(cmd) if (cmd == "login" or cmd == "logout" or cmd == "register") then cancelEvent() end end addEventHandler("onPlayerCommand", root, disableCommands) 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