13.09.2012, 17:56
Hey.
I'm searching for a little tutorial, to make textdraw which i can select with my mouse.
currently i've script it like this:
But if i try to move over the textdraws with my mouse, the color doesnt change, and if i click on it, nothing happens, but i have used OnPlayerClickPlayerTextDraw() :/
Can anyone help me?
I'm searching for a little tutorial, to make textdraw which i can select with my mouse.
currently i've script it like this:
pawn Code:
pTutorialDrawSkin[10][playerid] = CreatePlayerTextDraw(playerid, 370.000, 251.377, "<");
PlayerTextDrawLetterSize(playerid, pTutorialDrawSkin[10][playerid], 0.685, 2.375);
PlayerTextDrawAlignment(playerid, pTutorialDrawSkin[10][playerid], 1);
PlayerTextDrawColor(playerid, pTutorialDrawSkin[10][playerid], -1);
PlayerTextDrawSetOutline(playerid, pTutorialDrawSkin[10][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, pTutorialDrawSkin[10][playerid], 51);
PlayerTextDrawFont(playerid, pTutorialDrawSkin[10][playerid], 1);
PlayerTextDrawSetProportional(playerid, pTutorialDrawSkin[10][playerid], 1);
PlayerTextDrawTextSize(playerid, pTutorialDrawSkin[10][playerid], 1337.000, 1337.000);
pTutorialDrawSkin[12][playerid] = CreatePlayerTextDraw(playerid, 532.833, 251.048, ">");
PlayerTextDrawLetterSize(playerid, pTutorialDrawSkin[12][playerid], 0.685, 2.375);
PlayerTextDrawAlignment(playerid, pTutorialDrawSkin[12][playerid], 1);
PlayerTextDrawColor(playerid, pTutorialDrawSkin[12][playerid], -1);
PlayerTextDrawSetOutline(playerid, pTutorialDrawSkin[12][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, pTutorialDrawSkin[12][playerid], 51);
PlayerTextDrawFont(playerid, pTutorialDrawSkin[12][playerid], 1);
PlayerTextDrawSetProportional(playerid, pTutorialDrawSkin[12][playerid], 1);
PlayerTextDrawTextSize(playerid, pTutorialDrawSkin[12][playerid], 1337.000, 1337.000);
PlayerTextDrawSetSelectable(playerid, pTutorialDrawSkin[playerid][10], true);
PlayerTextDrawSetSelectable(playerid, pTutorialDrawSkin[playerid][12], true);
SelectTextDraw(playerid, 0xFFCC00FF);
Can anyone help me?