Jump to content

Como mudar mensagem após login?


Recommended Posts

  • Other Languages Moderators

client-side

function onChatMessage (text)
	if (text == "login: You successfully logged in") then -- Se a mensagem hardcoded for igual a esta, então:
		cancelEvent() -- Cancela essa mensagem.
		outputChatBox ("login: Você logou com sucesso.", 255, 170, 0) -- Envia isso no lugar dela.
	end
end
addEventHandler ("onClientChatMessage", root, onChatMessage)

 

  • Like 1
Link to comment
32 minutes ago, Lord Henry said:

client-side


function onChatMessage (text)
	if (text == "login: You successfully logged in") then -- Se a mensagem hardcoded for igual a esta, então:
		cancelEvent() -- Cancela essa mensagem.
		outputChatBox ("login: Você logou com sucesso.", 255, 170, 0) -- Envia isso no lugar dela.
	end
end
addEventHandler ("onClientChatMessage", root, onChatMessage)

 

Muito obrigado, funcionou :D

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