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
Originally Posted by bennyboo123 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? Originally Posted by suchisgood 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
Originally Posted by bennyboo123 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)