SA-MP Forums Archive
Detecting some keys - 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: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Detecting some keys (/showthread.php?tid=607559)



Detecting some keys - Sanady - 21.05.2016

Hello everybody. I have one question for you. Is possible to detect ESC key in SA-MP, is there any way to detect it?


Re: Detecting some keys - ]Rafaellos[ - 21.05.2016

When you are in ESC OnPlayerUpdate doesn't work. You can detect it this way.


Re: Detecting some keys - Richie - 21.05.2016

But OPU also stops on alt tab and when player timeout, so its really no good way to detect it.


Re: Detecting some keys - ]Rafaellos[ - 21.05.2016

What do you mean timeout? If you timeout you disconnect the server anyway...