02.01.2018, 20:10
(
Last edited by Jelly23; 02/01/2018 at 10:28 PM.
)
Quote:
Sobre a arma da pra fazer com o pacote OnFootSync mesmo.
Jб sobre as balas acredito que nгo dб utilizando OnFootSync mas com AimSync й possнvel. (Se eu estiver errado me corrijam) https://github.com/urShadow/Pawn.Rak...ion-structures |
Vocк pode obter essa informaзгo usando o pacote 204 (ID_WEAPONS_UPDATE). Exemplo:
PHP Code:
public OnIncomingPacket(playerid, packetid, BitStream:bs)
{
new slot, armas[13][2];
if (packetid == 204)
{
BS_IgnoreBits(bs, 8);
for (new i = 0; i < 13; i++)
{
BS_ReadValue(
bs,
PR_UINT8, slot,
PR_UINT8, armas[i][0],
PR_UINT16, armas[i][1]
);
printf("%i %i %i", slot, armas[i][0], armas[i][1]);
}
}
return 1;
}