kieran Posted July 7, 2017 Share Posted July 7, 2017 (edited) Hello I want to know how to disable the "login: you have successfully logged in" message and the vote/help manager. I have been wondering how to do this for quite some time now..... I have messed with various files in the server folder (just acl.xml and server.conf) setting startup to 0 on vote manager and help manager, but nothing has worked... I restarted the server BEFORE changing these and started it again after saving them. Also sorry if wrong section, there's not a general help section, just scripting and MTA chat... Edited July 7, 2017 by kieran Link to comment
pa3ck Posted July 7, 2017 Share Posted July 7, 2017 Don't forget that the search function is fully functional: As for the vote/help manager, you never mentioned what you want to change, the outputChatBox messages? 2 Link to comment
kieran Posted July 7, 2017 Author Share Posted July 7, 2017 (edited) Okay, so you know how you do /vote or press f9 to open help and vote for maps? I want to stop these resources from loading and also stop the current map output on chat box, sorry for not being clear, can attach a few screenshots if needed. and thanks for the link! I'll check it out Example: Currently playing: Mode - Map Is there anyway to do text match using "onClientChatMessage" ? Edited July 7, 2017 by kieran Link to comment
kieran Posted July 8, 2017 Author Share Posted July 8, 2017 (edited) nvm, in resources on adminpanel there is "mapmanager" set mapmanager.currentmap to false. There must be a simpler way though, eg setting through acl, but the only way I found is disabling via resources so far Simple way to stop votemanager and helpmanager (if you will never ever use these again) is just delete them in resources after you stop it running... Edited July 8, 2017 by kieran Link to comment
koragg Posted July 8, 2017 Share Posted July 8, 2017 @pa3ck the link you gave him, does that cancel the login event or it just doesn't show the chatbox message? I was looking for a way to make the login message a bit more pretty sometime ago :') 1 Link to comment
koragg Posted July 8, 2017 Share Posted July 8, 2017 @kieran a tip you should try out is to open Notepad++, press CTRL+LShift+F and then search for the thing you want to find in your whole MTA server directory. For example you don't know where the part which outputs the "Currently playing: Mode - Map" is - you type in the search box "Currently playing: " and hit enter, that'll give you all places where this string is used so that you can find and edit the stuff so much faster and easier. 1 Link to comment
pa3ck Posted July 8, 2017 Share Posted July 8, 2017 1 hour ago, koragg said: @pa3ck the link you gave him, does that cancel the login event or it just doesn't show the chatbox message? I was looking for a way to make the login message a bit more pretty sometime ago :') That only cancels the outputChatBox, since it is attached to onClientChatMessage event, you will still be logged in. 1 Link to comment
kieran Posted July 8, 2017 Author Share Posted July 8, 2017 @koragg Thanks I got a ton of errors after deleting it saying it can't find resource, useful tip hehe. And yes, it does just cancel message, but as you say, just use your method and search for "login:" easier than having another messy script! Lol Link to comment
koragg Posted July 8, 2017 Share Posted July 8, 2017 (edited) 35 minutes ago, kieran said: @koragg Thanks I got a ton of errors after deleting it saying it can't find resource, useful tip hehe. And yes, it does just cancel message, but as you say, just use your method and search for "login:" easier than having another messy script! Lol Can't really do that since the login message is hardcoded into MTA itself (aka not in any resource, not even in LUA) That's why I asked what I asked. Edited July 8, 2017 by koragg 1 Link to comment
kieran Posted July 8, 2017 Author Share Posted July 8, 2017 (edited) 2 minutes ago, koragg said: Can't really do that since the login message is hardcoded into MTA itself (aka not in any resource, not even in LUA) That's why I asked what I asked. My bad, I forget many are hard coded I personally think there is an easier way to disable hard coded scripts, can they not just add them to xml so you can simply do a true/false to choose if they are active? In my opinion would be so much easier... Edited July 8, 2017 by kieran Well that was a weird typo "@$$" 1 Link to comment
itHyperoX Posted July 8, 2017 Share Posted July 8, 2017 addEventHandler ( "onClientChatMessage", root, function ( text ) if text == "login: You successfully logged in" then cancelEvent() end end) client Link to comment
kieran Posted July 9, 2017 Author Share Posted July 9, 2017 1 hour ago, TheMOG said: addEventHandler ( "onClientChatMessage", root, function ( text ) if text == "login: You successfully logged in" then cancelEvent() end end) client Thanks, but the link explaining it is already there 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