SHARE
TWEET

Untitled

a guest Jul 2nd, 2017 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char msgto[17];
  2.     memset( &msgto, '\0', 17 );
  3.     strncpy( msgto, (char*)&(*P).Buffer[0],16 );
  4.  
  5.     //LMA: Case insensitive search
  6.     //CPlayer* otherclient = GetClientByCharName( msgto );
  7.     CPlayer* otherclient = GetClientByCharNameCI( msgto );
  8.     if(otherclient!=NULL)
  9.     {
  10.        BEGINPACKET( pak, 0x0784 );
  11.        ADDSTRING( pak, thisclient->CharInfo->charname );
  12.        ADDBYTE( pak, 0 );
  13.        ADDSTRING( pak, &P->Buffer[strlen(msgto)+1] );
  14.        ADDBYTE( pak, 0 );
  15.        otherclient->client->SendPacket( &pak );
  16.        return true;
  17.     }
  18.  
  19.     BEGINPACKET( pak, 0x0784 );
  20.     ADDSTRING( pak, msgto );
  21.     ADDBYTE( pak, 0 );
  22.     ADDBYTE( pak, 0 );
  23.     thisclient->client->SendPacket( &pak );
  24.     return true;
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top