OnPlayerKeyStateChange and Dialogs - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerKeyStateChange and Dialogs (
/showthread.php?tid=111374)
OnPlayerKeyStateChange and Dialogs -
Rzzr - 01.12.2009
Is it possible to detect if the player uses the ENTER button in a dialog?
Because I tried newkeys == 16 (the one for entering a vehicle)
But that only works when there's no dialog on your screen.
If there's a dialog on your screen, you just press OK.
So, is there a possibility to check if you use enter to press the OK button in a dialog?
Re: OnPlayerKeyStateChange and Dialogs -
Daren_Jacobson - 01.12.2009
OnDialogResponse
You can check my tutorial if you need it.
Re: OnPlayerKeyStateChange and Dialogs -
Joe Staff - 01.12.2009
I've already attempted using GetPlayerKeys when a player is using a Dialog in hopes to make a 'quick interaction' for my inventory, so instead of clicking on the item, and the clicking 'use', you could just hold alt and click on the item and it will automatically use it. Unfortunately, it appears that keys do not register with the server when a Dialog is open for a player.