- 111
- 19
Код:
const ID_AUTH_KEY = 12;
OInternalPacket:ID_AUTH_KEY(playerid, BitStream:bs)
{
new auth_key[512];
BS_IgnoreBits(bs, 8); // packetid
BS_ReadValue(bs, PR_STRING8, auth_key, sizeof(auth_key));
printf("incoming auth_key %s", auth_key);
new BitStream:newBs = BS_New();
BS_WriteValue(newBs,
PR_UINT8, 12, PR_STRING8, "2DC8A9B16332F78", 15);
PR_SendPacket(newBs, playerid, PR_SYSTEM_PRIORITY, PR_RELIABLE_SEQUENCED);
BS_Delete(newBs);
return 0;
}