22.10.2017, 22:19
Yes, but I'do it more short
Also, I'd suggest you to create an enum to store server variables just like server hour,minute and seconds, so you can create a clock with textdraws and add the current server time to it.
PHP код:
forward ServerTime();
public ServerTime()
{
new h, m, s;
gettime(h, m, s);
foreach(Player, k)SetPlayerTime(k, h, m);
return 1;
}
PHP код:
SetTimer("ServerTime", 300000, true); // Check every 5 mins