Csõsztök találtam egy AntiCheat plugint a
www.sa-mp.com oldalon és gondoltam ide is áthozom
(Nem én csináltam)
Amiket tud:
In short:
-High performance, instant cheat detection!
-Highly Customizable!
-Jetpack detection - Instant - you even won\'t get one meter from the ground!
-VERY ADVANCED Weapon detection - no-one spawns any weapons without your knowledge!
-Best anti money hack! - INSTANT DETECTION!
Szóval JackPacknál bannol...
Fegyver & Pénz & armor & élet cheatnél BANNED
Egykét tudni való:
Ahoz,hogy használhassuk teendõk:
Elösször a módunkba belekkel épitenünk a
#include <AnticheatPlugin>
Részletesebben
Ez a AntiCheatPlugin tartalmaz:
[pawn]#define AC_ACTION_ONMONEY_REPORT (0)
#define AC_ACTION_ONMONEY_RESET (1)
#define AC_DETECTED_WEAPON (0)
#define AC_DETECTED_JETPACK (1)
#define AC_DETECTED_MONEY (2)[/pawn]
Callback[pawn]public AC_OnCheatDetected(playerid,cheat_type,ac_extra)[/pawn]
Funkciók:
[pawn]native ACget_UpdateDelay();
native ACset_UpdateDelay(ac_ticks);
native ACget_JetpackCheck();
native ACset_JetpackCheck(ac_enable = 1);
native ACget_JetpackAllowed(playerid = 0);
native ACset_JetpackAllowed(ac_allowed = 1,playerid = (-1));
native ACget_WeaponCheck();
native ACset_WeaponCheck(ac_enable = 1);
native ACset_AllowedWeapon(weaponid,ac_allowed = 1,playerid = (-1));
native ACget_AllowedWeapon(weaponid,playerid = 0);
native ACgive_PlayerWeapon(playerid, weaponid, ammo);
native ACreset_PlayerWeapons(playerid);
native ACset_SpawnWeaponCheck(enable = 1);
native ACget_SpawnWeaponCheck();
native ACset_MoneyCheck(ac_enable = 1);
native ACget_MoneyCheck();
native ACget_ActionOnMoneyCheat();
native ACset_ActionOnMoneyCheat(ac_action = 0);
native ACget_PlayerMoney(playerid);
native ACgive_PlayerMoney(playerid,amount);
native ACset_PlayerMoney(playerid,amount);[/pawn]
Példa script,hogy hogyan is kéne használni:
[pawn]#include <a_samp>
#include <AnticheatPlugin>
public OnGameModeInit()
{
ACset_JetpackCheck(1);
ACset_WeaponCheck(1);
ACset_MoneyCheck(1);
ACset_JetpackAllowed(0);//Jetpack is NOT allowed
ACset_SpawnWeaponCheck(1);
ACset_AllowedWeapon(38,0);//disable minigun for everyone
return 1;
}
public AC_OnCheatDetected(playerid,cheat_type,ac_extra)
{
switch(cheat_type)
{
case AC_DETECTED_WEAPON:
{
ACreset_PlayerWeapons(playerid);
SendClientMessage(playerid,0xFFFFFFFF,\"Detected weapon cheat - Reset your weapons.\");
return 1;
}
case AC_DETECTED_JETPACK:
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
SendClientMessage(playerid,0xFFFFFFFF,\"Detected JetPack - removed it.\");
return 1;
}
case AC_DETECTED_MONEY:
{
ACset_PlayerMoney(playerid,ACget_PlayerMoney(playerid));
SendClientMessage(playerid,0xFFFFFFFF,\"Money Cheat Detected - Money reset!\");
return 1;
}
default:
{
SendClientMessage(playerid,0xFFFFFFFF,\"?
Unknown cheat Detected? - no action
\");
return 1;
}
}
return 1;
}[/pawn]
De jöhet is a letöltés
Elõtte még a Linux esetén:
[pawn]# This file demonstrates how to compile the AntiCheat project on Linux.
#
# To compile AntiCheat do:
#
# make AntiCheat
#
GPP = g++
GCC = gcc
AntiCheat_OUTFILE = \"plugins/AntiCheat.so\"
COMPILE_FLAGS = -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME=\\\"AntiCheat\\\" -I ./SDK/amx/
AntiCheat = -D AntiCheat $(COMPILE_FLAGS)
all: AntiCheat
clean:
-rm -f *~ *.o *.so
AntiCheat: clean
$(GPP) $(AntiCheat) ./SDK/amx/*.c
$(GPP) $(AntiCheat) ./SDK/*.cpp
$(GPP) $(AntiCheat) *.cpp
$(GPP) -m32 -O2 -fshort-wchar -shared -o $(AntiCheat_OUTFILE) *.o[/pawn]
http://anti-cheat.googlecode.comletöltés
eredeti hey:
http://forum.sa-mp.com/showthread.php?t=268052