[Pedido] 1 Coisa Sobre Textdraw - 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: [Pedido] 1 Coisa Sobre Textdraw (
/showthread.php?tid=386608)
1 Coisa Sobre Textdraw -
Nice-.- - 21.10.2012
entгo galera tava afim de saber algumas funcoes (;
tipo
como atualizara textdraw exemplo 0 para 1 de 1 para 2 e isso б cada 15 segundos й so pra exemplo mesmo (;
Re: 1 Coisa Sobre Textdraw -
FeelLikeASir_ - 21.10.2012
Use um timer e uma variбvel, incremente o valor da mesma e imprima usando TextDrawSetString.
Re: 1 Coisa Sobre Textdraw -
Nice-.- - 21.10.2012
Quote:
Originally Posted by FeelLikeASir_
Use um timer e uma variбvel, incremente o valor da mesma e imprima usando TextDrawSetString.
|
e se fosee fazer um de players online poderia dar um exemplo? (;
Re: 1 Coisa Sobre Textdraw -
Nice-.- - 21.10.2012
UP?;(
Re: 1 Coisa Sobre Textdraw -
leandro123456 - 21.10.2012
topo do gm
pawn Код:
new Text:PlayersOn;
new countPlayers = 0;
pawn Код:
public OnGameModeInit() {
PlayersOn = TextDrawCreate(240.0,580.0,"0/30");
}
pawn Код:
public OnPlayerConnect(playerid)
{
countPlayers++;
new text[10];
format(text, sizeof(text), "%d/30", countPlayers);
TextDrawSetString(PlayersOn, text);
TextDrawShowForAll(PlayersOn);
return 1;
}
Re: 1 Coisa Sobre Textdraw -
Nice-.- - 21.10.2012
Quote:
Originally Posted by leandro123456
topo do gm
pawn Код:
new Text:PlayersOn; new countPlayers = 0;
pawn Код:
public OnGameModeInit() { PlayersOn = TextDrawCreate(240.0,580.0,"0/30"); }
pawn Код:
public OnPlayerConnect(playerid) { countPlayers++; new text[10]; format(text, sizeof(text), "%d/30", countPlayers); TextDrawSetString(PlayersOn, text); TextDrawShowForAll(PlayersOn); return 1; }
|
Obrigado Mano Eu Jб Tava No Caminho Sу Faltou Mesmo o CoutPlayers++; (;
Re: 1 Coisa Sobre Textdraw -
BreakDriFT - 21.10.2012
Faзa o mesmo no OnPlayerDisconnect sу altere isso.
CountPlayers++;
Mude para
CountPlayers--;