Help clickable Textdraws
#1

hello sa.mp forums did a record all the most well but when I start everything correctly Textdraws mind is cleared but the maus still there please help

I leave here the code when I start


}
if(clickedid == Registro[12])
{
TextDrawHideForPlayer(playerid, Registro[0]);
TextDrawHideForPlayer(playerid, Registro[1]);
TextDrawHideForPlayer(playerid,Registro[2]);
TextDrawHideForPlayer(playerid, Registro[3]);
TextDrawHideForPlayer(playerid, Registro[4]);
TextDrawHideForPlayer(playerid,Registro[5]);
TextDrawHideForPlayer(playerid, Registro[6]);
TextDrawHideForPlayer(playerid, Registro[7]);
TextDrawHideForPlayer(playerid, Registro[8]);
TextDrawHideForPlayer(playerid, Registro[9]);
TextDrawHideForPlayer(playerid, Registro[10]);
TextDrawHideForPlayer(playerid, Registro[11]);
TextDrawHideForPlayer(playerid, Registro[12]);

PlayerTextDrawHide(playerid, texto[0][playerid]);
PlayerTextDrawHide(playerid, texto[1][playerid]);
PlayerTextDrawHide(playerid, texto[2][playerid]);


TogglePlayerControllable(playerid,0);
ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);
ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);
CancelSelectTextDraw(playerid);
SendClientMessage(playerid, -1, "usa /ayuda para ver los comandos);
}

return 1;
}
Reply
#2

Use this

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SUBMISSION)
{
TextDrawShowForPlayer(playerid, gTextDraw);
SelectTextDraw(playerid, 0xFF4040AA);
}
return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == gTextDraw)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
return 1;
}
Reply
#3

you can not use it with presiso arrow with the arrow
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)