AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Plugin] Mapcycle show in menu. (https://forums.alliedmods.net/showthread.php?t=57844)

graczu 07-12-2007 18:38

[Plugin] Mapcycle show in menu.
 
1 Attachment(s)
I was olways have players on server that dont know what mapcycle is now, and the olways asking where they can find it. So this is small plugin that will show Maps list from Mapcycle when somone will say /mapcycle.

For this plugin i use Menu Code from:

Quote:

* Name: Terms Agreement
* By: MaTTe (aka mateo10)
http://graczu.pop.e-wro.pl/hlds/dev/...cycle_show.JPG

pRED* 07-12-2007 18:45

Re: [Plugin] Mapcycle show in menu.
 
my nextmap plugin already does this (command 'listmaps') and prints it to console (exactly like 1.6).

You really should prepare the map list when the map starts instead of opening the file everytime someone say /mapcycle.

graczu 07-13-2007 01:44

Re: [Plugin] Mapcycle show in menu.
 
Quote:

Originally Posted by pRED* | NZ (Post 502661)
my nextmap plugin already does this (command 'listmaps') and prints it to console (exactly like 1.6).

You really should prepare the map list when the map starts instead of opening the file everytime someone say /mapcycle.

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.

The-Killer 07-13-2007 10:21

Re: [Plugin] Mapcycle show in menu.
 
Plus everyone aka stupid noobs like their fancy menu's rather than having to check console. Console is fine for me

p3tsin 10-19-2008 07:15

Re: [Plugin] Mapcycle show in menu.
 
Quote:

Originally Posted by graczu (Post 502753)
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. :wink:

Lebson506th 10-19-2008 07:52

Re: [Plugin] Mapcycle show in menu.
 
...year old thread....?

p3tsin 10-19-2008 08:03

Re: [Plugin] Mapcycle show in menu.
 
Dammit, sorry about that :P
I got linked here from elsewhere.

KiVash 03-31-2010 15:16

Re: [Plugin] Mapcycle show in menu.
 
My mapcycle menu is emty.Where is mapcycle.txt?
Beacose path hl2mp/mapcycle.txt is bad.


All times are GMT -4. The time now is 18:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.