Jump to content

Login Message


deletedacc

Recommended Posts

  • Administrators

Hey, welcome to the forums @DANFOR

I just want to send a quick headsup, that is, your threads should be posted a step up (the primary scripting section, not tutorials). Please familarise yourself with the forum rules and posting guidelines for our separate forum sections. :)

https://forum.multitheftauto.com/topic/12275-forum-rules/

https://forum.multitheftauto.com/forum/71-scripting/

https://forum.multitheftauto.com/forum/74-support/

Have a good time using the forums, thanks

Link to comment
  • Moderators

I think the only way if you cancel the chat message's event.
onClientChatMessagecancelEvent

local blockedMsg = {
    "login: You successfully logged in",
    "login: You are already logged in",
}
local length = #blockedMsg

addEventHandler("onClientChatMessage", root, function(text)
    for i = 1, length do
        if blockedMsg[i] == text then
            return cancelEvent()
        end
    end
end)

 

Edited by Patrick
  • Like 3
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...