DANFOR

Login Message

Recommended Posts

Hi ! when i'm Login to my server console automatic send me some think in chat box .

some think is this XD : login : Login Succesfuly ...

and i dont want this message .

what i can do ?

 

sorry for very very bad eng and thanks for helping . . .

Share this post


Link to post

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.mtasa.com/topic/12275-forum-rules/

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

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

Have a good time using the forums, thanks

Share this post


Link to post
Posted (edited)

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 2

Share this post


Link to post

Thank you thank you thank you and thank you . You are the best ❤❤❤❤❤❤

Share this post


Link to post
7 minutes ago, DANFOR said:

Thank you thank you thank you and thank you . You are the best ❤❤❤❤❤❤

Welcome

Share this post


Link to post

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.