25.11.2017, 18:27
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.
> 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.