Topic: Chat function
Hello world ^^
I decided to create account system for some my mods on 0.6.0 tw version. Client should to write in chat "/register his_login his_password" for register.
Problem: message "/register login password" is shown in public chat.
Question: How to hide this message? What i should to add in?
Code:
if(sscanf(pMsg->m_pMessage, "/register %s %s", login, password) != 2)
{
SendChatTarget(ClientID, "Please stick to the given structure:");
SendChatTarget(ClientID, "/register <login> <password>");
}
else
{
registration(login, password);
}
Thanks.