Ulysses Stuff > Ulysses Release Archives
AutoPromote
HOLOGRAPHICpizza:
AutoPromote is a lightweight UTime-integrated alternative to other promotion systems such as APromotion.
UTime and ULX are requred for this addon to operate.
To install, extract the AutoPromote folder to C:\Program Files\Steam\steamapps\<username>\garrysmod\garrysmod\addons\
Configuration options are at the top of AutoPromote/lua/ulx/modules/AutoPromote.lua
This addon is realeased under the MIT license, which gives you the right to use, distribute, and modify as long as you give me credit.
Version 3.1 includes a variety of bugfixes and improvements by me, Major_Pain, and Smithy.
Megiddo:
Very cool work! Interesting that you chose to build it off UTime, but it does seem like the two go hand-in-hand. :)
ASpeidell:
it won't promote my users after they have passed the three hours mark, what am i doing wrong?
--- Quote ---
if not SERVER then return end
--AutoPromote 1.0
--Automaticly promotes players to different groups based on UTime.
--By HOLOGRAPHICpizza. Released under the MIT license.
local promoteGroups = {
-- Groups must be listed in decending order.
-- ["hours"] = "group",
["72"] = "member",
["48"] = "vip",
["24"] = "highlyrespected",
["12"] = "respected",
["6"] = "regular",
["3"] = "builder",
["0"] = "user",
}
local excludeGroups = {
"owner",
"admin",
"superadmin",
}
--- End quote ---
HOLOGRAPHICpizza:
Make sure you have UTime and ULX installed and properly configured.
Make sure the group you want to promote to actually exists and it is possible to promote users to the group manualy.
Make sure you have completely restarted the server after installing the addon.
Make sure the user is not in an excluded group.
Remember that the script only checks hours when the player dies, and users are not promoted as soon as they hit the hour mark, they need to die first.
Try changing the config section to look like this:
--- Code: ---local promoteGroups = {
-- Groups must be listed in decending order.
-- ["hours"] = "group",
["72"] = "member",
["48"] = "vip",
["24"] = "highlyrespected",
["12"] = "respected",
["6"] = "regular",
["3"] = "builder"
}
--- End code ---
Note the lack of the users group and the lack of a comma after the last entry.
Also, please post any error messages you get.
ASpeidell:
That seemed to fix it...thanks, dude
you da man
Navigation
[0] Message Index
[#] Next page
Go to full version