SA-MP Forums Archive
OnPlayerClickTextDraw - 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: OnPlayerClickTextDraw (/showthread.php?tid=580232)



OnPlayerClickTextDraw - Lajko1 - 03.07.2015

I have problems with this..
so I have
pawn Код:
TD[3] = TextDrawCreate(420.333435, 131.511108, "X");
    TextDrawLetterSize(TD[3], 0.405999, 0.724740);
    TextDrawTextSize(TD[3], 0.000000, 7.000100);
    TextDrawAlignment(TD[3], 2);
    TextDrawColor(TD[3], -1);
    TextDrawUseBox(TD[3], 1);
    TextDrawBoxColor(TD[3], -16776961);
    TextDrawSetShadow(TD[3], 0);
    TextDrawSetOutline(TD[3], 0);
    TextDrawBackgroundColor(TD[3], 255);
    TextDrawFont(TD[3], 1);
    TextDrawSetProportional(TD[3], 1);
    TextDrawSetShadow(TD[3], 0);
    TextDrawSetSelectable(TD[3], true);

pawn Код:
CMD:abc(playerid,params[])
{
    Show(playerid);
    SelectTextDraw(playerid, 0xA3B4C5FF);
    return 1;
}
And

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == TD[3])
    {
        Hide(playerid);
        CancelSelectTextDraw(playerid);
    }
    return 1;
}
Why I can't click on that text draw? And yes I have enabled that textdraw is clickable..


Re: OnPlayerClickTextDraw - [KHK]Khalid - 03.07.2015

Adjust TextDrawTextSize. https://sampwiki.blast.hk/wiki/TextDrawTextSize


Re: OnPlayerClickTextDraw - Lajko1 - 03.07.2015

Thanks