Jump to content
  • 0

pomoc Střídání doby


SpyLine

Dotaz

Čaute,

zajímalo by mě, jak se dělaj ty časy, jako že každou minutu je hour + ...

Viděl jsem to myslím na superpařbě, a celkem se mi to zalíbilo, jen mě zajímá základ ...

Thanx

Link to comment
Share on other sites

10 odpovědí na tuto otázku

Recommended Posts

  • 0

Nechápeš o co jde? Jako real time - za 24 minut se ti vystřídá den a noc.

Mám jen timer :d

jo takle tak to udělej takle

 

forward CasNaServeru();

new Cas;

 

public CasNaServeru()

{

Cas ++;

if(Cas == 24)

{

Cas = 0;

SetWorldTime(0);

}else{

SetWorldTime(Cas);

}

}

 

public OnGameModeInit()

{

SetTimer("CasNaServeru",60000,1);

return 1;

}

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...