SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 25/09/2018, 07:27 PM   #1
XStormiest
Gangsta
 
Join Date: Jun 2012
Location: Continent: Europe, Country: Romania, City: Buzau
Posts: 558
Reputation: 46
Default Anti-Speed - Vehicles Only

Description:

You may wonder what this is, it's simple it's based on some kind of artificial intelligence concept although I cannot call it so because there is nothing yet intelligent about this. Some of you may say this is good to be considered as an snippet but nope, it's an entire code, more like open source.

This register speed for each vehicle model for each player, it adds them to a vector and then compares the values in the vector, if the difference between elements is too great, that means that at some point the player used cheats, it also allows for further scripting [ ADVANCED ONLY ] to create more scripts based on this script. I did not create this script to show how great I am in scripting but as an example of an idea that could be developed and it would be a waste to stay death in my computer, so here I am posting it.

Utility

You can change that difference and you can create something that marks the maximum speed for all vehicle models along the time.


Download:
v1.2
https://pastebin.com/nF1BuGK9
Changelog:

Included MapAndreas for height verifications so that the anti-cheat won't detect falling down as an hack!


v1.1
https://pastebin.com/ZXBcEYff

I hope you fiind it usefull and that it doesn't get wasted, I mean it can be very a well a script that can change many servers given the chance.
__________________

Last edited by XStormiest; 25/09/2018 at 11:09 PM.
XStormiest is offline   Reply With Quote
Old 25/09/2018, 09:19 PM   #2
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 375
Reputation: 92
Default Re: Anti-Speed - Vehicles Only

If a car falls from sky it will detected as a CHEAT
__________________
Lokii is offline   Reply With Quote
Old 25/09/2018, 11:04 PM   #3
XStormiest
Gangsta
 
Join Date: Jun 2012
Location: Continent: Europe, Country: Romania, City: Buzau
Posts: 558
Reputation: 46
Default Re: Anti-Speed - Vehicles Only

Updated to v1.2:


Changelog:

Included MapAndreas for height verifications so that the anti-cheat won't detect falling down as an hack!
__________________
XStormiest is offline   Reply With Quote
Old 25/09/2018, 11:25 PM   #4
d3Pedro
Huge Clucker
 
Join Date: Apr 2012
Location: darkness
Posts: 321
Reputation: 94
Default Re: Anti-Speed - Vehicles Only

Hey this is nice, thanks for the effort.
Here's a rep for you.
d3Pedro is offline   Reply With Quote
Old 26/09/2018, 12:44 AM   #5
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 375
Reputation: 92
Default Re: Anti-Speed - Vehicles Only

No need for map andreas just dont calculate the height
__________________
Lokii is offline   Reply With Quote
Old 26/09/2018, 03:25 AM   #6
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,193
Reputation: 420
Default Re: Anti-Speed - Vehicles Only

Doesn't seem like much to me, it's the same concept over and over again, you're just checking the vehicle's speed and model, same method applied here although i made a check for falling vehicles without using mapandreas so tell me why should people use yours and not mine?

I'm not bashing you for it i just hoped for something different or a new way of detecting speed cheats overall i don't recommend the usage of one timer for everyone (looping through all players through a timer at OnFiltescriptInit).

And this code doesn't make sense to me:
Code:
public OnPlayerConnect(playerid)
{
    for(new i = 0; i < 212; i++)
    {
        for(new j = 0; j < 100; j++)
            MaxSpeed[playerid][i][j] = 0;
        K[playerid][i] = 0;
    }
    return 1;
}
And what was the point of this?
Code:
new Anomally = ANOMALLY;
Too much useless code included tbh.
__________________
Quote:
Originally Posted by Andy
My anti cheat is still relevant *puts shades on* https://github.com/RogueDrifter/Anti_cheat_pack

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link

RogueDrifter is offline   Reply With Quote
Old 26/09/2018, 07:35 AM   #7
AidanRO
Big Clucker
 
Join Date: Apr 2015
Posts: 50
Reputation: 2
Default Re: Anti-Speed - Vehicles Only

This is the most basic kind of anti-cheat one could make. It is in no way an AI because you are just comparing a player's current data to already pre-defined data in the game.

An AI, would have to compare a player's current data with an array of data that was collected over the span of a few hundreds of hours of playtime (just an example) of other players, to determine if he is indeed hacking or not. Sometimes the pre-defined data in the game is plainly wrong, while real data collected from the players is more accurate.
AidanRO is offline   Reply With Quote
Old 26/09/2018, 08:45 AM   #8
XStormiest
Gangsta
 
Join Date: Jun 2012
Location: Continent: Europe, Country: Romania, City: Buzau
Posts: 558
Reputation: 46
Default Re: Anti-Speed - Vehicles Only

I didn't say it was AI, I said it was based on an AI concept and I know it's not something special, I didn't make this to show how great I am because everyone can do anything if you think about it. I made this script hoping it will be usefull to some scripters to further enchant it and make something good and unique from it and maybe even release it to the public or use it for their own sake.

Now:
Code:
public OnPlayerConnect(playerid)
{
    for(new i = 0; i < 212; i++)
    {
        for(new j = 0; j < 100; j++)
            MaxSpeed[playerid][i][j] = 0;
        K[playerid][i] = 0;
    }
    return 1;
}
I made this so that when a player exits the server with id 4 that got banned for cheats, when another one enters with the same id he would not get banned imediately after he enters a vehicle.

Code:
new Anomally = ANOMALLY;
Yeah, I know this kind of pointless but it's just for the aesthetics.


Yes it's a very basic script but it was made to be further developed

The reason why I used MapAndreas in the first place instead of calculating it myself, it's because of the z difference in some places and so that the cheat won't freak out when he goes in an unexpected place and ban the player there thinking that he is not falling or anything like that.

Also, I haven't released anything in a while now and I wanted to release something and thus having this script laying there I thought maybe someone there can actually make it work and give it a chance instead of being in my computer. I will not release this kind of scripts in the future, I will make my work based on unique scripts so this is the last kind of basic script in the hope you will make something great from it.
XStormiest is offline   Reply With Quote
Old 26/09/2018, 10:28 PM   #9
NoahF
Gangsta
 
NoahF's Avatar
 
Join Date: Jul 2012
Location: USA
Posts: 860
Reputation: 38
Default Re: Anti-Speed - Vehicles Only

It's a good start man, I think this has the potential to be highly developed even further, thanks.
NoahF is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP] Speed of vehicles Vlad_Dredd Scripting Help 2 19/10/2013 09:50 AM
Vehicles Speed Roberto Saviano General 2 15/03/2012 12:34 PM
Top speed of ALL vehicles Thoma.s.Heck Everything and Nothing 5 06/03/2012 03:20 PM
speed vehicles Robert007 Help Archive 11 14/12/2009 02:43 PM
convertFFS Vehicles! [Awesome tools to speed up working with vehicles] kc Filterscripts 34 18/06/2009 11:34 PM


All times are GMT. The time now is 03:29 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.