SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/11/2017, 05:42 PM   #1
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 81
Reputation: 4
Default Dialog spoofing

I heard about this issue and I want to understand more about how it works and if it's possible to avoid.

Thanks in advance.
pollo97 is offline   Reply With Quote
Old 25/11/2017, 06:27 PM   #2
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,984
Reputation: 1392
Default Re: Dialog spoofing

They can only spoof their last dialog shown. Hook ShowPlayerDialog and store the dialogid to a per-player array. In OnDialogReponse callback, check if they match.
> If not, call ShowPlayerDialog with dialogid as -1 (or any negative) to hide the dialog to player's screen and just return true/1 to stop the code execution.
> If they do match, reset the variable to -1 or a desired value (preferably negative to avoid any conflicts) and let it execute the code for that response.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 25/11/2017, 07:11 PM   #3
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 81
Reputation: 4
Default Re: Dialog spoofing

Thank you
pollo97 is offline   Reply With Quote
Old 25/11/2017, 07:18 PM   #4
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,863
Reputation: 370
Default Re: Dialog spoofing

Actually, they can spoof even more than that: http://forum.sa-mp.com/showthread.php?t=627990 . Everything from the response can be spoofed. Use that include and you may be totally safe from dialog spoofing.
__________________


IstuntmanI is offline   Reply With Quote
Old 25/11/2017, 08:47 PM   #5
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 81
Reputation: 4
Default Re: Dialog spoofing

It works? Because I read of lot of people having issues, can I use it?
pollo97 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
Why its spoofing ? FizzyWalshy Scripting Help 0 08/06/2017 01:04 PM
What helps anti dialog spoofing? Learn Scripting Help 5 25/12/2016 11:12 PM
[Include] SpooflessDialogs - Prevent dialog spoofing! Nixtren Includes 11 10/10/2015 01:04 AM


All times are GMT. The time now is 12:50 PM.


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