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

[FilterScript] Anti-Flood (Packet was modified, sent by id)

$
0
0
Hello friends!

Today, I want to show you a simple script that will protect your server of cheats, which modifies the packet, and will make a flood in server_log.txt!
Code:

[18:40:36] Packet was modified, sent by id: 2, ip: 151.237.131.203:1158
[18:40:36] Packet was modified, sent by id: 2, ip: 151.237.131.203:1158
[18:40:37] Packet was modified, sent by id: 2, ip: 151.237.131.203:1158
[18:40:37] Packet was modified, sent by id: 2, ip: 151.237.131.203:1158

We will need a raknet plugin,put the script in the filterscripts file and activate it in server.cfg
The author is me.

Code:

#include <a_samp>
#include <Pawn.RakNet>

//Anti - Packet Modified by [MD]_Shift | skype: dima.shift |

const ID_MODIFIED_PACKET = 38;
IPacket:ID_MODIFIED_PACKET(playerid, BitStream:bs)
{
                new string[MAX_CHATBUBBLE_LENGTH],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                format(string,sizeof(string),"{FF0000}[Anti-PacketModified]: {FFFF00}%s {999999}(ID:%d) {00FF00}auto-kicked {FF0000}[Reason: Packet was modified]", name,playerid);
                SendClientMessageToAll(-1, string);
                Kick(playerid);
                return true;
}

DOWNLOAD

Viewing all articles
Browse latest Browse all 595

Trending Articles



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