mr.Extreme Posted March 27, 2014 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
Overkillz Posted March 27, 2014 Posted March 27, 2014 Try with this: addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "login" then cancelEvent() end end)
WhoAmI Posted March 27, 2014 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.
mr.Extreme Posted March 27, 2014 Author Posted March 27, 2014 oh thx you ok i want make when player mute cant he use command only allowed ./report
Weii. Posted March 27, 2014 Posted March 27, 2014 addEventHandler ( "onPlayerCommand", root, function ( command ) if ( isPlayerMuted(source) ) then if (command ~= "report") then cancelEvent ( ) end end end )
mr.Extreme Posted March 27, 2014 Author 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
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