Skip to content

Send bullet data

urShadow edited this page Aug 30, 2017 · 1 revision
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);

    BS_Send(bs, toplayerid);

    BS_Delete(bs);
}
You can’t perform that action at this time.