Advertisement
KingClem

Untitled

Aug 30th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. if(GetAsyncKeyState(VK_RETURN)&1)
  2. {
  3. if((tmp[0] == '/' && tmp[1] == 'n' && tmp[2] == 'i' && tmp[3] == 'c' && tmp[4] == 'k'))
  4. {
  5. for(int i=0;i <5;i++)
  6. tmp[i]=' ';
  7. this->DelChar(tmp,' ');
  8. if(strlen(tmp)==0)
  9. return;
  10. sprintf_s(this->Chat_Nick,25,"%s",tmp);
  11. this->Add_Chat_Msg("Nick changed.",CHAT_SONLINE);
  12. for(;c_index >0;c_index--)
  13. tmp[c_index] = ' ';
  14. tmp[0] = ' ';
  15. return;
  16. }
  17. if(strcmp(this->Chat_Nick,"DEFAULT")==0)
  18. return;
  19. if(this->Add_Chat_Msg(this->tmp,CHAT_SLOCAL))
  20. {
  21. for(;c_index >0;c_index--)
  22. tmp[c_index] = ' ';
  23. tmp[0] = ' ';
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement