[Pedido] 1 Coisa Sobre Textdraw
#1

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 (;
Reply
#2

Use um timer e uma variбvel, incremente o valor da mesma e imprima usando TextDrawSetString.
Reply
#3

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? (;
Reply
#4

UP?;(
Reply
#5

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;
}
Reply
#6

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++; (;
Reply
#7

Faзa o mesmo no OnPlayerDisconnect sу altere isso.

CountPlayers++;

Mude para CountPlayers--;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)