SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/08/2017, 11:54 AM   #1
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 161
Reputation: 0
Default ondialogresponse protection

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?
Bussyman is offline   Reply With Quote
Old 08/08/2017, 07:50 AM   #2
Ghazal
Gangsta
 
Ghazal's Avatar
 
Join Date: Oct 2013
Location: Egypt
Posts: 513
Reputation: 160
Default Re: ondialogresponse protection

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

Stunt Evolution Freeroam
Website .:. Forum .:. Join now


Last edited by Ghazal; 08/08/2017 at 04:56 PM.
Ghazal 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
How do such protection? _Application_ Scripting Help 6 05/12/2014 04:30 PM
Player Protection. Like Protection when entering checkpoint. and interior. stevestelford Scripting Help 2 08/06/2012 12:03 AM
[FilterScript] Spawn Protection Filterscript [K665's Spawn Protection] Kerlan Filterscripts 17 28/11/2011 01:02 PM
de amx protection Hornet600 Help Archive 1 27/04/2011 05:04 PM


All times are GMT. The time now is 11:17 AM.


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