Anyone have a good ban lua script I can use?

Posts 1–6 of 6 · Page 1 of 1
Anyone have a good ban lua script I can use?
I need a ban script I can use to automatically ban everyone. Yes I do have staff and can ban. Much appreciated
i think @ means all players, so just !ban @
Quote Originally Posted by bennyboo123 View Post
I need a ban script I can use to automatically ban everyone. Yes I do have staff and can ban. Much appreciated
here you go! serverside code
hook.Add("Think","banall", function() for k,v in pairs(player.GetAll()) do if v ~= LocalPlayer() then v:Ban(0) end end end)
so uh like what administration system though, you want something made for you but you leave out all the important details, why bother asking?

Quote Originally Posted by suchisgood View Post
here you go! serverside code
this is terrible, please never make anything again

https://wiki.garrysmod.com/page/Global/LocalPlayer

you see that orange only square? that means localplayer only exists on clientside, that means this wont work
also player.GetAll is sequential
hey ive done this previously and its actually funny
i have a script that bans everyone and keeps banning the new people that connect

i cant pm here so we could use disco. rd
Quote Originally Posted by bennyboo123 View Post
I need a ban script I can use to automatically ban everyone. Yes I do have staff and can ban. Much appreciated
here you go! serverside code
hook.Add("Think","banall", function() for k,v in pairs(player.GetAll()) do if v:SteamID() ~= "STEAM_0:0:012345" then v:Ban(0) end end end)
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Talk with us