Hello I want to know if it's possible to make with clickable textdraws.
#1

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.
Reply
#2

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;
}
Reply
#3

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

TextDrawSetString(TestText, "->");
Reply
#5

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
Reply
#6

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

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

Sure man, anytime you can also PM me.
Reply
#9

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

hope i helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)