View Single Post
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 10-19-2008 , 07:15   Re: [Plugin] Mapcycle show in menu.
Reply With Quote #5

Quote:
Originally Posted by graczu View Post
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.
__________________
plop

Last edited by p3tsin; 10-19-2008 at 07:18.
p3tsin is offline