Pawn.RakNet 1.0
Description:
Plugin that allows you to work with RakNet in Pawn.
This plugin is compatible with almost any version of SA:MP (newer than 0.3z).
Main features:
- Intercept and reprocess incoming/outcoming RPCs, incoming/outcoming packets
- Sending RPC and packets to player
Simple example:
PHP Code:
const AIM_SYNC = 203;
IPacket:AIM_SYNC(playerid, BitStream:bs)
{
new aimData[PR_AimSync];
BS_IgnoreBits(bs, 8); // packet id (byte)
BS_ReadAimSync(bs, aimData);
if (aimData[PR_aimZ] != aimData[PR_aimZ]) // is NaN
{
aimData[PR_aimZ] = 0.0;
BS_SetWriteOffset(bs, 8);
BS_WriteAimSync(bs, aimData); // rewrite data
}
return 1; // continue processing
}
https://github.com/urShadow/Pawn.RakNet/wiki
Binaries:
https://github.com/urShadow/Pawn.RakNet/releases
Source code:
https://github.com/urShadow/Pawn.RakNet