Dialog spoofing
#1

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.
Reply
#2

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.
Reply
#3

Thank you
Reply
#4

Actually, they can spoof even more than that: https://sampforum.blast.hk/showthread.php?tid=627990 . Everything from the response can be spoofed. Use that include and you may be totally safe from dialog spoofing.
Reply
#5

It works? Because I read of lot of people having issues, can I use it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)