Je propose mes aides pour ca pour la modique somme de 25 euros de l'heure
forward time ();
time();
public time(){
new Text:Clock;
TextDrawDestroy(Clock);
new hour,minute,second;
gettime(hour,minute,second);
new string[256];
if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
else {format(string,25,"%d:%d",hour,minute);}
TextDrawHideForAll(Clock);
Clock=TextDrawCreate(549,24,string);
TextDrawLetterSize(Clock,0.55,2);
TextDrawFont(Clock,3);
TextDrawBackgroundColor(Clock,0x000000AA);
TextDrawSetOutline(Clock,2);
TextDrawShowForAll(Clock);
SetTimer("time",30000,0);
if (hour == 0){SetWorldTime(0);}
if (hour == 1){SetWorldTime(1);}
if (hour == 2){SetWorldTime(2);}
if (hour == 3){SetWorldTime(3);}
if (hour == 4){SetWorldTime(4);}
if (hour == 5){SetWorldTime(5);}
if (hour == 6){SetWorldTime(6);}
if (hour == 7){SetWorldTime(7);}
if (hour == 8){SetWorldTime(8);}
if (hour == 9){SetWorldTime(9);}
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;
}
if (Heure == 0){SetWeather(2);}
if (Heure == 1){SetWeather(8);}
if (Heure == 2){SetWeather(9);}
if (Heure == 3){SetWeather(10);}
if (Heure == 4){SetWeather(11);}
if (Heure == 5){SetWeather(13);}
if (Heure == 6){SetWeather(16);}
if (Heure == 7){SetWeather(17);}
if (Heure == 8){SetWeather(19);}
if (Heure == 9){SetWeather(20);}
if (Heure == 10){SetWeather(21);}
if (Heure == 11){SetWeather(22);}
if (Heure == 12){SetWeather(24);}
if (Heure == 13){SetWeather(28);}
if (Heure == 14){SetWeather(31);}
if (Heure == 15){SetWeather(33);}
if (Heure == 16){SetWeather(34);}
if (Heure == 17){SetWeather(35);}
if (Heure == 18){SetWeather(37);}
if (Heure == 19){SetWeather(39);}
if (Heure == 20){SetWeather(41);}
if (Heure == 21){SetWeather(43);}
if (Heure == 22){SetWeather(44);}
if (Heure == 23){SetWeather(45);}
if (Heure == 24){SetWeather(45);}