17.07.2010, 09:18
Is it possible you have to enter a password before you see the dialogs menu (for a police computer in game)
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;
}