SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 16/11/2017, 08:14 AM   #141
Dignity
High-roller
 
Dignity's Avatar
 
Join Date: May 2013
Location: Belgium
Posts: 1,813
Reputation: 1038
Default Re: Pawn.RakNet - write the best anticheat

Quote:
Originally Posted by KoloradO View Post
Code:
native SendClientCheck(playerid, actionid, memaddr, memOffset, bytesCount);

public OnPlayerRequestClass(playerid, classid)
{
	SendClientCheck(playerid, 0x2, 0, 0, 4);
  	return 1;
}

const ClientCheck = 103;

IRPC:ClientCheck(playerid, BitStream:bs)
{
	new addr, len;

	BS_ReadValue(bs, PR_UINT8, len,PR_INT32, addr);

	if ((addr & 0xFC0000) != 0xFC0000)
	{
		SendClientMessage(playerid, -1, "****** detected!");

		Kick(playerid);
	}
	return 1;
}
Why does this detect innocents sometimes?
The answer should be pretty obvious: the "innocents" alter the addresses you are checking, so either they are modifying it or those addresses are universally used.
__________________


IN DEVELOPMENT
JOIN US ON THE FORUMS
BECOME PART OF THE VICE VERIFIED TEAM
Dignity is offline   Reply With Quote
Old 16/11/2017, 04:57 PM   #142
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 111
Reputation: 181
Default Re: Pawn.RakNet - write the best anticheat

Added links to tutorials (by Jelly23) in the topic.
YourShadow is offline   Reply With Quote
Old 28/11/2017, 10:23 AM   #143
PowerMwK
Little Clucker
 
Join Date: Sep 2016
Location: Brazil - Ba
Posts: 48
Reputation: 0
Default Re: Pawn.RakNet - write the best anticheat

Quote:
Originally Posted by HydraHumza View Post
Really appreciate ur effort Dima Shift why not make a different thread with all this anti cheat would help all the other people.
It is cool, he helps to change the olds anti-cheats to the Pawn.RakNet Plugin, One of best Scripts of Pawn SA-MP

ps: And the YourShadow too
__________________
[PROJETO]



STATUS - EM CONSTRUO

SOB LICENCA DE
(UNDER THE LICENSE)

PARA USO NO COMERCIAL SEM AUTORIZAO DO AUTOR DO PROJETO
(FOR NON-COMMERCIAL USE WITHOUT AUTHORIZATION BY THE PROJECT AUTHOR)

Last edited by PowerMwK; 05/12/2017 at 11:06 AM.
PowerMwK is offline   Reply With Quote
Old 07/12/2017, 09:23 AM   #144
Splav
Big Clucker
 
Join Date: Jan 2011
Posts: 127
Reputation: 2
Default Re: Pawn.RakNet - write the best anticheat

Can I receive Weapon Data sync packets with this plugin?

Now I use GetPlayerWeaponData() in all OnPlayerUpdate(). I want to optimize it using only when it packets to change it receive. Is it possible?
__________________
:

1. - R3 [SQLite]
2. - R2 [MySQL]
3. GeoIP Include R1
Splav is offline   Reply With Quote
Old 08/12/2017, 07:08 PM   #145
AdrianGraber
Big Clucker
 
Join Date: Mar 2013
Location: Germany
Posts: 64
Reputation: 4
Default Re: Pawn.RakNet - write the best anticheat

Hi, I released a FS to disable KEY_FIRE and KEY_ACTION (Secondary Fire) from vehicle ids you specify, so you can use vehicles like Sea Sparrow or Hunter without its weapons.

http://forum.sa-mp.com/showthread.php?t=646000

Wanted to say thanks for making that possible!
AdrianGraber is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Using y_xml to write/read xml files. [Another way to write CFG data but better] Ahmad45123 Tutorials 8 13/03/2015 03:41 AM
VC:MP RakNet Version? Christopher. Everything and Nothing 1 27/01/2010 10:17 PM


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.