Raised This Month: $ Target: $400
 0% 

Change the map and kick all clients


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shino
Senior Member
Join Date: May 2006
Old 07-03-2006 , 16:12   Re: Change the map and kick all clients
Reply With Quote #1

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)         set_task(0.2,"changemap")     return PLUGIN_HANDLED     } public changemap() {     server_cmd("changelevel de_dust2") }

sure, you can change de_dust2 to everything you want, or even better, you can leave this decision to server managers by cvar.
shino 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 07:59.


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