3d countdown
#1

hello
i would like to do some 3d countdown, can anyone please give a 3d count if ya got?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)