Skip to content

Reading ID_AUTH_KEY

Denis edited this page Sep 11, 2021 · 2 revisions

pawnraknet.cfg

InterceptIncomingInternalPacket = true
WhiteListInternalPackets = [12]

Example

const ID_AUTH_KEY = 12;

IInternalPacket: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("playerid %d auth_key %s", playerid, auth_key);

    return 1;
}