SA-MP Forums Archive
[Include] Anti-Vehicle Spawner - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Anti-Vehicle Spawner (/showthread.php?tid=338586)

Pages: 1 2


Anti Vehicle Teleportation #AVT [UPDATE BUMP] - Hanger - 30.04.2012

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:
Код:
/* 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);
Positives: Downsides: Installation
Код:
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.
PASTEBIN LINK


Re: Anti-Vehicle Spawner - Crazyboobs - 30.04.2012

Nice script. +rep

This will inform to admins if a player spawn vehicles ?


Re: Anti-Vehicle Spawner - Hanger - 30.04.2012

Edit:
Not supported by new update.


Re: Anti-Vehicle Spawner - Crazyboobs - 30.04.2012

ok ty


Re: Anti-Vehicle Spawner - Hanger - 01.05.2012

An update has been made leaving include as "Plug and Play" compatible


Respuesta: Anti-Vehicle Spawner - [Vector] - 02.05.2012

You can't spawn a vehicle by yourself, the most common cheats just teleport vehicles to one location.


Re: Anti-Vehicle Spawner - Hanger - 03.05.2012

I was able to test it until I added SetVehiclePos hook, I guarantee it is working and it Also detects Mass Spawn with the same code structure. It will be still safe if vehicle will be towed away as OnUnoccupiedVehicleUpdate is hooked as well.
And what did you mean - to one location. Vehicle still will be detected and resestted to original position if vehicle streams in for any player, that's why the detection of player is not 100% but reset of vehicle is.
Or maybe you just did not get what this is for - Anti-cheat which prevents players/cheaters to teleport vehicles to themselves.

Edit:
Made an update where literal spawn / unknown vehicle usage detection is implemented. Also some code improvements are included.


Re: Anti-Vehicle Spawner - Jay_ - 03.05.2012

Nice work.
I'm going to give this a test on Las Venturas Playground


Re: Anti-Vehicle Spawner - 4LiSs0N - 03.05.2012

Nice Script


Re: Anti-Vehicle Spawner - c-middia - 03.05.2012

You do not filter server actors, my bots all end up under the field at 0,0,0


Re: Anti-Vehicle Spawner - Hanger - 04.05.2012

That should not happen unless you got some warnings when compiling. SetVehiclePos is hooked and PutPlayerInVehicle too.. if teleports works for player I cannot see the problem.
Anyway updated with attempt to fix your problem by adding !IsPlayerNPC in some callbacks.


Re: Anti-Vehicle Spawner - Jonny5 - 04.05.2012

not really a bug but you should not use the name avs there is already a release with that name.

besides that good work!


Re: Anti-Vehicle Spawner - c-middia - 04.05.2012

Код:
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(240) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(240) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(240) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(241) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(241) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(241) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(241) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(242) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(242) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(242) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(242) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(243) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(243) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(243) : warning 213: tag mismatch
D:\xfolder(2)\samp03\samp3e-R7-3\pawno\include\avs.inc(243) : warning 213: tag mismatch
i now get this error with 2.6


Re: Anti-Vehicle Spawner - Hanger - 04.05.2012

Thanks, fixed that little mistake. That AVS is with capital letters thought.


Respuesta: Anti-Vehicle Spawner - [Vector] - 04.05.2012

I don't see the point of the Anti Vehicle Spawner. As far I know, you cannot spawn vehicles in SA-MP client side because vehicles are server side.
By the way, I like the Anti mass vehicle.


Re: Anti-Vehicle Spawner - Hanger - 04.05.2012

I involved anti-spawner in later versions due ******* video, the first anti-thing was agains cheaters who teleports vehicles to themselves in game therefore it also protects server agains vehicle-mass-teleports.


Re: FIRST Anti-Vehicle Spawner [MUST HAVE] - SwiftKidZ - 05.05.2012

Nice


Re: Anti-Vehicle Spawner - c-middia - 08.05.2012

Compiles great now thank you


Re: Anti-Vehicle Spawner - Lorenc_ - 09.05.2012

Nice work.


Re: Anti-Vehicle Spawner - Kar - 09.05.2012

[MAX_VEHICLES char]

what?