31.08.2017, 17:02
(
Last edited by YourShadow; 18/06/2020 at 11:31 AM.
)
Pawn.RakNet 1.4.1
Description:
Plugin for SA:MP server that allows you to analyze RakNet traffic.
This plugin is compatible with any version of SA:MP (newer than 0.3z). There is also 0.3e adaptation.
Main features:
- Capture, modify, and stop processing incoming/outcoming packets and RPCs
- Send packets and RPCs to player
- Emulate packets and RPCs from player
PHP Code:
const AIM_SYNC = 203; // 0.3.7
IPacket:AIM_SYNC(playerid, BitStream:bs) // incoming packet
{
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); // modify data
}
return 1; // continue processing
}
[Tutorial] RPC
[Tutorial] Packets
[Tutorial] Handlers
[Tutorial] If you plan on making an include with Pawn.RakNet
Documentation:
https://github.com/urShadow/Pawn.RakNet/wiki
Binaries:
https://github.com/urShadow/Pawn.RakNet/releases
Source code:
https://github.com/urShadow/Pawn.RakNet