[Include] Nex-AC - Anticheat system

Quote:
Originally Posted by SecretBoss
Посмотреть сообщение
Try updating your samp's includes to 0.3.7 ones
i do but continuous two error

PHP код:
... \pawno\include\nex-ac.inc(2302) : error 025: function heading differs from prototype
... \pawno\include\nex-ac.inc(5362) : error 025: function heading differs from prototype 
Reply

Quote:
Originally Posted by Maathy
Посмотреть сообщение
i do but continuous two error

PHP код:
... \pawno\include\nex-ac.inc(2302) : error 025: function heading differs from prototype
... \pawno\include\nex-ac.inc(5362) : error 025: function heading differs from prototype 
1. Find in your gamemode

pawn Код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
And replace with the

pawn Код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
2. Do the same with

pawn Код:
OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
pawn Код:
OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
Reply

These are the lines of the errors
Quote:

forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

what do? in the gamemode there is nothing
Reply

These are the lines of the errors

PHP Code:
FIRST LINE ERRORforward ac_OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart);
SECOND LINE ERRORforward ac_OnUnoccupiedVehicleUpdate(vehicleidplayeridpassenger_seatFloat:new_xFloat:new_yFloat:new_zFloat:vel_xFloat:vel_yFloat:vel_z); 
what do? in the gamemode there is nothing
Reply

Detect Teleport hack in 'SetPlayerPos'. O_o
Reply

Hi, I report a bug : when 2 players are at long distance, when we shoot the cheat detect a godmode with the recoil of the weapon.
Reply

bug with code 005, when i drove fast e.g nrg/fcr and i pressed button Enter and i fast leave motorbike
Reply

How to Enable it ?
Reply

Installation:
1. Download version of the anticheat which compatible with the version of your server
2. Download the language file (.lang) on your preferred language
3. Copy both files to the folder "/pawno/include" which is located in the folder with the server
4. In gamemode and all filterscripts after "#include <a_samp>" write the following: "#include <nex-ac>"
Warning! If you are using a Streamer Plugin by Incognito, include it before nex-ac!
5. Compile the modified scripts
Reply

HOW TO installation
Reply

read my post or read first post on first page -.-
Reply

nex-ac.inc(11) : fatal error 111: user error: Please download SA-MP 0.3.7 R2 server package!
Reply

It gives me these errors

Quote:

C:\Users\user\Desktop\BG RP\CGRP\pawno\include\nex-ac.inc(3715) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\BG RP\CGRP\pawno\include\nex-ac.inc(3729) : error 025: function heading differs from prototype
C:\Users\user\Desktop\BG RP\CGRP\pawno\include\nex-ac.inc(4616) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\BG RP\CGRP\pawno\include\nex-ac.inc(4630) : error 025: function heading differs from prototype

Reply

Quote:
Originally Posted by Jmrz96
Посмотреть сообщение
nex-ac.inc(11) : fatal error 111: user error: Please download SA-MP 0.3.7 R2 server package!
Download Samp 0.3.7 R2 Server folder from their site.
After downloading copy the pawno folder in your server folder and should be alright.
Reply

Quote:

public OnCheatDetected(playerid, ip_address[], type, code)

How would I know which cheat player got banned for? I mean I'll get the code but what is the actual reason(money hax, weapon hax, ...)?
Reply

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
How would I know which cheat player got banned for? I mean I'll get the code but what is the actual reason(money hax, weapon hax, ...)?
I'm sure there's a way? What would printf("%s", code); print?
Reply

Well, since code param is an integer, it would print nothing, doing
PHP код:
 printf("%i"code); 
Would print the integer value which I can't figure out which cheat is it.

Edit:
Код:
D:\pawn\include\nex-ac.inc(3778) : warning 200: symbol "@yH_OnPlayerPickUpDynamicPickup" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(3778) : warning 200: symbol "@yH_OnPlayerPickUpDynamicPickup" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(4924) : warning 200: symbol "@yH_OnPlayerEnterDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(4924) : warning 200: symbol "@yH_OnPlayerEnterDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5010) : warning 200: symbol "@yH_OnPlayerLeaveDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5010) : warning 200: symbol "@yH_OnPlayerLeaveDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5092) : warning 200: symbol "@yH_OnPlayerClickPlayerTextDraw" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5092) : warning 200: symbol "@yH_OnPlayerClickPlayerTextDraw" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5129) : warning 200: symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5129) : warning 200: symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5165) : warning 200: symbol "@yH_OnVehicleSirenStateChange@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5165) : warning 200: symbol "@yH_OnVehicleSirenStateChange@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5201) : warning 200: symbol "@yH_OnPlayerSelectDynamicObject" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5201) : warning 200: symbol "@yH_OnPlayerSelectDynamicObject" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5274) : warning 200: symbol "@yH_OnUnoccupiedVehicleUpdate@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5274) : warning 200: symbol "@yH_OnUnoccupiedVehicleUpdate@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5366) : warning 200: symbol "@yH_OnPlayerEditAttachedObject@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5366) : warning 200: symbol "@yH_OnPlayerEditAttachedObject@" is truncated to 31 characters
Reply

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
Well, since code param is an integer, it would print nothing, doing
PHP код:
 printf("%i"code); 
Would print the integer value which I can't figure out which cheat is it.

Edit:
Код:
D:\pawn\include\nex-ac.inc(3778) : warning 200: symbol "@yH_OnPlayerPickUpDynamicPickup" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(3778) : warning 200: symbol "@yH_OnPlayerPickUpDynamicPickup" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(4924) : warning 200: symbol "@yH_OnPlayerEnterDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(4924) : warning 200: symbol "@yH_OnPlayerEnterDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5010) : warning 200: symbol "@yH_OnPlayerLeaveDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5010) : warning 200: symbol "@yH_OnPlayerLeaveDynamicRaceCP@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5092) : warning 200: symbol "@yH_OnPlayerClickPlayerTextDraw" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5092) : warning 200: symbol "@yH_OnPlayerClickPlayerTextDraw" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5129) : warning 200: symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5129) : warning 200: symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5165) : warning 200: symbol "@yH_OnVehicleSirenStateChange@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5165) : warning 200: symbol "@yH_OnVehicleSirenStateChange@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5201) : warning 200: symbol "@yH_OnPlayerSelectDynamicObject" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5201) : warning 200: symbol "@yH_OnPlayerSelectDynamicObject" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5274) : warning 200: symbol "@yH_OnUnoccupiedVehicleUpdate@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5274) : warning 200: symbol "@yH_OnUnoccupiedVehicleUpdate@a" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5366) : warning 200: symbol "@yH_OnPlayerEditAttachedObject@" is truncated to 31 characters
D:\pawn\include\nex-ac.inc(5366) : warning 200: symbol "@yH_OnPlayerEditAttachedObject@" is truncated to 31 characters
Код:
 	0 Anti-AirBreak (onfoot)
	1 Anti-AirBreak (in vehicle)
	2 Anti-teleport hack (onfoot)
	3 Anti-teleport hack (in vehicle)
	4 Anti-teleport hack (into/between vehicles)
	5 Anti-teleport hack (vehicle to player)
	6 Anti-teleport hack (pickups)
	7 Anti-FlyHack (onfoot)
	8 Anti-FlyHack (in vehicle)
	9 Anti-SpeedHack (onfoot)
	10 Anti-SpeedHack (in vehicle)
	11 Anti-Health hack (in vehicle)
	12 Anti-Health hack (onfoot)
	13 Anti-Armour hack
	14 Anti-Money hack
	15 Anti-Weapon hack
	16 Anti-Ammo hack (add)
	17 Anti-Ammo hack (infinite)
	18 Anti-Special actions hack
	19 Anti-GodMode from bullets (onfoot)
	20 Anti-GodMode from bullets (in vehicle)
	21 Anti-Invisible hack
	22 Anti-lagcomp-spoof
	23 Anti-Tuning hack
	24 Anti-Parkour mod
	25 Anti-Quick turn
	26 Anti-Rapid fire
	27 Anti-FakeSpawn
	28 Anti-FakeKill
	29 Anti-Pro Aim
	30 Anti-CJ run
	31 Anti-CarShot
	32 Anti-CarJack
	33 Anti-UnFreeze
	34 Anti-AFK Ghost
	35 Anti-Full Aiming
	36 Anti-Fake NPC
	37 Anti-Reconnect
	38 Anti-High ping
	39 Anti-Dialog hack
	40 Protection from the sandbox
	41 Protection against an invalid version
	42 Anti-Rcon hack
	43 Anti-Tuning crasher
	44 Anti-Invalid seat crasher
	45 Anti-Dialog crasher
	46 Anti-Attached object crasher
	47 Anti-Weapon Crasher
	48 Flood protection connects to one slot
	49 Anti-flood callback functions
	50 Anti-flood change seat
	51 Anti-Ddos
	52 Anti-NOP's
You can use these numbers to create a function like ReturnCodeName(codeid); or something to get the code as string, I remember doing it like this

OnPlayerLeaveDynamicRaceCP can't be hooked try putting all the code on your script and remove the hook
Reply

I fixed it by making the hooks name shorter. (just modified the error lines) Would this work? I don't even use any of these callbacks except OnPlayerPickUpDynamicPickup.
Reply

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
I fixed it by making the hooks name shorter. (just modified the error lines) Would this work? I don't even use any of these callbacks except OnPlayerPickUpDynamicPickup.
You can just remove the hooks from OnPlayerLeaveDynamicRaceCP then and just let it be there but it will may cause problems if you will need to create any code inside OnPlayerLeaveDynamicRaceCP again in future, you can just copy the code inside OnPlayerLeaveDynamicRaceCP and paste it where you have your callbacks no need for a hook
Reply


Forum Jump:


Users browsing this thread: 20 Guest(s)