• An addon to promote someone?
    3 replies, posted
I want to know if there is an addon to promote someone over time so like for example someone joins the server and plays on it for one hour it auto promotes them to Member. If anyone knows of this addon please post it thank you ^~^.
If you have a addon that tracks playtime, you could do something like [code]if playtime >= 1 then adminmod promote little_piggy member end[/code]
something like this?: [url]http://forums.ulyssesmod.net/index.php?topic=3826.0[/url] Edit: heres a link to UTime: [url]http://forums.ulyssesmod.net/index.php?topic=3039.0[/url]
[QUOTE=little_piggy;44060633]I want to know if there is an addon to promote someone over time so like for example someone joins the server and plays on it for one hour it auto promotes them to Member. If anyone knows of this addon please post it thank you ^~^.[/QUOTE] You could take utime from ulx and edit it to promote someone after a certain amount of time. Edit: had a small peak: in sv_utime.lua in function updatePlayer( ply ), you could change this: [code] function updatePlayer( ply ) sql.Query( "UPDATE utime SET totaltime = " .. math.floor( ply:GetUTimeTotalTime() ) .. " WHERE player = " .. ply:UniqueID() .. ";" ) end hook.Add( "PlayerDisconnected", "UTimeDisconnect", updatePlayer ) [/code] to something like this: [code] function updatePlayer( ply ) sql.Query( "UPDATE utime SET totaltime = " .. math.floor( ply:GetUTimeTotalTime() ) .. " WHERE player = " .. ply:UniqueID() .. ";" ) if ( ply:GetUTimeTotalTime() > 86400 ) then RunConsoleCommand("ulx", "adduser", "".. ply:Nick().. "", "group_vip") end end hook.Add( "PlayerDisconnected", "UTimeDisconnect", updatePlayer ) [/code] 86400 = amount of seconds (not sure if it's stored in seconds)
Sorry, you need to Log In to post a reply to this thread.