SA-MP Forums Archive
[Plugin] Pawn.RakNet - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Pawn.RakNet (/showthread.php?tid=640306)

Pages: 1 2 3 4 5 6 7 8 9


Re: Pawn.RakNet - write the best anticheat - CodeStyle175 - 09.09.2017

can you make full anticheat with that pls


Re: Pawn.RakNet - write the best anticheat - jlalt - 10.09.2017

Well done, really awesome dude!, btw by this its possible to get the player went afk / back packets right?


Re: Pawn.RakNet - write the best anticheat - Eoussama - 10.09.2017

Quote:
Originally Posted by jlalt
View Post
Well done, really awesome dude!, btw by this its possible to get the player went afk / back packets right?
I guess it's possible, Raknet is separate from the server yet connected in its functionality, SA-MP is running on, a single thread, meaning, everything is processed in order to occurrence, which is not entirely bad,
see this for more information about syncing: https://sampforum.blast.hk/showthread.php?pid=876854#pid876854


Re: Pawn.RakNet - write the best anticheat - Develerux - 10.09.2017

Quote:
Originally Posted by CodeStyle175
View Post
can you make full anticheat with that pls
Yeah, I would be fine.

I need s 0 b e i t detect & aimbot protection.


Re: Pawn.RakNet - write the best anticheat - kristo - 11.09.2017

This plugin is conflicting with multiple other plugins. Whenever I add it to the plugins line, sscanf, streamer and YSF natives stop working. I'm using the Linux version.

Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[10.09.2017 21:16:38]
[10.09.2017 21:16:38] Server Plugins
[10.09.2017 21:16:38] --------------
[10.09.2017 21:16:38] Loading plugin: crashdetect.so
[10.09.2017 21:16:38] CrashDetect v4.18.1 is OK.
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: bcrypt-samp.so
[10.09.2017 21:16:38] plugin.bcrypt v2.2.3 was loaded.
[10.09.2017 21:16:38] plugin.bcrypt: 8 cores detected, 7 threads will be used.
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: ColAndreas_static.so
[10.09.2017 21:16:38] *********************
[10.09.2017 21:16:38] ** Created By: **
[10.09.2017 21:16:38] ** [uL]Chris42O **
[10.09.2017 21:16:38] ** [uL]Slice **
[10.09.2017 21:16:38] ** [uL]Pottus **
[10.09.2017 21:16:38] *********************
[10.09.2017 21:16:38] No collision data found.
[10.09.2017 21:16:38] *********************
[10.09.2017 21:16:38] ColAndreas Loaded
[10.09.2017 21:16:38] v1.4.0
[10.09.2017 21:16:38] *********************
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: CVector.so
[10.09.2017 21:16:38] -------------------------------------------------------
[10.09.2017 21:16:38] - -
[10.09.2017 21:16:38] - Vectoral Pawn v1.0 Loaded -
[10.09.2017 21:16:38] - by Skyline. -
[10.09.2017 21:16:38] - -
[10.09.2017 21:16:38] -------------------------------------------------------
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: FCNPC.so
[10.09.2017 21:16:38]
[10.09.2017 21:16:38] -------------------------------------------------
[10.09.2017 21:16:38] FCNPC - Fully Controllable NPC v1.7.5
[10.09.2017 21:16:38] GNU/Linux SA-MP 0.3.7 R2
[10.09.2017 21:16:38] Sep 6 2017 at 20:33:54
[10.09.2017 21:16:38]
[10.09.2017 21:16:38] Author: OrMisicL (2013 - 2015)
[10.09.2017 21:16:38] Continued by: ziggi (2016 - present)
[10.09.2017 21:16:38] Contributors: kurta999, Neutralneu
[10.09.2017 21:16:38] -------------------------------------------------
[10.09.2017 21:16:38]
[10.09.2017 21:16:38] Loading...
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: mysql.so
[10.09.2017 21:16:38] >> plugin.mysql: R41-3 successfully loaded.
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: pawnraknet.so
[10.09.2017 21:16:38] Pawn.RakNet plugin v1.0.1 by urShadow loaded
[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: sscanf.so
[10.09.2017 21:16:38]

[10.09.2017 21:16:38] ===============================

[10.09.2017 21:16:38] sscanf plugin loaded.

[10.09.2017 21:16:38] Version: 2.8.2

[10.09.2017 21:16:38] © 2012 Alex "******" Cole

[10.09.2017 21:16:38] ===============================

[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: streamer.so
[10.09.2017 21:16:38]

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loading plugin: YSF.so
[10.09.2017 21:16:38]

[10.09.2017 21:16:38] ===============================

[10.09.2017 21:16:38] YSF - kurta999's version R19-2 loaded

[10.09.2017 21:16:38] © 2008 Alex "******" Cole - © 2010 - 2016 kurta999

[10.09.2017 21:16:38] Server version: 0.3.7 R2-1

[10.09.2017 21:16:38] Operating System: Linux

[10.09.2017 21:16:38] Built on: Sep 10 2017 at 12:06:20

[10.09.2017 21:16:38] ===============================

[10.09.2017 21:16:38] Loaded.
[10.09.2017 21:16:38] Loaded 10 plugins.

[10.09.2017 21:16:38]
[10.09.2017 21:16:38] Filterscripts
[10.09.2017 21:16:38] ---------------
[10.09.2017 21:16:38] Loading filterscript 'fix.amx'...
[10.09.2017 21:16:38] RCON fix laetud.
[10.09.2017 21:16:38] Loaded 1 filterscripts.

[10.09.2017 21:16:38] [debug] Run time error 19: "File or function is not found"
[10.09.2017 21:16:38] [debug] SSCANF_Init
[10.09.2017 21:16:38] [debug] SSCANF_IsConnected
[10.09.2017 21:16:38] [debug] SSCANF_Join
[10.09.2017 21:16:38] [debug] SSCANF_Leave
[10.09.2017 21:16:38] [debug] CreateDynamicObject
[10.09.2017 21:16:38] [debug] DestroyDynamicObject
[10.09.2017 21:16:38] [debug] Streamer_Update
[10.09.2017 21:16:38] [debug] SetDynamicObjectMaterial
[10.09.2017 21:16:38] [debug] DestroyDynamic3DTextLabel
[10.09.2017 21:16:38] [debug] EditDynamicObject
[10.09.2017 21:16:38] [debug] SetPlayerChatBubbleForPlayer
[10.09.2017 21:16:38] [debug] GetWeaponSlot
[10.09.2017 21:16:38] [debug] GetDynamicObjectPos
[10.09.2017 21:16:38] [debug] CreateDynamic3DTextLabel
[10.09.2017 21:16:38] [debug] CreateDynamicPickup
[10.09.2017 21:16:38] [debug] SetDynamicObjectMaterialText
[10.09.2017 21:16:38] [debug] CountDynamicObjects
[10.09.2017 21:16:38] [debug] AttachDynamicObjectToVehicle
[10.09.2017 21:16:38] [debug] PlayerTextDrawSetPos
[10.09.2017 21:16:38] [debug] SetDynamicObjectPos
[10.09.2017 21:16:38] [debug] SetDynamicObjectRot
[10.09.2017 21:16:38] [debug] DestroyDynamicArea
[10.09.2017 21:16:38] [debug] MoveDynamicObject
[10.09.2017 21:16:38] [debug] Streamer_GetIntData
[10.09.2017 21:16:38] [debug] IsPlayerPaused
[10.09.2017 21:16:38] [debug] IsPlayerControllable
[10.09.2017 21:16:38] [debug] IsDynamicObjectMoving
[10.09.2017 21:16:38] [debug] DestroyDynamicPickup
[10.09.2017 21:16:38] [debug] IsPlayerSpawned
[10.09.2017 21:16:38] [debug] Streamer_SetIntData
[10.09.2017 21:16:38] [debug] IsPlayerInDynamicArea
[10.09.2017 21:16:38] [debug] StopDynamicObject
[10.09.2017 21:16:38] [debug] IsValidDynamicObject
[10.09.2017 21:16:38] [debug] sscanf
[10.09.2017 21:16:38] [debug] CreateDynamicSphere
[10.09.2017 21:16:38] [debug] Streamer_GetUpperBound
[10.09.2017 21:16:38] [debug] IsPlayerTextDrawVisible
[10.09.2017 21:16:38] [debug] PlayerTextDrawGetString
[10.09.2017 21:16:38] [debug] GetDynamicObjectRot
[10.09.2017 21:16:38] [debug] IsValidDynamicPickup
[10.09.2017 21:16:38] [debug] CreateDynamicCylinder
[10.09.2017 21:16:38] [debug] CreateDynamicRectangle
[10.09.2017 21:16:38] [debug] UpdateDynamic3DTextLabelText
[10.09.2017 21:16:38] [debug] Run time error 19: "File or function is not found"
[10.09.2017 21:16:38] [debug] SSCANF_Init
[10.09.2017 21:16:38] [debug] SSCANF_IsConnected
[10.09.2017 21:16:38] [debug] SSCANF_Join
[10.09.2017 21:16:38] [debug] SSCANF_Leave
[10.09.2017 21:16:38] [debug] CreateDynamicObject
[10.09.2017 21:16:38] [debug] DestroyDynamicObject
[10.09.2017 21:16:38] [debug] Streamer_Update
[10.09.2017 21:16:38] [debug] SetDynamicObjectMaterial
[10.09.2017 21:16:38] [debug] DestroyDynamic3DTextLabel
[10.09.2017 21:16:38] [debug] EditDynamicObject
[10.09.2017 21:16:38] [debug] SetPlayerChatBubbleForPlayer
[10.09.2017 21:16:38] [debug] GetWeaponSlot
[10.09.2017 21:16:38] [debug] GetDynamicObjectPos
[10.09.2017 21:16:38] [debug] CreateDynamic3DTextLabel
[10.09.2017 21:16:38] [debug] CreateDynamicPickup
[10.09.2017 21:16:38] [debug] SetDynamicObjectMaterialText
[10.09.2017 21:16:38] [debug] CountDynamicObjects
[10.09.2017 21:16:38] [debug] AttachDynamicObjectToVehicle
[10.09.2017 21:16:38] [debug] PlayerTextDrawSetPos
[10.09.2017 21:16:38] [debug] SetDynamicObjectPos
[10.09.2017 21:16:38] [debug] SetDynamicObjectRot
[10.09.2017 21:16:38] [debug] DestroyDynamicArea
[10.09.2017 21:16:38] [debug] MoveDynamicObject
[10.09.2017 21:16:38] [debug] Streamer_GetIntData
[10.09.2017 21:16:38] [debug] IsPlayerPaused
[10.09.2017 21:16:38] [debug] IsPlayerControllable
[10.09.2017 21:16:38] [debug] IsDynamicObjectMoving
[10.09.2017 21:16:38] [debug] DestroyDynamicPickup
[10.09.2017 21:16:38] [debug] IsPlayerSpawned
[10.09.2017 21:16:38] [debug] Streamer_SetIntData
[10.09.2017 21:16:38] [debug] IsPlayerInDynamicArea
[10.09.2017 21:16:38] [debug] StopDynamicObject
[10.09.2017 21:16:38] [debug] IsValidDynamicObject
[10.09.2017 21:16:38] [debug] sscanf
[10.09.2017 21:16:38] [debug] CreateDynamicSphere
[10.09.2017 21:16:38] [debug] Streamer_GetUpperBound
[10.09.2017 21:16:38] [debug] IsPlayerTextDrawVisible
[10.09.2017 21:16:38] [debug] PlayerTextDrawGetString
[10.09.2017 21:16:38] [debug] GetDynamicObjectRot
[10.09.2017 21:16:38] [debug] IsValidDynamicPickup
[10.09.2017 21:16:38] [debug] CreateDynamicCylinder
[10.09.2017 21:16:38] [debug] CreateDynamicRectangle
[10.09.2017 21:16:38] [debug] UpdateDynamic3DTextLabelText
[10.09.2017 21:16:38] -------------------------
[10.09.2017 21:16:38] Imperial Los Santos [tehke /es ferru sa oled loll]
[10.09.2017 21:16:38] Versioon: Lil GM$Y v0.1
[10.09.2017 21:16:38] Asukoht: Los Santos
[10.09.2017 21:16:38] Keel: Eesti keel
[10.09.2017 21:16:38] -------------------------
[10.09.2017 21:16:38] [SQLite]: Ьhendus хnnestus!




Re: Pawn.RakNet - write the best anticheat - Djole1337 - 11.09.2017

Great work, I would edit the title tho. Alot of beginners think that this is an anti cheat.


Re: Pawn.RakNet - write the best anticheat - YourShadow - 11.09.2017

Quote:
Originally Posted by kvann
View Post
This plugin is conflicting with multiple other plugins. Whenever I add it to the plugins line, sscanf, streamer and YSF natives stop working. I'm using the Linux version.
Which Linux distro do you use?


Re: Pawn.RakNet - write the best anticheat - kristo - 11.09.2017

Quote:
Originally Posted by YourShadow
View Post
Which Linux distro do you use?
Ubuntu 16.04.3 LTS (GNU/Linux 4.4.40-1-pve x86_64)


Re: Pawn.RakNet - write the best anticheat - YourShadow - 12.09.2017

Fixed.

Updated to 1.0.2.


Re: Pawn.RakNet - write the best anticheat - Zeth - 12.09.2017

Great Job! I saw that you are really updating stuffs everyday.I remember when i complaint about pawn.cmd and after 2-3 days, there was a new update with incompatibility issue fixed.


Re: Pawn.RakNet - write the best anticheat - YourShadow - 13.09.2017

New example AntiVehicleSpawn.

Original "OnVehicleDeath" ignores return value.


Respuesta: Pawn.RakNet - write the best anticheat - adri1 - 14.09.2017

This looks interesting
Some for detect player weapon? There is a cheat that returns 0 for GetPlayerWeapons and player can use weapon hacks and not detected


Re: Respuesta: Pawn.RakNet - write the best anticheat - YourShadow - 14.09.2017

Quote:
Originally Posted by adri1
View Post
This looks interesting
Some for detect player weapon? There is a cheat that returns 0 for GetPlayerWeapons and player can use weapon hacks and not detected
https://github.com/urShadow/Pawn.Rak...zation-packets

PHP Code:
PR_weaponId 



Respuesta: Pawn.RakNet - write the best anticheat - Fpwn - 15.09.2017

Hi, good job, I'll start to try some things because I'm not that expert


Re: Respuesta: Pawn.RakNet - write the best anticheat - Meller - 15.09.2017

Quote:
Originally Posted by Fpwn
View Post
Hi, good job, I'll start to try some things because I'm not that expert
What..
You're gonna start some things.. because you're not an expert? You're gonna do something /BECAUSE/ you're not an expert?

Makes no sense to me.. I might be stupid tho, idk.


Re: Respuesta: Pawn.RakNet - write the best anticheat - DTV - 15.09.2017

Quote:
Originally Posted by Meller
View Post
What..
You're gonna start some things.. because you're not an expert? You're gonna do something /BECAUSE/ you're not an expert?

Makes no sense to me.. I might be stupid tho, idk.
lmao, he's probably saying he'll try learning it.


Re: Pawn.RakNet - write the best anticheat - kurta999 - 16.09.2017

YourShadow: If you will boring, I would suggest you to add examples for others how you can sync different health values per-player, different position and etc.

Anyway, it doesn't slow down the server to make these very frequently called functions (eg: rpc handler) available in pawn?


Re: Pawn.RakNet - write the best anticheat - YourShadow - 16.09.2017

Quote:
Originally Posted by kurta999
View Post
Anyway, it doesn't slow down the server to make these very frequently called functions (eg: rpc handler) available in pawn?
Plugin feels free with 1000 active players online.


Re: Pawn.RakNet - write the best anticheat - Aliassassin123456 - 16.09.2017

Am I missing something in Pawn or this condition is useless?
Code:
const AIM_SYNC = 203;

IPacket:AIM_SYNC(playerid, BitStream:bs)
{
    new aimData[PR_AimSync];
    
    BS_IgnoreBits(bs, 8);
    BS_ReadAimSync(bs, aimData);

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

        BS_SetWriteOffset(bs, 8);
        BS_WriteAimSync(bs, aimData);
    }

    return 1;
}
And about this example, AntiVehicleSpawn, what about when it called when that vehicle is in water? OnVehicleDeath should be called
https://github.com/urShadow/Pawn.Rak...tiVehicleSpawn


Re: Pawn.RakNet - write the best anticheat - povargek - 16.09.2017

Quote:
Originally Posted by Aliassassin123456
View Post
Am I missing something in Pawn or this condition is useless?
Code:
const AIM_SYNC = 203;

IPacket:AIM_SYNC(playerid, BitStream:bs)
{
    new aimData[PR_AimSync];
    
    BS_IgnoreBits(bs, 8);
    BS_ReadAimSync(bs, aimData);

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

        BS_SetWriteOffset(bs, 8);
        BS_WriteAimSync(bs, aimData);
    }

    return 1;
}
And about this example, AntiVehicleSpawn, what about when it called when that vehicle is in water? OnVehicleDeath should be called
https://github.com/urShadow/Pawn.Rak...tiVehicleSpawn
i fixed car respawning when it in water with MapAndreas plugin

Code:
public OnVehicleRequestDeath(vehicleid, killerid)
{
	new Float:X, Float:Y, Float:Z, Float:health;
	GetVehiclePos(vehicleid,X,Y,Z);
	MapAndreas_FindZ_For2DCoord(X,Y,Z);
	GetVehicleHealth(vehicleid, health);
	
	if(health > 300.0 && Z != 0.0) // If car above the water MapAndreas return a height 0.0
	{
		return 0;
	}
	
	return 1;
}
AimZ cheat passes the nan parameter. NaN is not equal to itself, so it's the way to check variable for nan value.