Default clock?
#1

Hi all,someone know where i can find the default textdraw of the clock?
Reply
#2

Do you want to use the default clock like in SP, or your custom clock just in the same place?
Reply
#3

No,the single clock like in SP.
Reply
#4

Search for gl_Realtime in your Fs folder
Reply
#5

Код:
txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
	TextDrawUseBox(txtTimeDisp, 0);
	TextDrawFont(txtTimeDisp, 3);
	TextDrawSetShadow(txtTimeDisp,0); // no shadow
    TextDrawSetOutline(txtTimeDisp,2); // thickness 1
    TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
    TextDrawColor(txtTimeDisp,0xFFFFFFFF);
    TextDrawAlignment(txtTimeDisp,3);
	TextDrawLetterSize(txtTimeDisp,0.5,1.5);
Reply
#6

The Grand Lacerny clock it's not the San Andreas default clock.

You can use the default clock using the function TogglePlayerClock, but it has some limitations.
Reply
#7

the textdraw idunno but

when you use SetWorldTime(12); under ongamemodeinit the clock should appear
just set it on the time you want.
theres also toggleplayerclock i think you need
check here or an example;
https://sampwiki.blast.hk/wiki/TogglePlayerClock
Reply
#8

Thanks,i've added TogglePlayerClock in my gm,but i cant see the clock.
Reply
#9

Tested it

I got this under onplayerconnect TogglePlayerClock(playerid,1);

and SetWorldTime(20); under ongamemodeinit

now it works for me
Reply
#10

Just use a FS "gl_realtime" in your filterscripts folder
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)