Author Topic: ULX Jail save  (Read 3119 times)

0 Members and 1 Guest are viewing this topic.

Offline Scozor

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
ULX Jail save
« on: February 16, 2015, 05:52:21 AM »
Hello, here is it possible that someone JAIL when I save it prevents the player disconnects and reconnects and is no longer in jail?

I am a strict administrator and wish to put heavy penalty as long enough jails.

Thank you for your response, I grieve French and I use google translation.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: ULX Jail save
« Reply #1 on: February 16, 2015, 08:14:41 PM »
No. You can't have it prevent a player from disconnecting. If you want it so they get added to like a jail table so they stay jailed for (x) time and when they connect they get rejailed then that's different.
Once you get to know me, you'll find you'll have never met me at all.

Offline jakej78b

  • Newbie
  • *
  • Posts: 26
  • Karma: 4
Re: ULX Jail save
« Reply #2 on: February 16, 2015, 08:24:24 PM »
I'm pretty sure that's what he's asking. Not to prevent disconnects, but to make it so they get rejailed if they disconnect and reconnect. Keep in mind he used google translate so the english is most likely flawed. Your best option would be to modify the jail or write your own custom command that saves the time and steamid so that when they rejoin it will force them to serve the remainder of their time.

Offline Scozor

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX Jail save
« Reply #3 on: February 17, 2015, 04:03:34 AM »
Hi, yes sorry google translation is not perfect.

The problem that I really struggle with programming in lua, is there a pay system scriptfodder?

Yes I just want the player back to jail if he did not finish his time.
I know to program in C ++ and JavaScript but I find the different lua and I'm struggling.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: ULX Jail save
« Reply #4 on: February 19, 2015, 03:44:45 AM »
Oddly enough, this is one of the most difficult things I ever tried to do in my life. I can't seem to even do this myself. I'll look more into this.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: ULX Jail save
« Reply #5 on: February 19, 2015, 04:02:31 PM »
Is it really that difficult?

Just save the player's location and time, assuming the map doesn't change, and just put him back there and run the jail function.
Out of the Garry's Mod business.

An Error Has Occurred!

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