30.04.2012, 13:18
(
Последний раз редактировалось Hanger; 25.07.2014 в 22:58.
Причина: Update v3
)
Scrapped old versions and have fully rewritten the code. Let me introduce you to the new #AVT which will disable vehicle warp hack / teleport, car spam and car rains. Inspiration raised due to problems occurring in servers I own.
Now tests have been made and few updates implemented again.
Two callbacks can be processed:
Positives:
PASTEBIN LINK
Now tests have been made and few updates implemented again.
Two callbacks can be processed:
Код:
/* Do not ban through this as innocent players will get reported as well; */ forward OnAntiCheatVehicleWarp(playerid, vehicleid); /* This one is called when player does not go through OnPlayerEnterVehicle; */ forward OnAntiCheatVehicleWarpInto(playerid, vehicleid);
- This include will automatically revert vehicle position changes - made by our enemies;
- Uses _ALS_ hooking method;
- No timers involved as of yet;
- Trailing support - only when appropriate server functions are used;
- Vehicle push support;
- Now supports cases when player leaves a moving vehicle;
- Detection of warping into vehicles.
- Will not detect if warped vehicle is really close to the hacker "range < 10.0";
- The system can be bypassed when hacker uses sa-mp client hack patches, but changes are purely client sided so it will have no effect on other players. In these cases, reverts will be made as soon as hacker disables those patches; (Tested)
- Vehicle Trailer Attachment does not work via other scripts other than GameMode;
- PutPlayerInVehicle should be avoided via filterscripts.
Код:
Save the document from pastebin; Place it under pawno\includes folder; Rename it to "avt".inc; Add to your script "#include <avt>" BEFORE any other include other than a_samp or fixes; Compile your script;
Код:
Update v3.2 Minor fixes and improvements; Added support to allow vehicle creation via filterscritpts / plugins.