OnPlayerKeyStateChange - 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)
+--- Thread: OnPlayerKeyStateChange (
/showthread.php?tid=527306)
OnPlayerKeyStateChange -
SnG.Scot_MisCuDI - 22.07.2014
Is it possible to detect the Esc key being pressed? So if the player hits escape while using a clickable textdraw it hides the TD instead of keeping on the screen and being un-selectable
Re: OnPlayerKeyStateChange -
AIped - 22.07.2014
Yes that can be solved with 'INVALID_TEXT_DRAW'
its not usable with onplayerkeystatechange but it can be used at OnPlayerClickTextDraw.
There must be something on the wiki about it or on forum..just search for OnPlayerClickTextDraw instead of keystatechange