Posts: 386
Threads: 84
Joined: Feb 2013
Reputation:
0
bro i need when player is in dialog can not type how can i make it
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Well you can set a variable (array) to 1 for a player when a dialog is shown and to 0 when the dialog is hidden (after responding to a dialog, that's the part you have to set to 0). You may need to set it to 0 if the dialogid is a negative number which will hide any dialog shown.
After that, in OnPlayerText or OnPlayerCommandText (or the callbacks of ZCMD if you use), you can check if any dialog is shown and return an error message.
Although when a dialog is shown, I've never managed to be able to type on the chat. The box won't open.
Posts: 864
Threads: 57
Joined: Jan 2013
Reputation:
0
@kamiliuxliuxliux : It won't work for the simple reason that the key for opening the chat isn't detectable through OnPlayerKeyStateChange.