13.04.2018, 22:48
Quote:
Here you go most of them: https://sampforum.blast.hk/showthread.php?tid=649570
It is in spanish/portugese, I can't find this thread in english, although the most important info is readable. Код:
ID_RCON_COMMAND (ID: 201) text_length, cmdtext |
UINT16 - lrKey
UINT16 - udKey
UINT16 - keys
FLOAT - Position X
FLOAT - Position Y
FLOAT - Position Z
Anyway, the latest include file already has read/write functions for spectator sync packet (https://github.com/urShadow/Pawn.Rak...awn.RakNet.inc):
PHP код:
enum PR_SpectatingSync
{
PR_lrKey,
PR_udKey,
PR_keys,
Float:PR_position[3]
};
stock BS_ReadSpectatingSync(BitStream:bs, data[PR_SpectatingSync])
{
BS_ReadValue(
bs,
PR_UINT16, data[PR_lrKey],
PR_UINT16, data[PR_udKey],
PR_UINT16, data[PR_keys],
PR_FLOAT, data[PR_position][0],
PR_FLOAT, data[PR_position][1],
PR_FLOAT, data[PR_position][2]
);
}
stock BS_WriteSpectatingSync(BitStream:bs, data[PR_SpectatingSync])
{
BS_WriteValue(
bs,
PR_UINT16, data[PR_lrKey],
PR_UINT16, data[PR_udKey],
PR_UINT16, data[PR_keys],
PR_FLOAT, data[PR_position][0],
PR_FLOAT, data[PR_position][1],
PR_FLOAT, data[PR_position][2]
);
}