SA-MP Forums Archive
Detect Key - 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: Detect Key (/showthread.php?tid=454086)



Detect Key - Configuration - 27.07.2013

Hello guys,
when player press ESC send message to all playername press ESC
Thanks


Re: Detect Key - -Prodigy- - 27.07.2013

You can use a script to detect when a player pauses, then you can send the message that he ESC'd, or ALT TAB'd, but you just can't detect when he presses ESC key.


Re: Detect Key - MP2 - 27.07.2013

You can detect when a player pauses by checking if OnPlayerUpdate doesn't get called for > 2-3 seconds.


Re: Detect Key - Deron_Green - 27.07.2013

Someone please correct me if im wrong but, i don't think there is a way to detect if they press ESC.


Re: Detect Key - Configuration - 27.07.2013

@MP2 can make one code and give me mp2 ?


Re: Detect Key - Configuration - 27.07.2013

MP2 ??


Re : Detect Key - Matnix - 27.07.2013

It's not a good idea, just imagine if some kids are spaming ESC key