01.07.2014, 19:00
Gente, й o seguinte, nunca mexi antes com textdraw clicaveis,entгo decidi tenta mexer hoje . Fiz os textdraw no ipleomax, mas o problema й que ele nгo clica,tipo, eu passo o mouse no textdraw clico em cima dele e nгo me aparece nada .
Topo
textdraw
comando
Topo
PHP код:
new Text:Textdraw0;
PHP код:
Textdraw0 = TextDrawCreate(288.800018, 178.453247, "Logar");
TextDrawLetterSize(Textdraw0, 0.650798, 2.607999);
TextDrawTextSize(Textdraw0, 45.000000, 115.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -1);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetSelectable(Textdraw0, true);
PHP код:
CMD:teste123(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
SelectTextDraw(playerid, 0x33CCFFFF);
return 1;
}
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Clicou no login");
}
TextDrawHideForPlayer(playerid, Textdraw0);
CancelSelectTextDraw(playerid);
return 1;
}