Detecting if a player has a dialog open
#2

The only way I know of doing it is with a declared global variable, aka the DialogOpen[playerid] = 1 variable, its fairly simple though, you'd just add it as you need it, and OnPlayerText you'd return 0 if DialogOpen[playerid] = 1, its how mute and anti-caps systems work really.
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: 1 Guest(s)