Quantcast

Jump to content

» «
Photo

Anti-Cheat (No More Cheats)

SA Released
10 replies to this topic
Springfield
  • Springfield

    I gave my certificate. Bye!

  • Members
  • Joined: 08 Aug 2015
  • None

#1

Posted 09 June 2017 - 11:39 AM Edited by Springfield, 05 September 2017 - 09:22 AM.

For: San Andreas

 

Hi,

 
So, this modification will allow you to play the game without cheat codes. Cheats codes is actually a bad habit but many peoples requested this from me and now i'm proudly presenting you guys my first modification.

Usage: It enable automatically. Just type the cheat and a message will appear down below.

 

DOWNLOAD
 Guys its my first modification so, please give some good feedbacks.

 

src:

 

Spoiler


Springfield
  • Springfield

    I gave my certificate. Bye!

  • Members
  • Joined: 08 Aug 2015
  • None

#2

Posted 28 July 2017 - 10:45 AM

Waiting for your feedbacks. :D


-Anti-
  • -Anti-

    Snitch

  • Members
  • Joined: 23 Jan 2008
  • None

#3

Posted 28 July 2017 - 10:59 AM

Well first of all some more information would be nice. E.g.: What game?


Springfield
  • Springfield

    I gave my certificate. Bye!

  • Members
  • Joined: 08 Aug 2015
  • None

#4

Posted 28 July 2017 - 11:01 AM

Well first of all some more information would be nice. E.g.: What game?

See the tag -_-


LaDiDa
  • LaDiDa

    I'm only human

  • Members
  • Joined: 12 Jul 2016
  • Netherlands

#5

Posted 28 July 2017 - 03:40 PM

I don't see any tag :p
So it's universal then?

Light Syde Riandy
  • Light Syde Riandy

    LSR

  • Members
  • Joined: 18 Jun 2013
  • Indonesia

#6

Posted 28 July 2017 - 03:46 PM

He meant a tag below "Started by Springfield, Jun 09 2017 06:39 PM".


Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#7

Posted 05 September 2017 - 08:20 AM Edited by Junior_Djjr, 05 September 2017 - 08:20 AM.

Mix Sets (DisaCheats) already does this in the correct way — and I don't know if your mod does in the correct way too, after all, you blocked the script...

0.png

This is your first mod and you've started wrong. We're a mature community, release your source code, let everyone see your script. People can learn from you, or your work can be improved.

If you don't want to, well, anyway, how did you make this mod work? Explain in technical terms.

Springfield
  • Springfield

    I gave my certificate. Bye!

  • Members
  • Joined: 08 Aug 2015
  • None

#8

Posted 05 September 2017 - 09:21 AM

Mix Sets (DisaCheats) already does this in the correct way — and I don't know if your mod does in the correct way too, after all, you blocked the script...

0.png

This is your first mod and you've started wrong. We're a mature community, release your source code, let everyone see your script. People can learn from you, or your work can be improved.

If you don't want to, well, anyway, how did you make this mod work? Explain in technical terms.

Lol xD. I did not remember.. if i've written that.

 

Well, i lost the source code but i can give you a piece of code.

{$CLEO .cs}
0000:

:CHEAT
WAIT 0
IF AND
  PLAYER.DEFINED($PLAYER_CHAR)
  0ADC: TEST_CHEAT "LXGIWY"
ELSE_JUMP @CHEAT_2
WAIT 0
0ACC: SHOW_TEXT_LOWPRIORITY_"Anti Cheat is Enabled. You can't cheat" TIME 3000
JUMP @CHEAT

:CHEAT_2
WAIT 0
IF 
  0ADC: TEST_CHEAT "UZUMYM"
ELSE_JUMP @CHEAT_3
WAIT 0
0ACC: SHOW_TEXT_LOWPRIORITY_"Anti Cheat is Enabled. You can't Cheat" TIME 3000
JUMP @CHEAT_2

ETC...

This is actually a simple trick. When you try to enter the cheat.. then a message before the cheat  activation will appear which will block the incoming text and other stuff. Do not ever type the complete cheat in opcode '0ADC' because the cheat will be activated. Try to leave the last alphabet of cheat so, the CLEO will detect it easily that if the player is typing this then block it!

 

Simple trick stuff and useful for most users. Anyway, Thanks for visiting. Hope, you'll like this trick.  

  • Flame likes this

Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#9

Posted 05 September 2017 - 05:07 PM Edited by Junior_Djjr, 05 September 2017 - 05:07 PM.

Well, isn't a cool way...
It's an ugly hack, poor performance and you used just 1 variation of the cheat.

Each cheat have billions variations because of hash collision. For example HESOYAM and DISCOVERPARTSRICH is a hash collision of INEEDSOMEHELP (it's all the same cheat)(among a lot, lot, lot others), what about if the player prefer the use of real cheat (INEEDSOMEHELP) instead of HESOYAM? As so YECCGAA and ROCKETMAN; WANRLTW and FULLCLIP; LJSPQK and BRINGITON; JHDDT5 and JUMPJET etc. People can use other variations of cheats and you would have to add them too, which would at least double the size of your script.
http://www.mixmods.c...atualizada.html

All this can be done in the right way by really deactivating game cheats (code from Mix Sets):
0A8C: write_memory 0x4384D0 size 2 value 0x9090 vp 1
0A8C: write_memory 0x4384D2 size 1 value 0x90 vp 1
0A8C: write_memory 0x4384D3 size 1 value 0xE9 vp 1   
0A8C: write_memory 0x4384D4 size 4 value 0x000000CD vp 1
This code patches in game to disable all cheats.

Among other things that I don't see sense, as so...
IF AND
  PLAYER.DEFINED($PLAYER_CHAR)
  0ADC: TEST_CHEAT "LXGIWY"
ELSE_JUMP @CHEAT_2
Why this cheat need the player defined? And just this not others? If you didn't used $PLAYER_ACTOR variable to make the player actor do something, you don't need this.
And you don't need to use WAIT 0 before message. Why wait? Just show.

You could also have used GOSUB with a label with the message, so you would not need to have multiplied the amount of texts (0ACC:) which increases in memory usage, not much for a PC, but for the programming view.

And why did you program in low level? Did you learn by doing decompiling other people's code? Learn cleo scripting with my tutorial, is already very complete and very good translated into english. Is the most current, modern and complete tutorial available (there are still more parts coming in). Take it easy that you will learn a lot there.
  • Wesser, Silent and Springfield like this

madleg
  • madleg

  • Members
  • Joined: 01 Jan 2014
  • None

#10

Posted 05 September 2017 - 06:25 PM Edited by madleg, 05 September 2017 - 06:34 PM.

fatality... Today you learned one good reason to not show your source.

Not sure what is more senseless though idea itself, realisation, blaming "it is my first time" guy for not being advanced or leaving this comment...

Spoiler


Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#11

Posted 06 September 2017 - 09:45 PM

fatality... Today you learned one good reason to not show your source.

In another view, good reason to show your source.  :lol:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users