17.11.2012, 16:39
Hi !
I have try to create a textdraw clickable but i have a problems.. I can't click on the textdraw with the textdraw mouse when i go on the textdraw : no hover, and when i click it's don't work ...
Code :
and
Please help me
I have try to create a textdraw clickable but i have a problems.. I can't click on the textdraw with the textdraw mouse when i go on the textdraw : no hover, and when i click it's don't work ...
Code :
Код:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 668.399658, 2.246673, "usebox"); PlayerTextDrawTextSize(playerid,Textdraw0[playerid], 485.200073, 0.000000); //PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 485.200073, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1); PlayerTextDrawColor(playerid, Textdraw0[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0); PlayerTextDrawFont(playerid, Textdraw0[playerid], 0); PlayerTextDrawSetSelectable(playerid,Textdraw0[playerid], 1); PlayerTextDrawShow(playerid, Textdraw0[playerid]);
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(playertextid == Textdraw0[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); CancelSelectTextDraw(playerid); } return 1; }