3d countdown
#2

Sorry, could just have with streamer. Didn't test.

pawn Код:
forward counter();

Text3D:txt;
new str[100];
new timer;
new number = 10;

txt = CreateDynamic3DTextLabel("", -1, x, y, z, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 20);

public counter()
{
    if(number == 0) KillTimer(timer);
    else
    {
        format(str, sizeof(str), "%d", number);
        number--;
        UpdateDynamic3DTextLabelText(txt, -1, str);
    }
}

public OnGameModeInit()
{
    timer = SetTimer("counter", 1000, true);
}
Reply


Messages In This Thread
3d countdown - by Bondage - 19.04.2015, 16:28
Re: 3d countdown - by Fel486 - 19.04.2015, 17:18

Forum Jump:


Users browsing this thread: 2 Guest(s)