SA-MP Forums Archive
Ajuda - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ajuda (/showthread.php?tid=643019)



Ajuda - KoloradO - 11.10.2017

Can anyone give me examples of how to use this plugin:

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

To make an anti teleport, anti airbreak for example?


Re: Ajuda - Kraeror - 11.10.2017

You just have to download it, put in your pawno/include folder, open you pawno and at the top of the script write:
PHP код:
#include <TheNameOfTheFile> 
And you are ready!
+1 Rep me if I helped!



Re: Ajuda - KoloradO - 11.10.2017

I know how to install the plugin, I want to know how to use it to build an effective anti-teleport and airbreak?


Re: Ajuda - Lokii - 11.10.2017

You know you can get player old position and new one and then just sub the coords

after that just check if the sub is more than like 5 or so player is teleported or used airbreak


Re: Ajuda - Kraeror - 11.10.2017

This plugin only needs to be installed and included to the gamemode, so there are all function created!
There are: anti-airbrake, anti speed, anti invulnerable and etc.


Re: Ajuda - FuNkYTheGreat - 11.10.2017

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
This plugin only needs to be installed and included to the gamemode, so there are all function created!
There are: anti-airbrake, anti speed, anti invulnerable and etc.
That's a useless reply rep begger !

OT: The effective way is what Lokii says
Quote:

You know you can get player old position and new one and then just sub the coords

after that just check if the sub is more than like 5 or so player is teleported or used airbreak

And change it like when a airbreak hack detected on him plus a warning ( in a var ), And when it reaches to like 5 or 10, Kick him, This'll be more effective,
Or theres another way which alot's of server is using is that checking that if player's pos is changed about 50.0, So that there isn't any objection that i was lagging or some others,
However you can also try the Anti-S0b hack at the Topic of RakNet plugin, ( haven't tested it yet, But the positive reply says it's a bit working ), This'll protect you more !