xeon17 Posted February 25, 2015 Posted February 25, 2015 Is there a way to remove the default MTA login and registration messages? A unique GangWar gamemode waiting for you!Click here for more information.
JR10 Posted February 25, 2015 Posted February 25, 2015 There is no registration message, only login. But no, you can't remove that hard-coded login message. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
xeon17 Posted February 25, 2015 Author Posted February 25, 2015 Ok thank you for your fast answer , I guess i'll have to create a new account system A unique GangWar gamemode waiting for you!Click here for more information.
JR10 Posted February 25, 2015 Posted February 25, 2015 A simple message like that shouldn't cause issues. Good luck though. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Addlibs Posted February 26, 2015 Posted February 26, 2015 I once managed to remove them through cancelEvent on onClientChatMessage (client-side) by checking for prefix - eg. addEventHandler("onClientChatMessage", root, function(message) if message:sub(1, 6) == "login:" then cancelEvent() end end ) 1 Previously known as MrTasty.
JR10 Posted February 26, 2015 Posted February 26, 2015 Does onClientChatMessage even trigger for such messages? Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Addlibs Posted February 26, 2015 Posted February 26, 2015 This event is triggered when any text is output to chatbox, including MTA's hardcoded messages. Previously known as MrTasty.
JR10 Posted February 26, 2015 Posted February 26, 2015 I just tested and I guess you're right. Never even noticed that. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
xeon17 Posted February 26, 2015 Author Posted February 26, 2015 Good to hear it , i'll test it soon. A unique GangWar gamemode waiting for you!Click here for more information.
xeon17 Posted February 26, 2015 Author Posted February 26, 2015 @MrTasty Thank you A unique GangWar gamemode waiting for you!Click here for more information.
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