SA-MP Forums Archive
Default clock? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Default clock? (/showthread.php?tid=200759)



Default clock? - Face9000 - 19.12.2010

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


Re: Default clock? - wups - 19.12.2010

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


Re: Default clock? - Face9000 - 19.12.2010

No,the single clock like in SP.


Re: Default clock? - akis_tze - 19.12.2010

Search for gl_Realtime in your Fs folder


Re: Default clock? - akis_tze - 19.12.2010

Код:
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);



Re: Default clock? - Zimon95 - 19.12.2010

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.


Re: Default clock? - boelie - 19.12.2010

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


Re: Default clock? - Face9000 - 19.12.2010

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


Re: Default clock? - boelie - 19.12.2010

Tested it

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

and SetWorldTime(20); under ongamemodeinit

now it works for me


Re: Default clock? - Mean - 19.12.2010

Just use a FS "gl_realtime" in your filterscripts folder