SA-MP Forums Archive
[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.000000224.000000"Sair");
    
TextDrawBackgroundColor(Textdraw14255);
    
TextDrawFont(Textdraw142);
    
TextDrawLetterSize(Textdraw140.3400001.399999);
    
TextDrawColor(Textdraw14, -1);
    
TextDrawSetOutline(Textdraw141);
    
TextDrawSetProportional(Textdraw141);
    
TextDrawSetSelectable(Textdraw140);
//OnPlayerConnect
    
TextDrawShowForPlayer(playeridTextdraw14);
// OnPlayerClickTextDraw(playerid, Text:clickedid)
    
if(clickedid == Textdraw14)
    {
        
SendClientMessage(playerid0xFFFFFFAA"Textdraw14......");
      
    } 
Eu aperto la e nгo aconteзe nada


Re: Textdraw clicavel - LuisFerreira - 24.05.2015

PHP код:
    Textdraw14 TextDrawCreate(298.000000224.000000"Sair"); 
    
TextDrawBackgroundColor(Textdraw14255); 
    
TextDrawFont(Textdraw142); 
    
TextDrawLetterSize(Textdraw140.3400001.399999); 
    
TextDrawColor(Textdraw14, -1); 
    
TextDrawSetOutline(Textdraw141); 
    
TextDrawSetProportional(Textdraw141); 
PHP код:
TextDrawSetSelectable(playeridTextDraw:Textdraw14true); 
E isso tambem se for conectar na onplayerconnect..

PHP код:
SelectTextDraw(playerid0xFF0000FF); 
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