tdimgduck = TextDrawCreate(572.000000, 411.000000, "_");
TextDrawBackgroundColor(tdimgduck, 255);
TextDrawFont(tdimgduck, 1);
TextDrawLetterSize(tdimgduck, 0.500000, 0.599998);
TextDrawColor(tdimgduck, -1);
TextDrawSetOutline(tdimgduck, 0);
TextDrawSetProportional(tdimgduck, 1);
TextDrawSetShadow(tdimgduck, 1);
TextDrawUseBox(tdimgduck, 1);
TextDrawBoxColor(tdimgduck, -222);
TextDrawTextSize(tdimgduck, 534.000000, 10.000000);
TextDrawSetSelectable(tdimgduck, 1);
if(clickedid == tdimgduck)
{
SendClientMessage(playerid, -1, "teste");
}
if (strcmp("/pato", cmdtext, true, 10) == 0)
{
if(mostrandopato[playerid] == 0)
{
mostrandopato[playerid] = 1;
TextDrawShowForPlayer(playerid, tdimgduck);
SelectTextDraw(playerid, 0xC0C0C0AA);
TogglePlayerControllable(playerid, 0);
return 1;
}
else
{
mostrandopato[playerid] = 0;
TextDrawHideForPlayer(playerid, tdimgduck);
CancelSelectTextDraw(playerid);
TogglePlayerControllable(playerid, 1);
}
return 1;
}
Procure a ъltima linha da geraзгo de cada textdraw, para que ela possa ser selecionбvel, altere:
TextDrawTextSize(Textdraw3, 586.000000, 0.000000); Altere o ъltimo valor para 10, como o exemplo: TextDrawTextSize(Textdraw3, 586.000000, 10.000000); |
Faca uma so. Com texto. Mais vc tem q fazer outra. N adinta so setar usebox pra 0..
|