Raised This Month: $ Target: $400
 0% 

Change the map and kick all clients


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eRik
Junior Member
Join Date: Jul 2006
Location: HOLLAND!
Old 07-03-2006 , 14:59   Change the map and kick all clients
Reply With Quote #1

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
__________________
eRik is offline
 



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