SA-MP Forums Archive
Help clickable Textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help clickable Textdraws (/showthread.php?tid=528781)



Help clickable Textdraws - capottematias - 29.07.2014

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;
}


Re: Help clickable Textdraws - osman2571 - 29.07.2014

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;
}


Respuesta: Help clickable Textdraws - capottematias - 29.07.2014

you can not use it with presiso arrow with the arrow