Stylez Posted April 8, 2013 Share Posted April 8, 2013 Hello, i found default /me command and i couldnt figure out how to disable it.. Any suggestions? Link to comment
Stylez Posted April 8, 2013 Author Share 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 Link to comment
فاّرس Posted April 8, 2013 Share Posted April 8, 2013 Hmm, thanks. But is there more commands like this? Nothing... Link to comment
iPrestege Posted April 8, 2013 Share Posted April 8, 2013 Hmm... it's a command in the chat box or in the console box ? i Link to comment
Stylez Posted April 8, 2013 Author Share Posted April 8, 2013 it outputs in chatbox, try it yourself by creating local server Link to comment
iPrestege Posted April 8, 2013 Share Posted April 8, 2013 Hmmm.. i try to type "me" in the chat box but nothing? Link to comment
Stylez Posted April 8, 2013 Author Share Posted April 8, 2013 try "/me (any text here)" and see what happens Link to comment
فاّرس Posted April 8, 2013 Share Posted April 8, 2013 try "/me (any text here)" and see what happens sure , i try this< as /say ( any text here ) Link to comment
Jaysds1 Posted April 8, 2013 Share 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 Link to comment
iPrestege Posted April 8, 2013 Share 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 ); Link to comment
MIKI785 Posted April 8, 2013 Share 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. Link to comment
iPrestege Posted April 8, 2013 Share Posted April 8, 2013 I Test it and it's console command . Link to comment
Stylez Posted April 8, 2013 Author Share 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.. Link to comment
فاّرس Posted April 8, 2013 Share 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 ! Link to comment
Stylez Posted April 8, 2013 Author Share Posted April 8, 2013 Ok then, how to change color of the text for this command? ;o Link to comment
فاّرس Posted April 8, 2013 Share 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) Link to comment
PaiN^ Posted April 8, 2013 Share Posted April 8, 2013 outputConsole don't have R, G, B Link to comment
Stylez Posted April 8, 2013 Author Share 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 Link to comment
PaiN^ Posted April 9, 2013 Share Posted April 9, 2013 I never saw any one removing it, But there are ways to change it though ... Link to comment
Stylez Posted April 9, 2013 Author Share Posted April 9, 2013 Can you help me to disable it? Link to comment
فاّرس Posted April 9, 2013 Share Posted April 9, 2013 Can you help me to disable it? I do not think you can 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