Making players unable to hide a dialog. -
Omirrow - 13.07.2017
Hey there,
I want players to
NOT BE ABLE to hide dialogs, it's possible with a code like that;
pawn Код:
if(!response)
{
//dialog codes here
}
But what I want to do is, making a player
unable response dialogs negatively, is it possible at all? With a return or something as far as I know return in OnDialogResponse is just used for calling the callback in other scripts.
EDIT:
I want it to work in
certain listitem responses by the way.
Re: Making players unable to hide a dialog. - [G]am3r - 13.07.2017
Show player dialog again if he response negative, I guess
Re: Making players unable to hide a dialog. -
Omirrow - 13.07.2017
Quote:
Originally Posted by TomCarter
Show player dialog again if he response negative, I guess
|
Quote:
Originally Posted by Omirrow
it's possible with a code like that;
pawn Код:
if(!response) { //dialog codes here }
But what I want to do is making a player unable response dialogs negatively, is it possible at all?
|
Man, I actually know how to prevent a player from responsing negatively but this is
NOT what I want to do, please read what I wrote in the topic...
Re: Making players unable to hide a dialog. -
StrikerZ - 13.07.2017
If no response then show the dialog again. And yes are you using another dialog in listitem?
What do you want to do with list items explain it.
Re: Making players unable to hide a dialog. -
Omirrow - 13.07.2017
Quote:
Originally Posted by Sunehildeep
If no response then show the dialog again. And yes are you using another dialog in listitem?
|
This is
NOT the solution I'm looking for, I'm looking for something else, please read the topic once again.
Re: Making players unable to hide a dialog. -
StrikerZ - 13.07.2017
Please read my post once again.
EDIT: What you can actually do is, show the dialog again on the listid clicked by player. For example :-
PHP код:
if(response)
{
switch(listitem)
{
case 0:
{
// show the dialog
}
}
}
Re: Making players unable to hide a dialog. -
Omirrow - 13.07.2017
Quote:
Originally Posted by Sunehildeep
Please read my post once again.
EDIT: What you can actually do is, show the dialog again on the listid clicked by player.
|
This is
STILL NOT what I'm looking for, my dialog has some MySQL queries, I don't want players to be able to show the same page again and again because it's pointless, I want the last page to be kept on their screen...
I think, I found a way to do it but still looking for your ideas as well.
Re: Making players unable to hide a dialog. -
Omirrow - 13.07.2017
What I'm going to do is, setting the content of the dialog in a player variable, then showing the same variables in a dialog to them. This seems like the best way to get rid of unnecessary MySQL queries.
If you have a better idea, do not hesitate to suggest please.
Re: Making players unable to hide a dialog. -
Meller - 13.07.2017
You can hook the ShowPlayerDialog to set each variable to another global array, then hook OnDialogResponse, check if the response is false and then show the dialog again using the variables you stored to an array.
Re: Making players unable to hide a dialog. -
Omirrow - 13.07.2017
Quote:
Originally Posted by Meller
You can hook the ShowPlayerDialog to set each variable to another global array, then hook OnDialogResponse, check if the response is false and then show the dialog again using the variables you stored to an array.
|
Well, isn't this the same thing I said above? Why would you tell me to do it once again?