Quote:
Originally Posted by graczu
Hmmmm, but if admin enter the server and say that he was change the mapcycle, and then evryone will want to see the new one. So maplist is loading on evry say /mapcycle. If i will change to load maplist on mapchange, then evryone will need wait to mapend, if admin dont wanna change map right now.
|
I think the best solution here is to cache the mapcycle (by making the panel handle global and leaving it open after creating the menu) and save the file's last modified timestamp with
Code:
GetFileTime(const String:file[], FileTime_LastChange);
and then reload it only if the timestamp has changed.
__________________