ondialogresponse protection
#1

Hi,

Is there need to make protection, like when i showplayerdialog, and in ondialogresponse i showplayerdialog again with same id, like when player need to write password he write empty string, i reshow dialog again, but player can spam, and showplayerdialog will be calling a lot of times. So can player doing this harm server? maybe using cleo with low interval timer, automatic clicks, or not need to do that?
Reply
#2

If you wish to block it then check if the dialog is invalid under OnDialogResponse
pawn Код:
if(listitem < -1 || dialogid >= 32000 || dialogid < -32000)
    {
               //your code
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)