Posts: 1,297
Threads: 17
Joined: Apr 2011
Hello guys, I am facing a serious problem, which is people uses cheat engine to modify dialog items names, it affects my server because my server uses an inventory system, it wasnt made by me, and I dont want to remove it, I dont have time for it, if theres any fix for this, or anything that I can block people from using cheat engine i'll be gladful
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Don't have time to solve problems? Don't open a server.
-> I remind you that this board isn't for requests.
Posts: 1,297
Threads: 17
Joined: Apr 2011
Quote:
Originally Posted by SickAttack
Don't have time to solve problems? Don't open a server.
-> I remind you that this board isn't for requests.
|
The board is for scripting help, I am requesting help from people, if you cant help, then you shouldnt post here, go somewhere else to show off..
Posts: 1,297
Threads: 17
Joined: Apr 2011
Posts: 1,199
Threads: 238
Joined: Feb 2016
Reputation:
0
You have 351 reputation and 1882 posts and still don't know for rules..
Posts: 59
Threads: 7
Joined: Mar 2014
Quote:
Originally Posted by Micko123
You have 351 reputation and 1882 posts and still don't know for rules..
|
Post count/reputation doesn't define knowledge.
Posts: 1,297
Threads: 17
Joined: Apr 2011
I would like to understand, how they are able to do it?
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
You can simply validate the inputtext before using it, I assume you use something like PlayerInv[playerid][0]="Water" or maybe inv item indexes, simply validate it like !strcmp(PlayerInv[playerid][listitem],inputtext)
or something similar, I have no idea how your inv is coded.
They simply change inputtext, they have no access to anything else.
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
It's actually very easy. You can even change a players name, client messages and everything. Of course only you will see the changes, but when such information is sent back to the server, that's when you need protection from it.
Posts: 803
Threads: 138
Joined: Jul 2014
Reputation:
0
So lets say someone changes dialog name and list items name, how does it even affect you? You are using dialog ids to retrieve data arent you? Also show us some code if you want help.
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
When using dialog type DIALOG_STYLE_LIST, the selection you choose also sends the list item text in the form of 'inputtext' in OnDialogResponse.
While using inputtext as a method of selecting an item is not the safest, it's probably one of the easiest once you have protection against players that can change this text.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
The script shouldn't be using the text of the selected item in the first place, rather an array with an index (listitem).