| if you are talking about c++, then here are a few things.
to send a message to the game and not the server then:
// Start C++ code
server->GamePrintInfo("Message goes Here");
//End code
to send a message to the server or d2hackit if you put a . in front of it then:
//Code Exert
BOOL PRIVATE OnGameCommandSet(char** argv, int argc)
{
if (argc!=2)
return FALSE;
BYTE aPacket[1024];
char aString[1024];
aString[0]=0;
sprintf(aString, "MESSAGE GOES HERE", argv[1]);
for (int i=2; i!=argc; i++)
{
sprintf(aString, "%s %s", aString, argv[i]);
}
sprintf((char*)aPacket, "%c%c%c%s%c%c%c",
0x15, 0x01, 0x00, aString, 0,0,0);
server->GameSendPacketToServer(aPacket, strlen(aString)+6);
//
//
SET=true;
return TRUE;
}
/End Code
__________________ ----------------------------------
Member of BFHS and Coder for the TradeHack 2,3,4, RBXP, ItemHash, bulletTime d2hackit modules.
--------------------------------- |