Author Topic: TempAdd (v2.4) - Add a user to another group for a set amount of time  (Read 89111 times)

0 Members and 1 Guest are viewing this topic.

Offline Bo98

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #45 on: March 28, 2013, 06:16:25 AM »
Must have been a formatting issue or something (definitely not typo). A copy and paste of what you wrote works.

Offline lua_error

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #46 on: April 08, 2013, 02:58:33 AM »
You are sure that is the right line? Neither one of those should be a string.

os.time() is an integer

and exptime is also an integer.


Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #47 on: April 08, 2013, 02:24:05 PM »
Cant do much of anything to fix this right now as I'm in the hospital, but when I get out and am back on my feet, ill look into this. Just try and provide me with as much info as you can regarding how you get this error. Was it when you tried to add someone, or just randomly as the add-on does its thing?

Offline DoubleN

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #48 on: June 16, 2013, 12:05:43 PM »
Is it possible that after a certain amount of time people get a rank?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #49 on: June 16, 2013, 04:10:34 PM »
Is it possible that after a certain amount of time people get a rank?
You want apromote or similar.
Some say it doesn't work though. See the release thread.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline rainbowdash

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • That awkward feeling when you forget ur main login
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #50 on: June 30, 2013, 07:56:02 AM »
This is really nice, but I have 2 things I would like to say about this.

1. I noticed that older "tempadd" commands appear to take priority over newer, longer commands. Of course, I am not a master at reading Gmod's console with HLSW so idk what i saw really... and given my main pc died today I can't pull up the log...

2. Have you considered adding the following feature: To remember what rank the user was, and returning the user to that rank after said user has expired his rank? (thus making the fourth "rank" parameter optional). This would be handy in some cases, none of said cases come to mind at this point in time (which for me is 3 in the morning unless my laptop time is off again).

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #51 on: June 30, 2013, 11:52:42 AM »
I don't understand what you mean in your first situation.

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #52 on: July 09, 2013, 04:48:30 AM »
Allow me to explain with a hypothetical.

At 9:22 AM, the console makes a player named Rainbow a Super Admin for 5 minutes, thus making him due for demotion at 9:27 AM

At 9:25 AM, the console makes Rainbow a Super Admin for 15 minutes, thus making him due for demotion at 9:40 AM

At 9:27 AM, the addon automatically demotes Rainbow down to the specified rank of the first command.

At 9:40 AM, the addon attempts to repeat its prior action, as specified by the second command.
Uhm, whats a signature?

Offline morten7000

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
Re: TempAdd (v2.2) - Add a user to another group for a set amount of time
« Reply #53 on: July 10, 2013, 02:05:52 AM »
Hi :D.

I'm getting this Error http://gyazo.com/efda807dc100d8815f61f465f8594ea3 And I cant see why I'm getting it.

Its everytime I, lets say I set a random guy to go from the group user to admin in 30 min. Then he leave 10 min in. Next time he rejoin I get this error and he will not be promoted?

I don't know if this have already been thrown out there. So if it have and there is found a fix for it then plz tell me :)

Thanks :D

Edit. I can see that this have already been reported above soooo :P
« Last Edit: July 13, 2013, 11:47:45 AM by morten7000 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: TempAdd (v2.3) - Add a user to another group for a set amount of time
« Reply #54 on: July 16, 2013, 12:06:11 PM »
Fixed the bug everyone was posting about. It was total oversight on my part. After loading the epoch time that the player should have their group changed when they joined the server I forgot to change it from a string format to a number format. This wouldn't have affected any player who had their group change back before disconnecting but it would have errored on any player who left and rejoined.

Also @rainbow dash: If you set a new temp group for a player it completely overrides the previous one. Your scenario is impossible. I'm not sure what you saw, it might have been related to the error I fixed though. Try it out now.

Offline Ramirex

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: TempAdd (v2.3) - Add a user to another group for a set amount of time
« Reply #55 on: August 07, 2013, 05:52:45 AM »
It's broken only works when you set temp time to 5-10min if more users stays in that group forever. looks like when map changes it resets because i added someone to group for 60min and after 3hours theyre still in same group and not that one i set they should be moved after 60min.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: TempAdd (v2.3) - Add a user to another group for a set amount of time
« Reply #56 on: August 07, 2013, 06:56:38 AM »
Are you using the most recent version (2.3)?

Offline Ramirex

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: TempAdd (v2.3) - Add a user to another group for a set amount of time
« Reply #57 on: August 07, 2013, 08:49:59 AM »
yes

EDIT: anyway when you have time or feel like doing it you could do new plugin that could add people to group for a week or month. it should count real life time not in-game played.
« Last Edit: August 08, 2013, 03:16:18 AM by Ramirex »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: TempAdd (v2.3) - Add a user to another group for a set amount of time
« Reply #58 on: August 08, 2013, 05:49:28 AM »
That's how this addon works. It uses real time, not in game time.

or is supposed to anyway..

Offline Ramirex

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: TempAdd (v2.3) - Add a user to another group for a set amount of time
« Reply #59 on: August 09, 2013, 04:33:40 PM »
dosent work for me then. only for 10min max. if more people stay in group forever

EDIT: started working
« Last Edit: August 12, 2013, 01:54:52 AM by Ramirex »