Raised This Month: $51 Target: $400
 12% 

Incorporate amx_extend.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 06-06-2007 , 14:07   Incorporate amx_extend.
Reply With Quote #1

I think this small but useful plugin should be incorporated to amx_super. Since this would be good even as base AMXX package functionality. amx_extend by jsauce:
Code:
register_concmd("amx_extend","admin_extend",ADMIN_LEVEL_A,"<added time to extend> : ex. 5, if you want to extend it five more minutes.")

Code:
public admin_extend(id,level,cid) {     if (!cmd_access(id,level,cid,2))         return PLUGIN_HANDLED         new arg[32],name[32]     read_argv(1,arg,31)     get_user_name(id,name,31)     if (arg[0])     {         if(containi(arg,"-") != -1)         {             client_print(id,print_chat,"[AMXX] You cannot extend the maptime by a negative number.")             return PLUGIN_HANDLED         }         new tlimit = str_to_num(arg)         set_cvar_float("mp_timelimit",get_cvar_float("mp_timelimit") + tlimit)         client_print(0,print_chat,"[AMXX] %s has extended the map time by %i minutes",name,tlimit)         return PLUGIN_HANDLED     }         return PLUGIN_HANDLED }
__________________
anssik is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-07-2007 , 01:34   Re: Incorporate amx_extend.
Reply With Quote #2

Yea, i like that. Small and usefull. I have been gone on bussiness (i have been in Cali more than half of last month) and am sorry about the delays and whatnot. But hang in their and it will be all to the good soon

Althought this plugins if for serversthat only have a few maps on unless they would or most likely are using a mapchooser. THis is good on certain applications like my old server was 24/7 Assault / Dust2. A nice small vote to extend was nice, but when you have many maps, its irrelevant. Know what I mean?
__________________

Last edited by bmann_420; 06-07-2007 at 02:54.
bmann_420 is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 06-07-2007 , 06:30   Re: Incorporate amx_extend.
Reply With Quote #3

Well, frankly, I really don't know what you mean . I have many many maps on my server, and I'm using a mapchooser where you can choose nextmap / extend the current map. This plugin is useful if admin wants to be a dictator and still extend the map.

As a basic admin functionality this is good. It's much more easy to use this than "amx_cvar mp_timelimit currentlimit+extendtime"
__________________
anssik is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-07-2007 , 14:18   Re: Incorporate amx_extend.
Reply With Quote #4

ALright I see what your saying. I thought this was one that just pops up when you have 2 minuts left to make a vote for extending or goto the next map.
__________________
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-08-2007 , 02:20   Re: Incorporate amx_extend.
Reply With Quote #5

ALright, its nice. But their needs to be a top to it. I can put in 11 digits and then poof, no time limit 0:00. It needs to be limited to a certain number.

Kinda like:

Code:
 if(containi(arg,"-")  || something == -1 )
lol i remember seeing it somewhere to add a number or just make it no more than 1000 or something
__________________

Last edited by bmann_420; 06-08-2007 at 02:39.
bmann_420 is offline
lucky8919
Junior Member
Join Date: Oct 2007
Old 10-27-2007 , 18:39   Re: Incorporate amx_extend.
Reply With Quote #6

ey you can make a plugin of this one?

amx_extend.sma ?? Someone knows how to create it?
lucky8919 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 10-27-2007 , 19:12   Re: Incorporate amx_extend.
Reply With Quote #7

its in approved plugins section
__________________
bmann_420 is offline
LolZ
Junior Member
Join Date: Oct 2009
Old 10-31-2009 , 11:12   Re: Incorporate amx_extend.
Reply With Quote #8

Hi ,
I was wondering if you could post the plugin here ......... i dont get "
register_concmd("amx_extend","admin_extend",ADMIN_LEVEL_A,"<added time to extend> : ex. 5, if you want to extend it five more minutes.")
Could you post amx_extend.amxx here please? Thx alot
LolZ is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 11-04-2009 , 15:01   Re: Incorporate amx_extend.
Reply With Quote #9

There.
Attached Files
File Type: sma Get Plugin or Get Source (amx_extend.sma - 1123 views - 2.1 KB)
__________________
anssik is offline
LolZ
Junior Member
Join Date: Oct 2009
Old 11-07-2009 , 13:08   Re: Incorporate amx_extend.
Reply With Quote #10

thank you anssik + karma :O

Last edited by LolZ; 11-07-2009 at 13:13.
LolZ is offline
Reply



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 15:23.


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