Author Topic: Read players steamid from the ban list  (Read 2481 times)

0 Members and 1 Guest are viewing this topic.

Offline warhammer

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
Read players steamid from the ban list
« on: August 12, 2016, 11:30:22 AM »
I want to create/put it in a lua file that reads the ban list and if it has a spercific steamid on the list it will unban it and perhaps run it on a timer to check every 5 seconds
i know i will need to read it by something like

Code: [Select]
local input = ULib.fileRead( "data/ulib/bans.txt" )

but im not sure where to go.
any help appreciated.
« Last Edit: August 12, 2016, 11:31:56 AM by warhammer »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Read players steamid from the ban list
« Reply #1 on: August 12, 2016, 11:33:14 AM »
http://wiki.garrysmod.com/page/file/Read Check this out. I can't help too much at the moment but probably later.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given