-
Notifications
You must be signed in to change notification settings - Fork 29
Send bullet data
Nexius edited this page Apr 22, 2024
·
4 revisions
const BULLET_SYNC = 206;
// toplayerid == -1 => broadcast
stock SendBulletData(fromplayerid, toplayerid, data[PR_BulletSync])
{
new BitStream:bs = BS_New();
BS_WriteValue(bs,
PR_UINT8, BULLET_SYNC,
PR_UINT16, fromplayerid
);
BS_WriteBulletSync(bs, data);
PR_SendPacket(bs, toplayerid);
BS_Delete(bs);
}
- Refer to BrunoBM16's RPC and Packet lists