Dialog spoofing - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Dialog spoofing (
/showthread.php?tid=645366)
Dialog spoofing -
pollo97 - 25.11.2017
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.
Re: Dialog spoofing -
Konstantinos - 25.11.2017
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.
Re: Dialog spoofing -
pollo97 - 25.11.2017
Thank you
Re: Dialog spoofing -
IstuntmanI - 25.11.2017
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.
Re: Dialog spoofing -
pollo97 - 25.11.2017
It works? Because I read of lot of people having issues, can I use it?