[Ajuda] Textdraw clicavel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Textdraw clicavel (
/showthread.php?tid=575109)
Textdraw clicavel -
_Play_ - 24.05.2015
Alguem pode me ajudar?
to tentando criar uma td clicavel ai vai os cуdigo:
PHP код:
//topo
new Text:Textdraw14;
//OnGameModeInit
Textdraw14 = TextDrawCreate(298.000000, 224.000000, "Sair");
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 2);
TextDrawLetterSize(Textdraw14, 0.340000, 1.399999);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 1);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetSelectable(Textdraw14, 0);
//OnPlayerConnect
TextDrawShowForPlayer(playerid, Textdraw14);
// OnPlayerClickTextDraw(playerid, Text:clickedid)
if(clickedid == Textdraw14)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Textdraw14......");
}
Eu aperto la e nгo aconteзe nada
Re: Textdraw clicavel -
LuisFerreira - 24.05.2015
PHP код:
Textdraw14 = TextDrawCreate(298.000000, 224.000000, "Sair");
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 2);
TextDrawLetterSize(Textdraw14, 0.340000, 1.399999);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 1);
TextDrawSetProportional(Textdraw14, 1);
PHP код:
TextDrawSetSelectable(playerid, TextDraw:Textdraw14, true);
E isso tambem se for conectar na onplayerconnect..
PHP код:
SelectTextDraw(playerid, 0xFF0000FF);
E isso para cancelar quando vocк clicar..
PHP код:
CancelSelectTextDraw(playerid);
Re: Textdraw clicavel -
SepZ - 24.05.2015
Da uma olhada nisso aqui e saberб fazer certinho
https://sampforum.blast.hk/showthread.php?tid=340781