[Ajuda] Trocar Text Draw's - 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] Trocar Text Draw's (
/showthread.php?tid=452312)
Trocar Text Draw's -
Standby - 20.07.2013
Eae pessoal estou a abrir esse topico, queria pedir ajuda como fasso pra ficar mudando as Text draw que eu coloquei tipo a cada 10 segundos aparece uma nova text draw
pawn Код:
BemVindo2 = TextDrawCreate(209.000000, 428.000000, "Bem vindo ao servidor");
TextDrawBackgroundColor(BemVindo2, 255);
TextDrawBackgroundColor(BemVindo2,0x000000FF);
TextDrawFont(BemVindo2, 3);
TextDrawLetterSize(BemVindo2, 0.500000, 2.000000);
TextDrawColor(BemVindo2, -1);
TextDrawSetOutline(BemVindo2, 1);
TextDrawSetProportional(BemVindo2, 1);
TextDrawSetSelectable(BemVindo2, 1);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BemVindo3 = TextDrawCreate(209.000000, 428.000000, "caso esteja prescisando de ajuda /ajuda");
TextDrawBackgroundColor(BemVindo3, 255);
TextDrawBackgroundColor(BemVindo3,0x000000FF);
TextDrawFont(BemVindo3, 3);
TextDrawLetterSize(BemVindo3, 0.500000, 2.000000);
TextDrawColor(BemVindo3, -1);
TextDrawSetOutline(BemVindo3, 1);
TextDrawSetProportional(BemVindo3, 1);
TextDrawSetSelectable(BemVindo3, 1);
eu queria que apareci-se esses ai '
caso esteja prescisando de ajuda /ajuda
Bem vindo ao servidor
vlw quem poder me ajudar
Re: Trocar Text Draw's -
Gii - 20.07.2013
Base:
pawn Код:
public OnGameModeInit() {
SetTimer("TrocarTextdraw", 10000, false );
return true;
}
forward TrocarTextdraw();
public TrocarTextdraw() {
TextDrawSetString(BemVindo2, "Ola!");
for ( new i = 0; i < MAX_PLAYERS; i++ ) {
if (IsPlayerConnected(i)) {
TextDrawShowForPlayer(i, BemVindo2);
}
}
SetTimer("TrocarTextdraw", 10000, false );
return true;
}
Re: Trocar Text Draw's -
darkxdll - 20.07.2013
Coloque um Timer (SetTimerEx) e use as funзхes TextDrawShowForAll e TextDrawHideForAll x)
Re: Trocar Text Draw's -
Standby - 21.07.2013
sera que tem mais geito de se fazer isso por que eu nгo consigui
Re: Trocar Text Draw's -
Standby - 21.07.2013
# Double
Alguem me ajuda ai por que eu nгo to consiguindo
Re: Trocar Text Draw's -
viniciuship - 22.07.2013
pawn Код:
/* Procura Por OnGameModeInit*/
public OnGameModeInit() {
SetTimer("TrocarTextdraw", 10000, false ); // Apos Achar Coloca Isso Em Baixo da public , esse 10000 й o tempo cada 1000 й um segundo
return true;
}
forward TrocarTextdraw(); // procura por FORWARD e cola isso la
// Vai no Fim da Seu GM e Cole Isso Abaixo
public TrocarTextdraw() {
TextDrawSetString(BemVindo2, "Ola!");
for ( new i = 0; i < MAX_PLAYERS; i++ ) {
if (IsPlayerConnected(i)) {
TextDrawShowForPlayer(i, BemVindo2);
}
}
SetTimer("TrocarTextdraw", 10000, false );
return true;
}
Codigo do: iCasTiel
Re: Trocar Text Draw's -
Standby - 22.07.2013
isso eu sei , sу que sу aparece 1 Text Draw sу que estб Ola
Re: Trocar Text Draw's -
@Riichard - 22.07.2013
Use uma variavel pra ir mudando pra outras strings(textos).