Stylez Posted April 8, 2013 Posted April 8, 2013 Hello, i found default /me command and i couldnt figure out how to disable it.. Any suggestions?
Stylez Posted April 8, 2013 Author Posted April 8, 2013 (edited) Hmm, thanks. But is there more commands like this? BTW.. what about roleplay servers.. i dont think that is appropriate way to do it. Edited April 8, 2013 by Guest
فاّرس Posted April 8, 2013 Posted April 8, 2013 Hmm, thanks. But is there more commands like this? Nothing...
iPrestege Posted April 8, 2013 Posted April 8, 2013 Hmm... it's a command in the chat box or in the console box ? i
Stylez Posted April 8, 2013 Author Posted April 8, 2013 it outputs in chatbox, try it yourself by creating local server
iPrestege Posted April 8, 2013 Posted April 8, 2013 Hmmm.. i try to type "me" in the chat box but nothing?
Stylez Posted April 8, 2013 Author Posted April 8, 2013 try "/me (any text here)" and see what happens
فاّرس Posted April 8, 2013 Posted April 8, 2013 try "/me (any text here)" and see what happens sure , i try this< as /say ( any text here )
Jaysds1 Posted April 8, 2013 Posted April 8, 2013 (edited) You Could disable it By using the removeCommandHandler Read More about chatbox commands here: https://wiki.multitheftauto.com/wiki/Client_Commands Edited April 8, 2013 by Guest
iPrestege Posted April 8, 2013 Posted April 8, 2013 Ah, I See that will use this simple function and the command will not work any more : addEventHandler("onPlayerCommand",root, function ( CMD ) if ( CMD == "me" ) then cancelEvent(); outputConsole("* This Command Are Not Allowed!"); end; end );
MIKI785 Posted April 8, 2013 Posted April 8, 2013 You Could disable it By using the removeCommandHandler I don't think so... This function can only remove command handlers that were added by the resource that it is called in. The best way is cancelling onPlayerChat.
Stylez Posted April 8, 2013 Author Posted April 8, 2013 Ah, I See that will use this simple function and the command will not work any more : addEventHandler("onPlayerCommand",root, function ( CMD ) if ( CMD == "me" ) then cancelEvent(); outputConsole("* This Command Are Not Allowed!"); end; end ); Yeah thats good. But what if i have RP server.. i will not be able to use it..
فاّرس Posted April 8, 2013 Posted April 8, 2013 Ah, I See that will use this simple function and the command will not work any more : addEventHandler("onPlayerCommand",root, function ( CMD ) if ( CMD == "me" ) then cancelEvent(); outputConsole("* This Command Are Not Allowed!"); end; end ); Yeah thats good. But what if i have RP server.. i will not be able to use it.. why you want cancel the command ? it's not problem !
Stylez Posted April 8, 2013 Author Posted April 8, 2013 Ok then, how to change color of the text for this command? ;o
فاّرس Posted April 8, 2013 Posted April 8, 2013 Ok then, how to change color of the text for this command? ;o you mean outputConsole? Edit#: if yes , i'm do not know, maybe try this : outputConsole("#000000* This Command Are Not Allowed!",255,0,0,true)
Stylez Posted April 8, 2013 Author Posted April 8, 2013 alright.. i have another question i removed all resources from resource folder and i left only my own made spawn resource. And my friend joins server, we can see each others Nicknames and HP. How can i disable that? ;o
PaiN^ Posted April 9, 2013 Posted April 9, 2013 I never saw any one removing it, But there are ways to change it though ...
فاّرس Posted April 9, 2013 Posted April 9, 2013 Can you help me to disable it? I do not think you can
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