-
Notifications
You must be signed in to change notification settings - Fork 29
Callbacks
Denis edited this page Sep 11, 2021
·
8 revisions
forward OnIncomingPacket(playerid, packetid, BitStream:bs);
forward OnIncomingRPC(playerid, rpcid, BitStream:bs);
forward OnIncomingRawPacket(playerid, packetid, BitStream:bs);
forward OnIncomingInternalPacket(playerid, packetid, BitStream:bs);
playerid == -1 => broadcast
forward OnOutgoingPacket(playerid, packetid, BitStream:bs);
forward OnOutgoingRPC(playerid, rpcid, BitStream:bs);
forward OnOutgoingInternalPacket(playerid, packetid, BitStream:bs);
Also available zcmd-style handlers
- IPacket (IncomingPacket alias)
- IRPC (IncomingRPC alias)
- OPacket (OutgoingPacket alias)
- ORPC (OutgoingRPC alias)
- IRawPacket (IncomingRawPacket alias)
- IInternalPacket (IncomingInternalPacket alias)
- OInternalPacket (OutgoingInternalPacket alias)
- ICustomRPC (IncomingCustomRPC alias)
Handlers are called after the general publics (e.g. any IPacket handlers will be called after OnIncomingPacket etc.)
- Refer to BrunoBM16's RPC and Packet lists