Open hiwyn opened 3 months ago
I have 2 questions:
1- https://github.com/katursis/Pawn.RakNet/releases/tag/1.6.0 does not come with pawnraknet.cfg its just create this file on sampserver/plugins together to pawnraknet.so?
pawnraknet.cfg
pawnraknet.so
2- where should i put:
IRawPacket:20(playerid, BitStream:bs) { new packetid, rpcid, NumberOfBitsOfData; BS_ReadValue(bs, PR_UINT8, packetid, PR_UINT8, rpcid, PR_CUINT32, NumberOfBitsOfData); if (packetid == 40 || (NumberOfBitsOfData >= 0x1FFFFF || NumberOfBitsOfData <= 0x80000000 || NumberOfBitsOfData < 0)) { printf("Crasher Detected - RPCID: %d, NumberOfBitsOfData: %d", rpcid, NumberOfBitsOfData); BanEx(playerid, "Raknet Bot"); return false; } return true; }
??? on the start of GM and call it on OnPlayerConnect? how?
simply put that code into your gamemodes and compile it
I have 2 questions:
1- https://github.com/katursis/Pawn.RakNet/releases/tag/1.6.0 does not come with
pawnraknet.cfg
its just create this file on sampserver/plugins together topawnraknet.so
?2- where should i put:
??? on the start of GM and call it on OnPlayerConnect? how?