13.09.2017, 00:26
is there a native function to do this?
stock ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[]);
{
p_ActiveDialog[playerid] = true;
ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
return 1;
}
Create a boolean variable and set it to "true" whenever you show the player dialog, and set "false" under OnDialogResponse.
So this way, when the value is true, the player is using dialog. |
IsPlayerDialogOpen(playerid, dialogid)
IsAnyPlayerDialogOpen(playerid)