Striker6225 Posted January 4, 2020 Share Posted January 4, 2020 Então, após eu logar no meu servidor ele manda essa mensagem no chat como faço para altera-lá? Desde já agradeço por estar lendo esse tópico :D Link to comment
Moderators Patrick Posted January 4, 2020 Moderators Share Posted January 4, 2020 (edited) Only english posts in this forum section. And please try to search before you post. Edited January 4, 2020 by stPatrick Link to comment
Other Languages Moderators Lord Henry Posted January 4, 2020 Other Languages Moderators Share Posted January 4, 2020 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) 1 Link to comment
Striker6225 Posted January 4, 2020 Author Share Posted January 4, 2020 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 Link to comment
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