Detect when player leaves TextDraw selection ? - 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 when player leaves TextDraw selection ? (
/showthread.php?tid=488970)
Detect when player leaves TextDraw selection ? -
gandzia - 19.01.2014
Hi,
i am doing some selectable textdraws and i show the textdraw's when the player writes some command. Everything works OK but there is a problem, when the player presses ESC and leaves the selection without clicking any textdraw these textdraws are still visible (i hide them when the player clicks some textdraw in OnPlayerClickTextDraw) and i want to somehow detect when the player leaves the selection without clicking any textdraw.
Any ideas ?
Re: Detect when player leaves TextDraw selection ? -
Excelize - 20.01.2014
I don't really think that's possible...
Re: Detect when player leaves TextDraw selection ? -
jessejanssen - 20.01.2014
Took this right of the Wiki page, I knew it was on there:
clickedid The ID of the clicked textdraw.
INVALID_TEXT_DRAW if selection was cancelled.
Just do:
pawn Код:
if(clickedid == INVALID_TEXT_DRAW) { *hide textdraws* }
Best regards,
Jesse
PS: I waited 51 damn seconds before I could post this reply, FML.
Re: Detect when player leaves TextDraw selection ? -
[TMS]Legena - 20.01.2014
Quote:
Originally Posted by Excelize
I don't really think that's possible...
|
Agree with you i think that it is not possible when player press ESC to remove textdraws...