Detecting if a player has a dialog open
#3

You can just check if the player is logged in or not when they type a command/something in main chat.

For the dialog:
pawn Код:
ShowPlayerDialogEx(playerid, dialogid, style, const caption[], const info[], const button1[], const button2[])
{
    ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
    DialogOpen[playerid] = 1;
}
(!) Reset "DialogOpen" at the "OnDialogResponse" callback.
And do it on the very top of that callback. ( Dialog[playerid] = 0; )
Should work
Reply


Messages In This Thread
Detecting if a player has a dialog open - by Nicker - 08.03.2015, 16:57
Re: Detecting if a player has a dialog open - by Zonoya - 08.03.2015, 17:01
Re: Detecting if a player has a dialog open - by Kyance - 08.03.2015, 17:03
Re: Detecting if a player has a dialog open - by Nicker - 08.03.2015, 17:13
Re: Detecting if a player has a dialog open - by PowerPC603 - 08.03.2015, 17:42

Forum Jump:


Users browsing this thread: 2 Guest(s)