Raised This Month: $128 Target: $400
 32% 

Kick on change map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spiider
AlliedModders Donor
Join Date: Jan 2010
Old 12-18-2020 , 15:51   Kick on change map
Reply With Quote #1

Hi all.

It is possible to kick all players on the change map like in hlds where when I execute the command map kick all players?
spiider is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 12-18-2020 , 17:50   Re: Kick on change map
Reply With Quote #2

Yes. You could make a plugin, make an alias, or simply add kick command it to the end of your console command.

Plugin example:
PHP Code:
public void OnMapEnd()
{
    for (
int i 1<= MaxClientsi++)
    {
        if (!
IsClientInGame(i)) continue;
        
KickClient(i"Goodbye");
    }

Alias example:
Server.cfg: alias "changemap" "sm_kick @all;changelevel"
Usage: changemap de_dust2

Command Example:
sm_map de_dust2;sm_kick @all
__________________
Maxximou5 is offline
spiider
AlliedModders Donor
Join Date: Jan 2010
Old 12-18-2020 , 20:04   Re: Kick on change map
Reply With Quote #3

Ok, thanks I was trying to not use that
spiider is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 12-18-2020 , 21:27   Re: Kick on change map
Reply With Quote #4

Those are probably your only options.
__________________
Maxximou5 is offline
Reply


Thread Tools
Display Modes

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 02:16.


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