Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(GetAsyncKeyState(VK_RETURN)&1)
- {
- if((tmp[0] == '/' && tmp[1] == 'n' && tmp[2] == 'i' && tmp[3] == 'c' && tmp[4] == 'k'))
- {
- for(int i=0;i <5;i++)
- tmp[i]=' ';
- this->DelChar(tmp,' ');
- if(strlen(tmp)==0)
- return;
- sprintf_s(this->Chat_Nick,25,"%s",tmp);
- this->Add_Chat_Msg("Nick changed.",CHAT_SONLINE);
- for(;c_index >0;c_index--)
- tmp[c_index] = ' ';
- tmp[0] = ' ';
- return;
- }
- if(strcmp(this->Chat_Nick,"DEFAULT")==0)
- return;
- if(this->Add_Chat_Msg(this->tmp,CHAT_SLOCAL))
- {
- for(;c_index >0;c_index--)
- tmp[c_index] = ' ';
- tmp[0] = ' ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement