Ok i made this (with help from hawk) to kick all clients... it works but I want to change the map after evrybody is kicked
for example
I want to kick evrybody and change the map to de_cpl_fire
amx_changekick de_cpl_fire
Plugin:
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")
}
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)
return PLUGIN_HANDLED
}
How can i make that can somebody help me
__________________