[PEDIDO]: Contagem regressiva ano novo em TEXTDRAW
#1

Уla, eu queria uma contagem regressiva em TEXTDRAW para o ano novo.. E quando der meia noite ( 00:00hrs ) " na virada do ano " ele se apague automaticamente..!

EXEMPLO:

pawn Код:
Falta(m): HORAS:MINUTOS:SEGUNDOS para o ano novo!
ou

pawn Код:
Contagem regressiva: (AS HORAS/MINUTOS/SEGUNDOS MESMO NORMAL)
eu prefiro o 1 exemplo mais se fizer o 2 eu agradeзo muito..

Obrigado, se me ajudar dou reputation. Desde jб agradeзo
Reply
#2

Cria um textdrawn e atualiza ele todo dia '-' + facil -q
Reply
#3

Quote:
Originally Posted by [LF]PlaYer
Посмотреть сообщение
Cria um textdrawn e atualiza ele todo dia '-' + facil -q
sei kkk....
Reply
#4

Search:

https://sampforum.blast.hk/showthread.php?tid=297567
Reply
#5

Quote:
Originally Posted by Los
Посмотреть сообщение
Lуs, deu certinho mais encontrei um erro durante o teste..
Meus objetos nгo carregam, eu uso o incognitos streamer, uso em FS..
Serб que talvez tem haver com OnFilterScriptInit da contagem?

pawn Код:
public OnFilterScriptInit()
{
    NYCounter = TextDrawCreate(357.000000, 399.000000, "_");
    TextDrawAlignment(NYCounter, 2);
    TextDrawBackgroundColor(NYCounter, 255);
    TextDrawFont(NYCounter, 2);
    TextDrawLetterSize(NYCounter, 0.40000, 2);
    TextDrawColor(NYCounter, -16776961);
    TextDrawSetOutline(NYCounter, 1);
    TextDrawSetProportional(NYCounter, 1);

    new message[40], year, month, day;
    getdate(year, month, day);
    if(month != 1) { year--; }
    #if defined German
        format(message, sizeof(message), "~>~ Feliz ano novo ~<~~n~~y~%d!", year);
    #else
        format(message, sizeof(message), "~>~ Happy new year ~<~~n~~y~%d!", year);
    #endif
    HappyNewYearText = TextDrawCreate(340.000000, 350.000000, message);
    TextDrawAlignment(HappyNewYearText, 2);
    TextDrawBackgroundColor(HappyNewYearText, 255);
    TextDrawFont(HappyNewYearText, 1);
    TextDrawLetterSize(HappyNewYearText, 1.000000, 4.000000);
    TextDrawColor(HappyNewYearText, 16777215);
    TextDrawSetOutline(HappyNewYearText, 1);
    TextDrawSetProportional(HappyNewYearText, 1);

    CounterTimer();
    cTime = SetTimer("CounterTimer", 400, 1);
    return 1;
}

Ajude-me por favor..
Reply
#6

Quote:
Originally Posted by .Skool_.
Посмотреть сообщение
Lуs, deu certinho mais encontrei um erro durante o teste..
Meus objetos nгo carregam, eu uso o incognitos streamer, uso em FS..
Serб que talvez tem haver com OnFilterScriptInit da contagem?

pawn Код:
public OnFilterScriptInit()
{
    NYCounter = TextDrawCreate(357.000000, 399.000000, "_");
    TextDrawAlignment(NYCounter, 2);
    TextDrawBackgroundColor(NYCounter, 255);
    TextDrawFont(NYCounter, 2);
    TextDrawLetterSize(NYCounter, 0.40000, 2);
    TextDrawColor(NYCounter, -16776961);
    TextDrawSetOutline(NYCounter, 1);
    TextDrawSetProportional(NYCounter, 1);

    new message[40], year, month, day;
    getdate(year, month, day);
    if(month != 1) { year--; }
    #if defined German
        format(message, sizeof(message), "~>~ Feliz ano novo ~<~~n~~y~%d!", year);
    #else
        format(message, sizeof(message), "~>~ Happy new year ~<~~n~~y~%d!", year);
    #endif
    HappyNewYearText = TextDrawCreate(340.000000, 350.000000, message);
    TextDrawAlignment(HappyNewYearText, 2);
    TextDrawBackgroundColor(HappyNewYearText, 255);
    TextDrawFont(HappyNewYearText, 1);
    TextDrawLetterSize(HappyNewYearText, 1.000000, 4.000000);
    TextDrawColor(HappyNewYearText, 16777215);
    TextDrawSetOutline(HappyNewYearText, 1);
    TextDrawSetProportional(HappyNewYearText, 1);

    CounterTimer();
    cTime = SetTimer("CounterTimer", 400, 1);
    return 1;
}

Ajude-me por favor..
Acho muito difнcil, pois a textdraw tem pouca coisa haver com objetos, procure ultima modificaзгo que fez. Se os objetos estiverem em FS, tente passa-los para o GM.
Reply
#7

Quote:
Originally Posted by Los
Посмотреть сообщение
Acho muito difнcil, pois a textdraw tem pouca coisa haver com objetos, procure ultima modificaзгo que fez. Se os objetos estiverem em FS, tente passa-los para o GM.
EU jб fiz isso, mais alguns objetos nem carrega com o incogntos streamer.... EU adorei o streamer por causa que ele coloca objtos nos mundos virutais...
Reply
#8

Quote:
Originally Posted by .Skool_.
Посмотреть сообщение
EU jб fiz isso, mais alguns objetos nem carrega com o incogntos streamer.... EU adorei o streamer por causa que ele coloca objtos nos mundos virutais...
Tente verificar se a streamer estб carregando ou algo do tipo, й que nunca tive esse tipo de problema.
Reply
#9

Poste o server log
Reply
#10

Quote:
Originally Posted by Los
Посмотреть сообщение
Poste o server log
....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)