Skip to content
Denis edited this page Feb 12, 2023 · 24 revisions

Language: English | Русский

Pawn.RakNet

Plugin for SA:MP 0.3.7 server that allows you to capture and analyze RakNet traffic

Main features

  • Capture, modify, filter incoming/outgoing packets and RPCs
  • Send your own packets and RPCs to a player
  • Emulate incoming packets and RPCs from a player

Download

Installing

  • Place pawnraknet.dll/pawnraknet.so and pawnraknet.cfg inside plugins folder
  • Place Pawn.RakNet.inc inside pawno/include folder (Windows)
  • Append to server.cfg
    • plugins pawnraknet.dll (Windows)
    • plugins pawnraknet.so (Linux)
  • Include header to your script
    #include <Pawn.RakNet>
  • If you want to use Pawn.RakNet in a filterscript, put this define before including
    #define FILTERSCRIPT

Configuration (pawnraknet.cfg)

The values in parentheses are default values

  • InterceptIncomingPacket (true)
  • InterceptIncomingRPC (true)
  • InterceptOutgoingPacket (true)
  • InterceptOutgoingRPC (true)
  • InterceptIncomingRawPacket (true)
  • InterceptIncomingInternalPacket (false)
  • InterceptOutgoingInternalPacket (false)
  • WhiteListInternalPackets ([]) - you can enumerate specific packet ids in that array to intercept only them in OnIncomingInternalPacket/OnOutgoingInternalPacket
  • UseCaching (false) [enabled caching is incompatible with YSI includes]
  • LogAmxErrors (true)

Compilation