GrubaS Posted February 25, 2015 Share Posted February 25, 2015 I can block commands like "reconnect" or "quit" ? Link to comment
JR10 Posted February 25, 2015 Share Posted February 25, 2015 No, you can't. They're hard-coded in MTA and can't be removed/blocked. Link to comment
Laysiks Posted February 25, 2015 Share Posted February 25, 2015 I saw command "logout" is blockable .. Link to comment
JR10 Posted February 25, 2015 Share Posted February 25, 2015 You can restrict access to the login and logout commands with ACL. But I don't think it's possible to restrict reconnect and quit. Link to comment
Laysiks Posted February 25, 2015 Share Posted February 25, 2015 I think it is removable/blockable. Link to comment
WASSIm. Posted February 25, 2015 Share Posted February 25, 2015 you can by cancelEvent & onPlayerCommand Link to comment
JR10 Posted February 25, 2015 Share Posted February 25, 2015 You can't with ACL and you can't with onPlayerCommand. You can't cancel/block/remove 'quit' and 'reconnect' commands, they're not like normal ones, for obvious reasons (any server can abuse that) Link to comment
WASSIm. Posted February 25, 2015 Share Posted February 25, 2015 You can't with ACL and you can't with onPlayerCommand. You can't cancel/block/remove 'quit' and 'reconnect' commands, they're not like normal ones, for obvious reasons (any server can abuse that) on my server i cancel login and logout command by cancel onPlayerCommand Link to comment
JR10 Posted February 25, 2015 Share Posted February 25, 2015 He wants to block reconnect and quit not login and logout. Link to comment
GrubaS Posted February 25, 2015 Author Share Posted February 25, 2015 I dont want make a new post so i'll write here. I want block command kill in race gamemode its possible? (this function dont working) addEventHandler ( "onPlayerCommand", root, function (cmd) if ( cmd == "kill" ) then outputChatBox("u can't use kill command") cancelEvent () end end ) Link to comment
MIKI785 Posted February 25, 2015 Share Posted February 25, 2015 Approach this logically, connect/disconnect/reconnect/quit etc. are commands in the client itself (ie. they work even when not connnected to any server), they are not in the server itself or client scripts so you can't affect them in any way. Logout is server command so you can affect that one however you want. I dont want make a new post so i'll write here.I want block command kill in race gamemode its possible? (this function dont working) addEventHandler ( "onPlayerCommand", root, function (cmd) if ( cmd == "kill" ) then outputChatBox("u can't use kill command") cancelEvent () end end ) It might be clientside command and you're cancelling it on the server. Link to comment
Max+ Posted February 25, 2015 Share Posted February 25, 2015 As JR10 , Said You Can't Block theme Because They're hard-coded in MTA 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