Ulysses

General => Developers Corner => Topic started by: XxLMM13xX on December 06, 2015, 12:21:27 PM

Title: Player:Ban()
Post by: XxLMM13xX on December 06, 2015, 12:21:27 PM
Alright so where exactly does the info go when i do Player:Ban( time ) and how could i reach them for unbanning....

Thanks!
Title: Re: Player:Ban()
Post by: MrPresident on December 06, 2015, 12:55:04 PM
I believe it calls the engine ban function which stores the info in garrysmod/cfg/banned_user.cfg
Title: Re: Player:Ban()
Post by: XxLMM13xX on December 06, 2015, 12:56:00 PM
So would there be a way to then remove the ban using a steamid?
Title: Re: Player:Ban()
Post by: Caustic Soda-Senpai on December 06, 2015, 01:00:30 PM
You'd have to manually go and remove it from the .cfg file noted above.
Title: Re: Player:Ban()
Post by: Megiddo on December 06, 2015, 02:06:42 PM
Or you can use ULib.unban -- http://ulyssesmod.net/docs/files/lua/ulib/server/player-lua.html#unban

Or you can use removeid at the console

You have many options