[Ajuda] Duvida sobre textdraws - 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] Duvida sobre textdraws (
/showthread.php?tid=422418)
Duvida sobre textdraws -
caoraivoso3 - 13.03.2013
Como faзo para meter a textdraw a mudar de 2 em 2 segundos de cor?
Re: Duvida sobre textdraws -
VenoN - 13.03.2013
https://sampwiki.blast.hk/wiki/TextDrawColor
https://sampwiki.blast.hk/wiki/SetTimer
Re: Duvida sobre textdraws -
Delete_ - 13.03.2013
http://www.4shared.com/rar/hUjc19_w/Noticias.html
Re: Duvida sobre textdraws -
caoraivoso3 - 13.03.2013
fiz assim
pawn Код:
public p
{
TextDrawColor(piscad,0x66ff00ff);
SetTimer("p", 2000, false);
TextDrawColor(pd,0xffffffff);
}
Re: Duvida sobre textdraws -
Maklister - 13.03.2013
Quote:
Originally Posted by caoraivoso3
fiz assim
pawn Код:
public p { TextDrawColor(piscad,0x66ff00ff); SetTimer("p", 2000, false); TextDrawColor(pd,0xffffffff); }
|
What ?
pawn Код:
new QueCor;
forward MudarCorText();
public MudarCorText()
{
if(QueCor == 0)
{
TextDrawColor(TEXTDRAW,0x66ff00ff);
QueCor = 1;
SetTimer("MudarCorText", 2000, false); // NГO irб ficar repetindo ...
}
else if(QueCor == 1)
{
TextDrawColor(TEXTDRAW,0xffffffff);
QueCor = 0;
SetTimer("MudarCorText", 2000, false); // NГO irб ficar repetindo ...
}
// ....
return 1;
}
Onde estб "
TEXTDRAW " troque pelo nome da Textdraw que quer mudar a cor.