[FilterScript] [FS]WeekDay Clock[RealTime]
#21

o wow this is really cool. thx! ^_^
Reply
#22

Quote:
Originally Posted by jonesy
ok i added a very simple weather change system to it

updated first post
try changing ur callback to:
public settime(){
new hour,minute,second;
new 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);}
TextDrawSetString(Clock,string);
SetWorldTime(hour);
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
SetPlayerTime(i,hour,00);
}
}


new day, month, year;
new weekday;
getdate(day, month, year);
weekday = GetWeekdayNum(day, month, year);
if(weekday == 1){TextDrawSetString(WeekDayg,"Monday");}
if(weekday == 2){TextDrawSetString(WeekDayg,"Tuesday");}
if(weekday == 3){TextDrawSetString(WeekDayg,"Wednesday");}
if(weekday == 4){TextDrawSetString(WeekDayg,"Thursday");}
if(weekday == 5){TextDrawSetString(WeekDayg,"Friday");}
if(weekday == 6){TextDrawSetString(WeekDayg,"Saturday");}
if(weekday == 7){TextDrawSetString(WeekDayg,"Sunday");}
return 1;
}
Reply
#23

why? it works fine as it is... cos it has

Код:
SetWorldTime(hour);
Reply
#24

today on Sunday and Monday the displaying!
Reply
#25

Jonesy, when it just went 00.00 , the textdraw started to say it's monday in stead of sundaY??

plz fix!!

Rksss
Reply
#26

Cool
Reply
#27

Quote:
Originally Posted by rayne
today on Sunday and Monday the displaying!
Is with me, too. Sunday will not be shown After Saturday comes Monday and Sunday will be skipped

//EDIT: Another bug. If I start my server and can run, then disappears hours after more than 6 hours duration server
Reply
#28

Jonesy, a bug-free release is needed a.t.m. !!!
Plz fix.

Rksss
Reply
#29

So, the clock is there, but I think it is not Compatibel to other TextDraws. See Picture

[img width=1024 height=195]http://s5.directupload.net/images/080217/3ihdyipo.jpg[/img]
Reply
#30

sorry for any bugs i will fix them, also flame it works ok with my other textdraws....
Reply
#31

weather change??



coorl
Reply
#32

i canґt change the time, please help me^^
Reply
#33

Nice
Reply
#34

Okay, it's been 3 months since my last post. Unfortunately I no longer have this filterscript on my computer. I'm posting because now even the link provided by Seif_ doesn't work.

Can anyone post a mirror?
Reply
#35

yeh this is kool well done
Reply
#36

how to make it1 hour = 1 min
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)