Jump to content

Měnič času


Guest CHEF

Recommended Posts

settimer je nastaveny na sekundu pokud chcete menic casu podle realu pridejte jednu ulu

SetTimer("fakehodiny",6000,1);

 

forwič

forward fakehodiny();]/code]

a nakonec public
[code]public fakehodiny()
{
new hour,minute,second,string[256];
gettime(hour,minute,second);

if (minute <= 9) format(string,25,"%d:0%d",hour,minute);
else format(string,25,"%d:%d",hour,minute);

SetWorldTime(hour);
}

 

 

asi 3 radky jsou pouzity z maverickova tut na hodiny

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...