Jump to content

[Question] Disabling join message and help/vote manager


kieran

Recommended Posts

Hello :D 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 by kieran
Link to comment

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. :D 

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 by kieran
Link to comment

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 by kieran
Link to comment

@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. :)

  • Like 1
Link to comment
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.

  • Like 1
Link to comment

@koragg Thanks :D 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:" :P easier than having another messy script!  Lol

Link to comment
35 minutes ago, kieran said:

@koragg Thanks :D 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:" :P 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) :P That's why I asked what I asked.

Edited by koragg
  • Like 1
Link to comment
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) :P That's why I asked what I asked.

My bad, I forget many are hard coded :P 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... :P 

Edited by kieran
Well that was a weird typo "@$$"
  • Like 1
Link to comment

 

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 :P 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...