SA-MP Forums Archive
Forcing 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: Forcing textdraw selection (/showthread.php?tid=657484)



Forcing textdraw selection - GRiMMREAPER - 08.08.2018

This was my approach to forcing players to select a textdraw when they press ESC:

pawn Код:
if(playertextid == PlayerText:INVALID_TEXT_DRAW) {
        SelectTextDraw(playerid, 0xFFFFFFBB);
}
This, however, does not seem to be working. Any ideas?


Re: Forcing textdraw selection - Lokii - 08.08.2018

ESC is not detected with OnPlayerClickPlayerTextDraw

use OnPlayerClickTextDraw
PHP код:
if(clickedid == Text:INVALID_TEXT_DRAW) {
        
SelectTextDraw(playerid0xFFFFFFBB);