SA-MP Forums Archive
"OnPlayerCancelSelectTextDraw" - or something like this. - 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: "OnPlayerCancelSelectTextDraw" - or something like this. (/showthread.php?tid=396101)



"OnPlayerCancelSelectTextDraw" - or something like this. - Edvin - 29.11.2012

Hello guys

Well, finally i found the bug at clickable textdraws, but now I have another problem. How can i make something, like: when i will press ESC button, to return player (me) at a position? I know that doesn't exists "OnPlayerCancelSelectTextDraw" function ... is there something (function ... ) to do my idea?

Thanks.


Re: "OnPlayerCancelSelectTextDraw" - or something like this. - XtremeR - 29.11.2012

i searched alot there is no Function like that, still you can make your own or you can detect if the textdraw is hidden from player, then SetPlayer's Pos..


Re: "OnPlayerCancelSelectTextDraw" - or something like this. - GiamPy. - 29.11.2012

https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw

Quote:

This callback is called when a player clicks on a textdraw or cancel the select mode(ESC).




Re: "OnPlayerCancelSelectTextDraw" - or something like this. - iJumbo - 29.11.2012

pawn Код:
if(clickedid == Text:INVALID_TEXT_DRAW)
equal to ESC


Re: "OnPlayerCancelSelectTextDraw" - or something like this. - Edvin - 29.11.2012

Quote:
Originally Posted by [ISS]jumbo
Посмотреть сообщение
pawn Код:
if(clickedid == Text:INVALID_TEXT_DRAW)
equal to ESC
Yes, works ! Thank you .