14.11.2017, 13:16
Quote:
|
Код:
#define ID_PLAYER_SYNC 207
public OnIncomingPacket(playerid, packetid, BitStream:bs)
{
if (packetid == ID_PLAYER_SYNC)
{
new onFootData[PR_OnFootSync];
BS_IgnoreBits(bs, 8);
BS_ReadOnFootSync(bs, onFootData);
onFootData[PR_weaponId] = 38;
BS_SetWriteOffset(bs, 8);
BS_WriteOnFootSync(bs, onFootData);
}
return 1;
}
de modo que a outro player nгo enxergue o outro |
PHP код:
RemovePlayerForPlayer(playerid, toplayerid)
{
new BitStream:bs = BS_New();
BS_WriteValue(
bs,
PR_UINT16, playerid
);
BS_RPC(bs, toplayerid, 163, PR_LOW_PRIORITY, PR_RELIABLE_ORDERED);
BS_Delete(bs);
return 1;
}
toplayerid - Para quem o jogador vai ser removido.

