mr.Extreme Posted March 27, 2014 Share Posted March 27, 2014 hello how i can remove command login I looked at the folder and did not find cmd login to remove it and thx for help Link to comment
Overkillz Posted March 27, 2014 Share Posted March 27, 2014 Try with this: addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "login" then cancelEvent() end end) Link to comment
WhoAmI Posted March 27, 2014 Share Posted March 27, 2014 I'm not sure if it will works, but addEventHandler ( "onPlayerCommand", root, function ( command ) if ( command == "login" or command == "register" ) then cancelEvent ( ) end end ) @UP was faster. Link to comment
mr.Extreme Posted March 27, 2014 Author Share Posted March 27, 2014 oh thx you ok i want make when player mute cant he use command only allowed ./report Link to comment
Weii. Posted March 27, 2014 Share Posted March 27, 2014 addEventHandler ( "onPlayerCommand", root, function ( command ) if ( isPlayerMuted(source) ) then if (command ~= "report") then cancelEvent ( ) end end end ) Link to comment
mr.Extreme Posted March 27, 2014 Author Share Posted March 27, 2014 addEventHandler ( "onPlayerCommand", root, function ( command ) if ( isPlayerMuted(source) ) then if (command ~= "report") then cancelEvent ( ) end end end ) thx you very much and For all 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