skybad Posted October 5, 2014 Posted October 5, 2014 Hi i need to know if its possible block the command "reconnect" and "quit"
King12 Posted October 5, 2014 Posted October 5, 2014 Not sure but maybe this works.. Server side addEventHandler ( "onPlayerCommand", root, function (cmd) if ( cmd == "reconnect" ) then cancelEvent () elseif ( cmd == "quit" ) then cancelEvent () end end )
Mr_Moose Posted October 6, 2014 Posted October 6, 2014 @King12, That will work just fine: https://wiki.multitheftauto.com/wiki/OnPlayerCommand MTA Community | GitHub | 99Stack Forum
Moderators IIYAMA Posted October 6, 2014 Moderators Posted October 6, 2014 Will not work and can't be prevented. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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