View Single Post
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