SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/11/2016, 07:17 PM   #1
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Cheat engine & Dialogs

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
Naruto_Emilio is offline   Reply With Quote
Old 09/11/2016, 08:00 PM   #2
SickAttack
High-roller
 
Join Date: Dec 2013
Posts: 4,761
Reputation: 754
Default Re: Cheat engine & Dialogs [+4 REP]

Don't have time to solve problems? Don't open a server.

-> I remind you that this board isn't for requests.
SickAttack is offline   Reply With Quote
Old 09/11/2016, 08:03 PM   #3
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re: Cheat engine & Dialogs [+4 REP]

Quote:
Originally Posted by SickAttack View Post
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..
Naruto_Emilio is offline   Reply With Quote
Old 09/11/2016, 08:04 PM   #4
SickAttack
High-roller
 
Join Date: Dec 2013
Posts: 4,761
Reputation: 754
Default Re: Cheat engine & Dialogs [+4 REP]

Quote:
Originally Posted by Naruto_Emilio View Post
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..
This board is for requesting help on code you have written... Go read the forum specific rules.
SickAttack is offline   Reply With Quote
Old 12/11/2016, 06:54 PM   #5
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re: Cheat engine & Dialogs [+4 REP]

bump
Naruto_Emilio is offline   Reply With Quote
Old 12/11/2016, 07:00 PM   #6
Micko123
High-roller
 
Micko123's Avatar
 
Join Date: Feb 2016
Location: 127.0.0.1:7777
Posts: 1,199
Reputation: 45
Default Re: Cheat engine & Dialogs [+4 REP]

You have 351 reputation and 1882 posts and still don't know for rules..
__________________

"You see that guy?? He was a beginner just like you.."

Quote:
Originally Posted by Calgon View Post
The SA-MP community gives the best advice with relationships, you have come to the right place my friend.


Micko123 is offline   Reply With Quote
Old 13/11/2016, 02:09 AM   #7
MikeB
Banned
 
Join Date: Mar 2014
Posts: 59
Reputation: 10
Default Re: Cheat engine & Dialogs [+4 REP]

Quote:
Originally Posted by Micko123 View Post
You have 351 reputation and 1882 posts and still don't know for rules..
Post count/reputation doesn't define knowledge.
MikeB is offline   Reply With Quote
Old 13/11/2016, 06:04 AM   #8
Threshold
High-roller
 
Threshold's Avatar
 
Join Date: Nov 2012
Location: Australia
Posts: 3,122
Reputation: 529
Default Re: Cheat engine & Dialogs [+4 REP]

Instead of relying on the client's response, you should try and keep everything server-sided if possible.

For example:
PHP Code:
#define DIALOG_TEST 1

#define MAX_LIST_ITEMS 25        // The maximum amount of list items
#define MAX_LIST_ITEM_TEXT 60    // The maximum length a list item text can be

new
    
ListItem[MAX_PLAYERS][MAX_LIST_ITEMS][MAX_LIST_ITEM_TEXT],
    
Player_ListItem[MAX_PLAYERS] = {0, ...}
;

#define AddListItem(%0,%1) format(ListItem[(%0)][Player_ListItem[(%0)]++], sizeof(ListItem[][]), (%1))
#define ClearListItems(%0); for(new litem = 0; litem != sizeof(ListItem[]); litem++) ListItem[(%0)][litem][0] = EOS; Player_ListItem[(%0)] = 0;

public OnPlayerSpawn(playerid)
{
    
AddListItem(playerid"1. Briefcase");
    
AddListItem(playerid"2. Torn Letter");
    
AddListItem(playerid"3. Cyanide Pills");
    
AddListItem(playerid"4. Toolbox");
    
ShowListDialog(playeridDIALOG_TEST, .caption "Items List");
    return 
1;
}

ShowListDialog(playeriddialogidcaption[] = "Dialog")
{
    new 
dialog_str[MAX_LIST_ITEMS MAX_LIST_ITEM_TEXT];
    for(new 
0sizeof(ListItem[]); i++)
    {
        if(
ListItem[playerid][i][0] == EOS) break;
        
format(dialog_strsizeof(dialog_str), "%s\n%s"dialog_strListItem[playerid][i]);
    }
    return 
ShowPlayerDialog(playeriddialogidDIALOG_STYLE_LISTcaptiondialog_str"Select""Exit");
}

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
response)
    {
        switch(
dialogid)
        {
            case 
DIALOG_TEST:
            {
                
printf("%s | %s"inputtextListItem[playerid][listitem]);
                if(
strcmp(inputtextListItem[playerid][listitem], true) != 0)
                {
                    
// inputtext does not match the list item text they selected
                    //Kick(playerid);
                    
return 0;
                }
                
ClearListItems(playerid); // Reset the player's list items text
                
return 1;
            }
        }
    }
    return 
0;

And I repeat, that is purely an example. You should make something that fits your own needs.
__________________


Kar's Cops and Robbers 2020
Threshold is offline   Reply With Quote
Old 14/11/2016, 07:39 PM   #9
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re: Cheat engine & Dialogs [+4 REP]

I would like to understand, how they are able to do it?
Naruto_Emilio is offline   Reply With Quote
Old 14/11/2016, 08:01 PM   #10
PrO.GameR
Gangsta
 
PrO.GameR's Avatar
 
Join Date: Oct 2012
Posts: 694
Reputation: 121
Default Re: Cheat engine & Dialogs [+4 REP]

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.
__________________
Blueberry Prison Roleplay will be back soon!
Follow the forums for more information about opening day.

Forums
PrO.GameR 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
[Ajuda] Anti 'Cheat Engine' iLordGG Português/Portuguese 3 03/06/2016 11:45 PM
Anti CHEAT-ENGINE Marko Koprivanac Scripting Help 0 24/08/2012 09:45 PM
[HELP]I just edited my /engine system and when i do /engine it says "unknown Lilcuete Help Archive 2 25/04/2010 01:31 PM


All times are GMT. The time now is 02:09 PM.


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