Raised This Month: $12 Target: $400
 3% 

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 , 14: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 , 16: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 , 19: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 , 20: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 03:25.


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