SA-MP Forums Archive
[FS/INC] FairPlay! AntiCheat - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FS/INC] FairPlay! AntiCheat (/showthread.php?tid=130755)

Pages: 1 2


[FS/INC] FairPlay! AntiCheat - Nekom - 28.02.2010

Script made by Peppe: I'm not Nekom, he's my cousin



ENGLISH:
SORRY BUT I USED A TRADUCTOR FOR THE TEXT...

Introduction:
Fair Play is a Anti Cheat created entirely by me that allows you to block specific Cheat

automatically.
I cheat that are detected are:
- Money Hack;
- Weapon Hack;
- JetPack Hack;
- Car Jacking Hack;
- Health Hack;
- Teleport Hack;
- Speed Hack


Guide:
To install the AntiCheat you follow these simple steps:
- Enter "FairPlay_Core" between filterscripts the server;
- Place the file "FairPlay.inc" folder includes the pawn you use;
- In GameMode and all filterscript you use you put on top "# include <FairPlay>.

By doing so you have installed the AntiCheat.
In the next version will be detected more Cheat, this is only a beta.
Also if you find bugs then say so.

When you first start dell'AntiCheat folder scriptfiles will create a file called

AntiCheat.cfg structured as follows:

AntiMoneyHack = 1
AntiWeaponHack = 1
AntiJetPack = 1
AntiCarJackHack = 1
AntiHealthHack = 1
AntiTeleportHack = 1
AntiSpeedHack = 1

If you want to disable a AntiCheat change the 1 to 0 in game or use the command "/

toggleanticheat" (you must be RCON Admin).

When you have already installed the Anti Cheat but want to upgrade i own where you recompile

including FairPlay.inc to fully update.

From version 0.3 the filterscript has changed the name to "FairPlay_Core", remember to

change it if you upgraded.

WARNING: some AntiCheat might be buggy because I just tried a few but with so many players

could cause problems or even when you have high ping ... so if you have problems with some

AntiCheat deactivate.

Other Features:
FairPlay! not only fails to block many cheat but it also has other useful functions ...
If you admin with RCON can use the command "/ scan [id]" to get useful information on a

player and also from version 0.3 does dell'AntiCheat control over the player to see if it

has the r pe invulnerable Mode.
Another feature is the "SetDisabledWeapon (weaponid)" that allows you to disable any weapon.

To use it you must have installed the AntiCheat and put in your gamemode / filterscript this

function where you want (usually nell'OnGameModeInit) for each weapon that you want to

block.
To rehabilitate a previously blocked weapon used "EnableDisabledWeapon (weaponid).


Exclude Admin dall'AntiCheat:
The AntiCheat default excludes admin who RCON. But when you use a System Admin that does not

work through these RCON admin by default are not excluded but with my Anti Cheat may be

recognized as admin so simple!
Just put this code in the Game Mode.

Forward GameMode_IsPlayerAdmin (playerid);
public GameMode_IsPlayerAdmin (playerid)
(
if (PlayerInfo [playerid] [Padmini]> 0)
(
return 1;
)
return 0;
)

Of course you must change the variable "PlayerInfo [playerid] [Padmini]" with what used to

be recognized as a player admin, even if this variable is used in many GM, usually the RP.


ChangeLog:
0.4: AntiHealthHack redone with life and armor in server side, code revised and made much

more stable.
0.3: Function to check if a player has an invulnerable Mode with the command / scan, the

possibility of excluding the admin dall'AntiCheat even if you use a system without RCON

admin.
0.2.5: Improved various AntiCheat, fixes some bugs, SetDisabledWeapon and

EnableDisableWeapon.
0.2.2: Improved Anti Speed Hack, admins have the option to enable / disable the various Anti

Cheat in game (/ toggleanticheat), added the command "/ scan [id]" for the admin, which

gives detailed information about a player.
0.2.0: Improved various Anti Cheat, input and Anti Anti Speed Hack Teleport Hack.
0.1.0: Anti Money Hack, Anti Weapon Hack, Anti JetPack, Anti Car Jack Hack, Anti GodMode.


Why use FairPlay!:
This AntiCheat is constantly updated and unlike others does everything automatically,
recognizes qualasiasi type of Weapon Hack, not just those type of weapons minigun or rocket

launcher and adapts perfectly to any GameMode FilterScript and without causing problems.


ITALIANO:

Introduzione:
Fair Play и un Anti Cheat creato interamente da me che permette di bloccare determinati

Cheat in modo automatico.
I cheat che vengono rilevati sono:
- Money Hack;
- Weapon Hack;
- JetPack Hack;
- Car Jacking Hack;
- Health Hack;
- Teleport Hack;
- Speed Hack


Guida:
Per installare l'AntiCheat dovete seguire questi semplici passi:
- Inserire "FairPlay_Core" tra i filterscripts del server;
- Inserire il file "FairPlay.inc" nella cartella include del pawno che usate;
- Nella GameMode e in tutti i filterscript che usate mettete in cima "#include <FairPlay>".

Cosм facendo avrete installato l'AntiCheat.
Nella prossima versione saranno rilevati piщ Cheat, questa и solo una beta.
Inoltre se trovate dei bug ditelo.

Al primo avvio dell'AntiCheat si creerа nella cartella scriptfiles un file di nome

AntiCheat.cfg strutturato cosм:

AntiMoneyHack=1
AntiWeaponHack=1
AntiJetPack=1
AntiCarJackHack=1
AntiHealthHack=1
AntiTeleportHack=1
AntiSpeedHack=1

Se volete disattivare un AntiCheat cambiate l'1 in 0 oppure usate in game il comando

"/toggleanticheat" (dovete essere RCON Admin).

Quando avete giа installato l'Anti Cheat ma volete aggiornarlo ricompilate i pwn dove avete

incluso il FairPlay.inc per aggiornarlo completamente.

Dalla versione 0.3 il filterscript ha cambiato il nome in "FairPlay_Core", ricordate di

cambiarlo se aggiornate.

ATTENZIONE: qualche AntiCheat potrebbe essere buggato siccome l'ho solo provato con pochi

player ma con tanti potrebbe causare problemi o anche quando si ha ping alto... quindi se

riscontrate problemi con qualche AntiCheat disattivatelo .

Altre Funzioni:
FairPlay! non solo riesce a bloccare molti cheat ma presenta anche altre utili funzioni...
Se siete admin con RCON potete usare il comando "/scan [id]" per avere molte informazioni

utili su un player e inoltre dalla versione 0.3 dell'AntiCheat fa un controllo sul player pe

r vedere se ha l'Invulnerable Mode.
Altra funzione и quella del "SetDisabledWeapon(weaponid)" che permette di disabilitare una

qualsiasi arma. Per usarla dovete avere installato l'AntiCheat e mettere nella vostra

gamemode/filterscript questa funzione dove volete (di solito nell'OnGameModeInit) per ogni

arma che volete bloccare.
Per riabilitare un arma precedentemente bloccata usate "EnableDisabledWeapon(weaponid)".


Escludere gli Admin dall'AntiCheat:
L'AntiCheat di default esclude gli admin che hanno RCON. Perт quando si utilizza un Admin

System che non funziona tramite RCON questi admin di default non vengono esclusi ma con il

mio Anti Cheat si possono far riconoscere come admin in modo semplicissimo!
Basta mettere nella Game Mode questo codice.

forward GameMode_IsPlayerAdmin(playerid);
public GameMode_IsPlayerAdmin(playerid)
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
return 1;
}
return 0;
}

Naturalmente dovete cambiare la variabile "PlayerInfo[playerid][pAdmin]" con quella che

usate per far riconoscere un player come admin, anche se questa variabile и usata in molte

GM, di solito quelle RP.


ChangeLog:
0.4: AntiHealthHack rifatto con vita e armatura in server side, codice rivisto e reso molto

piщ stabile.
0.3: Funzione per controllare se un player ha l'Invulnerable Mode con il comando /scan,

possibilitа di escludere gli admin dall'AntiCheat anche se si usa un admin system senza

RCON.
0.2.5: Migliorati i vari AntiCheat, risolti alcuni bug, SetDisabledWeapon e

EnableDisableWeapon.
0.2.2: Migliorato Anti Speed Hack, gli admin hanno la possibilitа di attivare/disattivare i

vari Anti Cheat in game (/toggleanticheat), inserito comando "/scan [id]" per gli admin, che

fornisce dettagliate informazioni sul un player.
0.2.0: Migliorati i vari Anti Cheat, inseriti Anti Teleport Hack e Anti Speed Hack.
0.1.0: Anti Money Hack, Anti Weapon Hack, Anti JetPack, Anti Car Jack Hack, Anti GodMode.


Perchи usare FairPlay!:
Questo AntiCheat и in continuo aggiornamento e a differenza di altri fa tutto in automatico,
riconosce qualasiasi tipo di Weapon Hack, quindi non solo quelli di armi tipo minigun o

lanciarazzi e si adatta perfettamente ad ogni GameMode e FilterScript senza causare

problemi.







Re: [FS/INC] FairPlay! AntiCheat - Razvann - 28.02.2010

Dead link for me.


Re: [FS/INC] FairPlay! AntiCheat - Nekom - 28.02.2010

It works for me o_O


Re: [FS/INC] FairPlay! AntiCheat - [03]Garsino - 28.02.2010

Quote:
Originally Posted by Nekom
It works for me o_O



Re: [FS/INC] FairPlay! AntiCheat - panther74 - 01.03.2010

C:\Documents and Settings\Admin.718E62F270C544E\Мои документы\FairPlay!\filterscripts\FairPlay_Core.pw n(2) : fatal error 100: cannot read from file: "foreach"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Help me


Re: [FS/INC] FairPlay! AntiCheat - g@k - 01.03.2010

nice useful


Re: [FS/INC] FairPlay! AntiCheat - Nekom - 01.03.2010

Quote:
Originally Posted by panther74
C:\Documents and Settings\Admin.718E62F270C544E\Мои документы\FairPlay!\filterscripts\FairPlay_Core.pw n(2) : fatal error 100: cannot read from file: "foreach"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Help me
Download the foreach include by ******... So there is the amx too


Re: [FS/INC] FairPlay! AntiCheat - panther74 - 01.03.2010

Nekom Thank you all running


Re: [FS/INC] FairPlay! AntiCheat - Nekom - 01.03.2010

Quote:
Originally Posted by panther74
Nekom Thank you all running
Please don't call me Nekom asd He's my cousin! My name is Peppe xD


Re: [FS/INC] FairPlay! AntiCheat - Zimon95 - 01.03.2010

Nice!

Bello, mi serviva grazie.


Re: [FS/INC] FairPlay! AntiCheat - Juanxz - 02.04.2010

I'm getting kicked if I spawn in a class that has weapons.


Re: [FS/INC] FairPlay! AntiCheat - Nekom - 02.04.2010

Quote:
Originally Posted by Juanxz
I'm getting kicked if I spawn in a class that has weapons.
Yes, it's because the weapons are in server side... you'll put the GivePlayerWeapon in OnPlayerSpawn


Re: [FS/INC] FairPlay! AntiCheat - Juanxz - 02.04.2010

Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
	SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 200);
  SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 200);
	SetPlayerInterior(playerid, 0);
  SetPlayerToTeamColor(playerid);
	return 1;
}
I have different classes with different weapons.

Do I need to change: GiveplayerWeapon with INC_GivePlayerWeapon?
Cos I have a weapon shop script.


Re: [FS/INC] FairPlay! AntiCheat - ReVo_ - 10.04.2010

Good


Re: [FS/INC] FairPlay! AntiCheat - Elviss - 21.08.2010

Thanks


Re: [FS/INC] FairPlay! AntiCheat - LZLo - 22.08.2010

It's going to be pretty!

thanks


Re: [FS/INC] FairPlay! AntiCheat - Dr.Ghost - 15.12.2010

Код:
D:\Documents and Settings\user\Desktop\LAS VENTURAS DEATH MATCH\DM 2010\pawno\include\FairPlay.inc(52) : warning 235: public function lacks forward declaration (symbol "INC_SetVehiclePos")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
got a one fix


Re: [FS/INC] FairPlay! AntiCheat - Face9000 - 15.12.2010

forward INC_SetVehiclePos();


AW: [FS/INC] FairPlay! AntiCheat - Trooper[Y] - 15.12.2010

Try to invent your own script name,
theres a plugin, which isnt only better but also has the same name


Re : AW: [FS/INC] FairPlay! AntiCheat - Peppe95 - 15.12.2010

Quote:
Originally Posted by Trooper[Y]
Посмотреть сообщение
Try to invent your own script name,
theres a plugin, which isnt only better but also has the same name
What? I don't see any plugin with this name .-.