Raised This Month: $95 Target: $400
 23% 

Simple Map Extender v. 1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   v3x (159)
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 12-31-2005 , 11:19   Simple Map Extender v. 1.1
Reply With Quote #1

The only reason I made this is because I didn't see one already made and the admins on my server really wanted it. It's a very simple plugin that allows any admin to extend the map by x number of minutes. It has the ability to not allow any admin to extend the map if the map isn't in the mapcycle and also has the ability to set a max number of times a map can be extended and a max amount of time each time its extended. It's very simple and it does what it need to do.

Code:
#define MAX_MAPS 32 // Change this if you have more than 32 maps in mapcycle. #define MAPCYCLE    // Check mapcycle to prevent non mapcycle files from being extended. #define EXTENDMAX 3 // Maximum number of times a map may be extended by anyone. #define EXTENDTIME 15   // Maximum amount of time any map can be extended at once.
These are pretty easy to understand. If you have more than 32 maps in your mapcycle you change MAX_MAPS. If you don't want the mapcycle even checked comment out MAPCYCLE. EXTENDMAX is the amount of times a map may be extended before extending is not allowed anymore. EXTENDTIME is the max amount of time anyone can extend a map each time they extend it. Change these to whatever you want before you compile it. EXTENDMAX and EXTENDTIME are not cvars because any admin could defeat the purpose of the plugin by changing them.

Fixed bug, you can no longer extend the map by a negative number thereby removing time from the remaining maptime.
Attached Files
File Type: sma Get Plugin or Get Source (amx_extend.sma - 2615 views - 3.8 KB)
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-02-2006 , 00:20  
Reply With Quote #2

Good plugin, I've been wanting something like this for quite some time now :]
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
b00st3R
New Member
Join Date: Jan 2006
Old 01-02-2006 , 05:10  
Reply With Quote #3

nj man!
__________________
I dont have server because my ip is dynamical.
But i l1k3 Th1s...
b00st3R is offline
Send a message via ICQ to b00st3R
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 01-02-2006 , 06:47  
Reply With Quote #4

thanks
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
MueckE
Senior Member
Join Date: Nov 2005
Old 01-24-2006 , 05:41  
Reply With Quote #5

sorry but it doesnt work for me. i have the latest version of amxx installed and the plugin is already running. But theres no automatic extendvote at the end of the map. Why?

21:57:01 Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.60 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.60 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.60 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.60 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual Sys 1.60 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.60 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.60 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.60 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.60 AMXX Dev Team mapsmenu.amxx running
[ 10] Admin Chat 1.60 AMXX Dev Team adminchat.amxx running
[ 11] Anti Flood 1.60 AMXX Dev Team antiflood.amxx running
[ 12] Scrolling Message 1.60 AMXX Dev Team scrollmsg.amxx running
[ 13] Info. Messages 1.60 AMXX Dev Team imessage.amxx running
[ 14] Admin Votes 1.60 AMXX Dev Team adminvote.amxx running
[ 15] NextMap 1.60 AMXX Dev Team nextmap.amxx running
[ 16] TimeLeft 1.60 AMXX Dev Team timeleft.amxx running
[ 17] Pause Plugins 1.60 AMXX Dev Team pausecfg.amxx running
[ 18] Stats Configurati 1.60 AMXX Dev Team statscfg.amxx running
[ 19] Restrict Weapons 1.60 AMXX Dev Team restmenu.amxx running
[ 20] StatsX 1.60 AMXX Dev Team statsx.amxx running
[ 21] CS Misc. Stats 1.60 AMXX Dev Team miscstats.amxx running
[ 22] CS Stats Logging 1.60 AMXX Dev Team stats_logging.a running
[ 23] ATAC 2.5.4.1 T(+)rget/f117bom amxx_atac.amxx running
[ 24] ATAC Config 1.1.06 f117bomb & T(+)r amxx_atac_cfg.a running
[ 25] Map Extender 1.0 jsauce amx_extend.amxx running
[ 26] Simple Redirect 1.0 BigBaller simple_redirect running
26 plugins, 26 running

Please help me. I dont want to use mapchoser, i only want the mapextendvote.
MueckE is offline
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 01-24-2006 , 20:31  
Reply With Quote #6

This is a simple map extender, not an automatic map extender. This plugin allows admins the ability to easily extend the map without having to use amx_cvar or amx_rcon. It has no added ability to count or accept votes.
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 01-28-2006 , 22:41  
Reply With Quote #7

Anyone who has downloaded this, should redownload the new version I uploaded if you have admins abusing the plugin by setting negative numbers. I've removed the ability to do that. This would allow an admin to remove time from the map rather than add it by using a negative number in the extend line. The plugin now checks this and prevents it from happening.
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-29-2006 , 21:42  
Reply With Quote #8

I have used Firestorms for the last 6 mo or so and it seemed to work alright. Although that got trashed, glad to see a new ones out
__________________
bmann_420 is offline
it_Happens
Junior Member
Join Date: Dec 2005
Old 02-08-2006 , 19:42  
Reply With Quote #9

1. Is this auto-at the end of the mapcycle change?
(nextmap + timelimit)

2. also can u make me it so a user can type /map_extend and if 5ppl do it = vote for extend...
it_Happens is offline
-GSE-||Obsession^
Junior Member
Join Date: Oct 2006
Location: Monnickendam
Old 10-07-2006 , 13:17   Re: Simple Map Extender v. 1.1
Reply With Quote #10

Hi i really like this plugin , but io have 1 error/question.
When u (once) extend a map your mp_timelimit c-var is allso
changed for the other maps so they last mp_timelimit + extension .

For now i've found 1 solution; when u put mp_timelimit 20 is your
AMXX.cgf (amx modx configuration file) then it resets your mp_timelimit
back to 20 everytime the amxx.cfg is loaded. And i think this happens
only (automaticcaly) after a mapchange.

Can't you solve this in your plugin? For example by adding something like:
if timeleft = 0 , set mp_timelimit 20

because when the map has ended, the timeleft = 0.
Hope u read this and you (can) help me..

Thx, bye -GSE-||Obsession^

Last edited by -GSE-||Obsession^; 10-07-2006 at 13:31.
-GSE-||Obsession^ is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:16.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode