textdraw border clickable - 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: textdraw border clickable (
/showthread.php?tid=568171)
textdraw border clickable -
KeNTos - 20.03.2015
Hello guys, I'm sorry for my english. I have a problem with clickable textdraw.

I need to when you roll over previw(id 2999) light up this circle (ID 2999).
The problem is that when the cursor is next to the circle (ID 2999), he begins to sunbathe. And you need to, when only brought upon the circle.
Briefly tell you: you have to circle not sunbathe beyond its borders.
Once again I apologize for my English.
my code:
Код:
iEquip_slot[playerid][7] = CreatePlayerTextDraw(playerid, 545.000000, 125.000000, "");//экипировка артефакт
PlayerTextDrawFont(playerid, iEquip_slot[playerid][7], TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawBackgroundColor(playerid, iEquip_slot[playerid][7], 0x00000000);
PlayerTextDrawTextSize(playerid, iEquip_slot[playerid][7], 60.0, 60.0);
PlayerTextDrawSetPreviewModel(playerid, iEquip_slot[playerid][7], 2999);//3002
PlayerTextDrawSetPreviewRot(playerid, iEquip_slot[playerid][7], 40, -15, 10, 1);
PlayerTextDrawColor(playerid, iEquip_slot[playerid][7], 0x0D0D0D20);
PlayerTextDrawSetSelectable(playerid, iEquip_slot[playerid][7], 1);
PlayerTextDrawShow(playerid, iEquip_slot[playerid][7]);
Re: textdraw border clickable -
TwinkiDaBoss - 20.03.2015
The problem are your coordinates. Create the box around the picture and that way you will have safe Coords that will script corespond to.
Re: textdraw border clickable -
KeNTos - 21.03.2015
I did use box 1
Please show me an example
Re: textdraw border clickable -
KeNTos - 24.03.2015
Up(, help please
Re: textdraw border clickable -
SickAttack - 24.03.2015
Edit the coordinates of this till it suits your likings:
pawn Код:
PlayerTextDrawTextSize(playerid, iEquip_slot[playerid][7], 60.0, 60.0);