Auto-kick when join.

Hey, I need a script that will auto kick someone when they join.

For example:

STEAM_0:0:00000 joins the server
He gets auto-kicked for the reason “auto kick”
Then it’ll display a message in the server saying “Steam name” has been kicked for “auto kick”

Is there anyone that could make this for me real quick? I used to have it but recently reformatted my computer and lost alot of stuff.

Much appreciated.

This should be in the request section, but I’ll whip something up.


function AutoKicker(ply)
	if ply:SteamID() == "STEAM_ID" then
		ply:Kick("You have been auto-kicked")
			for k, v in pairs (player.GetAll()) do
			v:ChatPrint("STEAM_ID was kicked by auto-kicker")
hook.Add("PlayerInitialSpawn", "AutoKick", AutoKicker)


Put it in init.lua

I’ll try that out now, I will edit this post if it works.


Works! Thanks alot.