Author Topic: Perma-ban question and Spectate problem.  (Read 2557 times)

0 Members and 1 Guest are viewing this topic.

Offline TheHyperDrive

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
Perma-ban question and Spectate problem.
« on: July 26, 2014, 01:22:48 PM »
Alright so my first question is this: When the ulx spectate (!spectate) command is used, if the person is dead, it brings them back to life. I thought of adding a kill command, but it would also kill someone who is alive and used it. Is there any way around this? (I have a custom respawn module, which only higher rank can use).

The second, I saw some servers have a perma-ban that prevents a person from joining, even if it's on another account. Is that possible for me, or would I have to pay for the code?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Perma-ban question and Spectate problem.
« Reply #1 on: July 26, 2014, 02:44:39 PM »
1) Can you give reasons for spectating a dead person? Why would an admin with spectate access do this?
We could work to add a dead player check for the spectate code reasonably easy, but it seems, as we've had it for years, this has never come up.

2) Source/HLDS includes a way to ban by IP address, no lua code needed. "addip <ip address> <time>"
I believe it's been added to Gmod.
The reason it's not commonly used in most banning is because IP addresses can be changed reasonably easy on most ISPs.
Easier than changing accounts actually (as most accounts cost money (or were stolen/hacked/borrowed from friend/relative)
Steam_Ids are best bet, as they never change for a single account.
I wouldn't permaban IP addresses though...would do it for a few days. Since most are dynamic, would get cluttered after some time anyway.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Perma-ban question and Spectate problem.
« Reply #2 on: July 26, 2014, 03:00:39 PM »
If you're not looking for IP bans, do you mean this? http://facepunch.com/showthread.php?t=1341204&p=43469693&viewfull=1#post43469693
That should prevent players that share GMod to other accounts through "Family sharing" from joining.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline TheHyperDrive

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
Re: Perma-ban question and Spectate problem.
« Reply #3 on: July 26, 2014, 03:16:46 PM »
I'm not spectating a dead person. Let's say the moderator or admin is not on the team of a person that is being called out on cheating. That staff member would use !spectate to see that player, instead of having to switch to spectator team. (It's a prop hunt server by the way). Now if that admin or mod is dead when they enter !spectate, it brings them back to life once they move or exit it. For example:

Admin 1 has committed suicide.
Player 1: Player 2 is cheating! (hiding in an unreachable spot, for example)
Admin 1: !spectate "Player 2"
Admin 1 is now spectating Player 2.
(Move around to exit spectate mode)
(Admin 1 moves forward with W to exit spectate mode)
Admin 1 has stopped spectating Player 2.
(Admin 1 respawns with no weapons and 0 health at the point they activated the spectate command)

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: Perma-ban question and Spectate problem.
« Reply #4 on: July 26, 2014, 05:30:07 PM »
The second, I saw some servers have a perma-ban that prevents a person from joining, even if it's on another account. Is that possible for me, or would I have to pay for the code?
You can achieve this by banning ip addresses, using cookies, and steam api for family shared accounts. I have code that does all of these things, add me if you would like it.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Perma-ban question and Spectate problem.
« Reply #5 on: July 26, 2014, 08:17:32 PM »
TheHyperDrive, your description is more understood to me now. I thought it was bringing the specatee back, not the spectator.
I'll suggest to the team that we try to find some way around that and still allow spectating.

The function we wrote for ULib to spawn a player, literally, uses default Gmod "ply:Spawn()", along with some other "magic" weapon/armor/health restoration commands if another Ulib command was used before doing so.
ULib.spawn at line 470
We may not be able to find a work-around.
As the function we wrote was intended, literally, to respawn the player with everything they had before being (jailed, spectating, few other commands) in SandBox, worst case scenario, we may have to disable the function all together for non Sandbox.

« Last Edit: July 26, 2014, 08:21:26 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming