SA-MP Forums Archive
Hello I want to know if it's possible to make with clickable textdraws. - 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: Hello I want to know if it's possible to make with clickable textdraws. (/showthread.php?tid=460203)



Hello I want to know if it's possible to make with clickable textdraws. - Scrillex - 27.08.2013

Hello good samp forum members..
Todays qestion is:


So my question is how I can make <- and -> with clickable textdraw..
So maybe some one could explain me..

Just I know how it works but yeah maybe could someone explain it... I tried to ****** it but no result..

Maybe it was my own thought.. Because I'm nowbie at clickable textdraws..

Thank you for your time..

Sincerely,
Scrillex.


Re: Hello I want to know if it's possible to make with clickable textdraws. - PaulDinam - 27.08.2013

You create a textdraw for example..

new Text:TestText;

Then modify the size, color and etc'..

And if you want a cmd then you add this inside:

pawn Код:
TextDrawShowForPlayer(playerid, TestText);
SelectTextDraw(playerid, HOVER COLOR);

And the public which handles the click is:

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == TestText)
    {
        //Do something.
    }
    return 1;
}



Re: Hello I want to know if it's possible to make with clickable textdraws. - Scrillex - 27.08.2013

Yeah i know that but I thought about arrows like "->" and "<-"


Re: Hello I want to know if it's possible to make with clickable textdraws. - PaulDinam - 27.08.2013

TextDrawSetString(TestText, "->");


Re: Hello I want to know if it's possible to make with clickable textdraws. - Scrillex - 27.08.2013

Ohh lol I failed a lot big thanks to you PaulDinam I appreciate your effort for helping me out + rep for your time and answers


Re: Hello I want to know if it's possible to make with clickable textdraws. - DanishHaq - 27.08.2013

Never mind others were faster, forgot to refresh my page .


Re: Hello I want to know if it's possible to make with clickable textdraws. - Scrillex - 27.08.2013

Thanks for your help too Yeah I will look in to it Thanks guys


Re: Hello I want to know if it's possible to make with clickable textdraws. - PaulDinam - 27.08.2013

Sure man, anytime you can also PM me.


Re: Hello I want to know if it's possible to make with clickable textdraws. - avivelkayam - 27.08.2013

btw, you can use better way
~>~ it will give you a real arrow..

hope i helped