Dialog Question
#1

Is it possible you have to enter a password before you see the dialogs menu (for a police computer in game)
Reply
#2

Can you explain more please. If I understand, you could just use a variable and timer. Set the variable to 1 if the player has entered the password, and in the timer if the variable equals 1, show the dialog.
Reply
#3

ok you do a command /pdc and then a dialog comes up telling you to enter a password to access the menu. you can either click ok or denie and once you enter the pass you will see the full menu eg /imageshack/f/samp001ff.png
Reply
#4

Something like this then:
pawn Код:
if(!strcmp(cmdtext, "/pdc", true))
{
   ShowPlayerDialog(playerid, 10, DIALOG_STYLE_INPUT, "Please enter the password", "Submit", "Deny");
   return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 10)
   {
      if(!strcmp(inputtext, "Yourpasshere", true))
      {
         ShowPlayerDialog(/*The other dialog with the interiors*/);
      }
      return 1;
   }
   return 1;
}
Reply
#5

yeah like that thanks if i have more questions ill post here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)