03.10.2013, 02:24
(
Последний раз редактировалось RuanRider; 03.10.2013 в 14:54.
)
Nгo ta dando pra selecionar o textdrawn BOX..
Eu passo o mouse em cima e nгo acontece nada :/
OnGameModeInit
OnPlayerClickTextDraw
OnPlayerCommandText
o texdrawn й sу box, mas eu jб tentei com texto no zamaroth editor feito pelo ari1 colocar selecionavel e nao quer dar
Eu passo o mouse em cima e nгo acontece nada :/
OnGameModeInit
PHP код:
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);
PHP код:
if(clickedid == tdimgduck)
{
SendClientMessage(playerid, -1, "teste");
}
PHP код:
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;
}