#include <a_samp>
forward rweather();
forward clock();
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
}
#endif
public OnPlayerConnect(playerid){
clock()
;}
public clock(){
new Text:Clock;
TextDrawDestroy(Clock);
new hour,minute,second;
new string[256];
gettime(hour,minute,second);
if (minute <= 9){format(string,25,"%2d:%2d",hour,minute);
TextDrawHideForAll(Clock);
Clock = TextDrawCreate(547.0, 24.0, string);
TextDrawLetterSize(Clock, 0.6, 1.8);
TextDrawFont(Clock, 3);
TextDrawSetOutline(Clock, 2);
TextDrawShowForAll(Clock);
SetTimer("clock",1000,0);
if (hour == 0){SetWorldTime(00);}
if (hour == 1){SetWorldTime(01);}
if (hour == 2){SetWorldTime(02);}
if (hour == 3){SetWorldTime(03);}
if (hour == 4){SetWorldTime(04);}
if (hour == 5){SetWorldTime(05);}
if (hour == 6){SetWorldTime(06);}
if (hour == 7){SetWorldTime(07);}
if (hour == 8){SetWorldTime(08);}
if (hour == 9){SetWorldTime(09);}
if (hour == 10){SetWorldTime(10);}
if (hour == 11){SetWorldTime(11);}
if (hour == 12){SetWorldTime(12);}
if (hour == 13){SetWorldTime(13);}
if (hour == 14){SetWorldTime(14);}
if (hour == 15){SetWorldTime(15);}
if (hour == 16){SetWorldTime(16);}
if (hour == 17){SetWorldTime(17);}
if (hour == 18){SetWorldTime(18);}
if (hour == 19){SetWorldTime(19);}
if (hour == 20){SetWorldTime(20);}
if (hour == 21){SetWorldTime(21);}
if (hour == 22){SetWorldTime(22);}
if (hour == 23){SetWorldTime(23);}
if (hour == 24){SetWorldTime(24);}
return 1;
}