Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Plugin] Pawn.RakNet - write the best anticheat

$
0
0
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(playeridBitStream:bs)
{
    new 
aimData[PR_AimSync];
    
    
BS_IgnoreBits(bs8); // packet id (byte)
    
BS_ReadAimSync(bsaimData);

    if (
aimData[PR_aimZ] != aimData[PR_aimZ]) // is NaN
    
{
        
aimData[PR_aimZ] = 0.0;

        
BS_SetWriteOffset(bs8);
        
BS_WriteAimSync(bsaimData); // rewrite data
    
}

    return 
1// continue processing


Wiki:
https://github.com/urShadow/Pawn.RakNet/wiki

Binaries:
https://github.com/urShadow/Pawn.RakNet/releases

Source code:
https://github.com/urShadow/Pawn.RakNet

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>