Author Topic: Jail question  (Read 1500 times)

0 Members and 1 Guest are viewing this topic.

Offline Doomed

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Jail question
« on: January 30, 2013, 06:36:11 PM »
Is it possible to have people not kill you while jailed? I sometimes have troublemakers jailed and still kill people...Is it possible? If not, could it be implemented?

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Jail question
« Reply #1 on: January 30, 2013, 10:02:31 PM »
Is it possible to have people not kill you while jailed? I sometimes have troublemakers jailed and still kill people...Is it possible? If not, could it be implemented?

After jailing them strip their weapons, IDK why that is not part of the jail system already, make sure no one can kill them or else they will get the weapons back when they re-spawn in the jail.
I cry every time I see that I am not a respected member of this community.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Jail question
« Reply #2 on: January 31, 2013, 03:48:10 PM »
It's my understanding, we already do this?
Then when unjailed, give them back, with exact same ammo and everything?
I could have sworn Megiddo and I worked on this code/idea together about 2 years ago.

Perhaps it's a Sandbox feature, that, because we can't guarantee gamemode hooks/weapons match, isn't compatible?
Or, it just didn't get ported.

* JamminR goes and looks at the jail code to refresh his memory.

EDIT - Ok ok. I KNEW we worked on something. However, it wasn't used to store weapons info/ammo. Think we went round and round trying to find a good way to do it.
AND, it was only for death prevention, so as someone inside a jail wouldn't kill themselves to be respawned at normal spawn point.
We have a getspawninfo command to grab health and armor, then a special Ulibspawn command that will replace it, and then monitor for death hooks of the person in jail.
« Last Edit: January 31, 2013, 04:10:41 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming