01-09-2011, 10:10 PM
Code:
banned = {"NameHere", "AnotherNameHere"}
function in_table ( e, t )
for _,v in pairs(t) do
if (v==e) then return true end
end
return false
end
link(game.Players.ChildAdded, function(p)
if in_table(p.Name, banned) then
p:message("You're banned!'")
p:remove()
game:message(p.Name.." tried to join, but is banned.")
sleep(3)
game:message()
end
end)