18.11.2017, 20:55
I set that when its 00:00 all players get extra point for being in game at that time.
Question is, while I'm afk and I get 10 minutes after 00:00 message that I got point for being at 00:00 active.
So I'm afk, I should get message at 00:00 no matter what, but if I'm afk I will get message when I come ingame (in this example after 10 minutes I'll get at 00:10).
Any ideas?
This is under timer that is called every second.
Question is, while I'm afk and I get 10 minutes after 00:00 message that I got point for being at 00:00 active.
So I'm afk, I should get message at 00:00 no matter what, but if I'm afk I will get message when I come ingame (in this example after 10 minutes I'll get at 00:10).
Any ideas?
PHP код:
new year, month, day, hours, minutes, seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
if(hours == 0 && minutes == 0 && seconds == 0)
{
foreach(Player, i)
{
SendClientMessage(i, COLOR_NOTIFICATION, "SERVER: Extra point for being online at {EEEEEE}00:00{F39746}.");
}
}