SA-MP Forums Archive
"ESC" button - 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: "ESC" button (/showthread.php?tid=475118)



"ESC" button - MrMou6 - 11.11.2013

How I can check:
Код:
if(Player click ESC)
??


Re: "ESC" button - MrMou6 - 11.11.2013

No one knows?


Re: "ESC" button - Sinner - 11.11.2013

You can't check it directly. These are the only keys you can check: https://sampwiki.blast.hk/wiki/Keys

However, you can check if a player stops updating. If OnPlayerUpdate no longer gets called you know he pressed ESC or tabbed out.


Re: "ESC" button - Stinged - 11.11.2013

If you mean when the player pauses you can use this: https://sampforum.blast.hk/showthread.php?tid=380686


Re: "ESC" button - MrMou6 - 11.11.2013

Quote:
Originally Posted by Stinged
Посмотреть сообщение
If you mean when the player pauses you can use this: https://sampforum.blast.hk/showthread.php?tid=380686
I made some textdraws with TextDrawSetSelectable. And when player click "ESC" mouse just gone, but textdraws still showing. I need that if player press "ESC" - hide textdraws.
Maybye someone know to hide it?

P.S. Sorry for my bad english


Re: "ESC" button - Konstantinos - 11.11.2013

https://sampforum.blast.hk/showthread.php?tid=328195


Re: "ESC" button - MrMou6 - 11.11.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Sorry but I don't understand it.
Can u show me code?


Re: "ESC" button - MrMou6 - 11.11.2013

some one?


Re: "ESC" button - Konstantinos - 11.11.2013

I pasted the wrong url. It says how to here: https://sampforum.blast.hk/showthread.php?tid=428375


Re: "ESC" button - MrMou6 - 11.11.2013

Now understand Thanks.