Author Topic: Player:Ban()  (Read 1543 times)

0 Members and 1 Guest are viewing this topic.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Player:Ban()
« 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!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Player:Ban()
« Reply #1 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

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Player:Ban()
« Reply #2 on: December 06, 2015, 12:56:00 PM »
So would there be a way to then remove the ban using a steamid?

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Player:Ban()
« Reply #3 on: December 06, 2015, 01:00:30 PM »
You'd have to manually go and remove it from the .cfg file noted above.
Once you get to know me, you'll find you'll have never met me at all.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Player:Ban()
« Reply #4 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
Experiencing God's grace one day at a time.