Making players unable to hide a dialog.
#1

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.
Reply
#2

Show player dialog again if he response negative, I guess
Reply
#3

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...
Reply
#4

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.
Reply
#5

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.
Reply
#6

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
       
}
    }

Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)