Ulysses Stuff > Suggestions
Temporary user group change
kropp:
I need a system so you can promote some one to a rank lets say for a month then they will be demoted after that.
Example: VIP you get VIP for a month and after that month is up its gone.
Maybe Like a trial VIP. You get VIP for 5 hours and after that you get guest.
Please let me know if this is possible or if you can do it for me.
I will pay for a system like this.
[JamminR-EDIT] - Edited title - "Needed System" to more descriptive
JamminR:
Searching for 'temp' on the forum finds this (OLD NON-WORKING for current ULX version) release
http://forums.ulyssesmod.net/index.php/topic,3825.0.html
Perhaps rather than making the suggestion that's already been made in this area a few times (and easily found in several other areas of the forum by searching for the word 'temp'), you can reply to his thread (Mr President is still quite active, and more experienced with Lua now too) and encourage him to upgrade to latest ULX compatibility, and add the time feature you and so many others there suggested.
MrPresident:
I am not obligating myself to this by any means, but I have an idea on how to make this work... How would something like this work for you:
ulx tempuser <player> <group1> <group2> <time>
group 1 - group they are temporarily in
group 2 - group they will be moved to after the time
time - in seconds. This will be tracked based on epoch time, so it'll be fairly accurate and leaving the server shouldn't have any adverse effect.
The data will be stored via sqlite. This will allow the script to quickly query the db when a player joins the server to check and see if a temporary membership/group has expired since they last played and also so that the server can query every set amount of time (most likely every 1 minute - possibly configurable) for players connected to see if a membership/group has expired while they are playing.
This should be fairly easy to write actually. I'll see what I can do tomorrow. Let me know if this is what you were looking for.
And as always, I code gmod for fun, not for profit.
kropp:
That sounds perfect this is so when people buy VIP for a month I can have something keep track of it for me.
This sounds amazing! ;D
Stickly Man!:
--- Quote from: MrPresident on July 01, 2011, 12:52:08 AM ---also so that the server can query every set amount of time (most likely every 1 minute - possibly configurable)
--- End quote ---
Wouldn't it be easier to just have a single timer per player with a temp group? Timers would be created when the server starts or when a new player is given a temp group, and removed only if the player's time or group is changed? You'd obviously store the users by SteamIDs, so you can use add/removeuserid and have the players temp group expire even when they're not on the server.
Oh, and then you don't have to have a repeated query :)
Navigation
[0] Message Index
[#] Next page
Go to full version