General > Developers Corner

Read players steamid from the ban list

(1/2) > >>

warhammer:
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: ---local input = ULib.fileRead( "data/ulib/bans.txt" )

--- End code ---

but im not sure where to go.
any help appreciated.

iViscosity:
http://wiki.garrysmod.com/page/file/Read Check this out. I can't help too much at the moment but probably later.

An Error Has Occurred!

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

[0] Board index

Go to full version