Textdraw selectable bug..Its just select me two textdraw...
PHP код:
Box[13][playerid] = CreatePlayerTextDraw(playerid, 503.999938, 369.185211, "Zjest");
PlayerTextDrawLetterSize(playerid, Box[13][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Box[13][playerid], 1);
PlayerTextDrawColor(playerid, Box[13][playerid], -1);
PlayerTextDrawSetShadow(playerid, Box[13][playerid], 0);
PlayerTextDrawSetOutline(playerid, Box[13][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Box[13][playerid], 51);
PlayerTextDrawFont(playerid, Box[13][playerid], 1);
PlayerTextDrawSetProportional(playerid, Box[13][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Box[13][playerid], true);
Box[15][playerid] = CreatePlayerTextDraw(playerid, 501.666717, 390.340667, "Spat");
PlayerTextDrawLetterSize(playerid, Box[15][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Box[15][playerid], 1);
PlayerTextDrawColor(playerid, Box[15][playerid], -1);
PlayerTextDrawSetShadow(playerid, Box[15][playerid], 0);
PlayerTextDrawSetOutline(playerid, Box[15][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Box[15][playerid], 51);
PlayerTextDrawFont(playerid, Box[15][playerid], 1);
PlayerTextDrawSetProportional(playerid, Box[15][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Box[15][playerid], true);
It's a SA-MP bug tho , That Normal textdraws like Keywords , or boxes have a problem that they can be selected from a very far position, But there is a way to fix it,
Don't use a box textdraw when you want a box to be selected , Use TextDrawPreviewModel , aka Model in to it, and enter a Model id in it and change its size same as your box, Change its color to Black or whatever you want,
So by using Model in a textdraw the textdraw can only be selected within the size of the Model.