Page 1 of 1

Auto Map Change On Not Empty/EmptyServer

Posted: Mon Nov 22, 2021 11:26 pm
by greenie
//
// Change log: 0.8 2008-07-21, Fixing so that admins counts as players.
// 0.7 2006-01-21, Fixing spelling mistakes in change log text.
// 0.6 2006-01-03, Fixing nextmap possibility. Changed
// to set_cvar_num for mp_timelimit. Mp_timelimit keeps
// record of which map is in use (players map or empty map).
// 0.5 2005-12-31, Fixed another bug in change_maps_forplayer(),
// it changed back to amx_map_players every map change.
// 0.4 2005-12-31, Fixed bug in change_maps_forplayer(),
// equal(curmap, map_empty) -> equal(curmap, map_players)
// 0.3 2005-12-30, changed change_maps() and
// change_maps_forplayer() so it only makes changelevel if
// amx_map_empty and amx_map_players are different. E.g. if
// you have de_dust in both it only makes changelevel when
// empty, but only mp_timelimit if a player connects.
// 0.2 2005-12-29, Started this change log.
// 0.1 2005-12-29, first version done.
//
//
// amx_staytime(in seconds): How long before the plugin changes the map.
//
// amx_map_empty(map_name): This is the map you want to change to if
// the server is empty.
// Read!-> If you write "amx-nextmap" it will use the
// next map in the map cycle.
//
// amx_map_players(map_name): This is the map you want to change to when
// the server is not empty any more.
// Read!-> If you write "amx-nextmap" it will use the
// next map in the map cycle.
//
// amx_timelimit_empty(minutes): This is the mp_timelimit you want to have
// if the server is empty.
// Read!-> It can NOT be same value as
// amx_timelimit_players (under)
//
// amx_timelimit_players(minutes):This is the mp_timelimit you want to have
// if the server is not empty any more.
// Read!-> It can NOT be same value as
// amx_timelimit_empty (above)
//
// amx_idletime(in hours): How many hours a player can be connected to
// the server before being considered idle.
//
// amx_map_memory(0): DON'T CHANGE THIS ONE. Plugin uses this to
// get the amx-nextmap to work OK.
//
get plugin