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
}
__________________