Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local kickstrings = { "test", "these", "strings" } --Make sure these are ALL lowercase
- function NameKicker( ply )
- local pname = string.lower( ply:Nick() )
- for k, v in pairs( kickstrings ) do
- if string.find( pname, v ) then
- ULib.kick( ply, "Auto-Kicked for having the string " .. v .. " in your name. Please change your name and rejoin" )
- end
- end
- end
- hook.Add( "PlayerInitialSpawn", "NameKicker", NameKicker )
Advertisement
Add Comment
Please, Sign In to add comment