SA-MP Forums Archive
Hide Selectable Textdraw When Press ESC - 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: Hide Selectable Textdraw When Press ESC (/showthread.php?tid=662728)



Hide Selectable Textdraw When Press ESC - PoniStar - 09.01.2019

Hi , i have a playertextdraw (( OnPlayerClickPlayerTextDraw(playerid, PlayerText: playertextid) ))

So i want to if player pressed esc botton textdrws get hide , how can i detecate he pressed esc?


Re: Hide Selectable Textdraw When Press ESC - ApolloScripter - 09.01.2019

Hello PoniStar, OnPlayerClickPlayerTextDraw isn't called when pressing ESC, only OnPlayerClickTextDraw do that, try to use some global variable and put that below the callfunction OnPlayerClickTextDraw.
PHP код:
if(clickedid == Text:INVALID_TEXT_DRAW) {
   
CancelSelectTextDrawplayerid );
   
PlayerTextDrawHide(playerid, ... );




Re: Hide Selectable Textdraw When Press ESC - PoniStar - 09.01.2019

Thnx i will check that !