you cant change it in game if u want to make it changeable in game u need to make it like this:
Code:
// Kick all clients by eRik */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Kick All Clients"
#define VERSION "0.1"
#define AUTHOR "eRik"
#define REASON "Mapchanging..."
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_kickall","kick_all",ADMIN_KICK,"Kick all clients")
register_cvar("mapname", "de_dust2")
}
stock kick_all (reason[])
{
static iPlayers[32],iPlayersnum
get_players(iPlayers,iPlayersnum)
for(new iCount;iCount < iPlayersnum;iCount++)
server_cmd("kick #%d %s",get_user_userid(iPlayers[iCount]),REASON)
set_task(0.2,"changemap")
return PLUGIN_HANDLED
}
public changemap()
{
server_cmd("changelevel "get_cvar_string("mapname")"")
}
then just change the cvar to w/e u want
(think get_cvar_string should work not sure tho)
__________________