I just need somone to make it work with Uteam
Heres the Scoreboard
http://rapidshare.com/files/30618341...ed_v2.rar.html
Here is the Autopromotion system
And when It Promotes a person I want Uteam To make it Change the Color Of the Persons little bar thing in the scoreboard in the // i put the colors of the bar that i want
__________________________________________________ _____________________________________
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",
["100"] = "No Life", //Dark Red
["40"] = "Legend", //Light Red
["20"] = "Master", //Orange
["15"] = "Veteran", //Green
["10"] = "VIP", //Purple
["7"] = "Highly Respected", //light purple
["5"] = "Respected", //pink
["3"] = "Regular", //Blue
["2"] = "Pro Builder", //light blue
["1"] = "Builder", //Brown
["0"] = "user"
}
local excludeGroups = {
"minge",
"respected",
"admin",
"superadmin"
}
--DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING--
--Checks if they are ready to be promoted.
function deathCheck(ply)
if not excludeCheck(ply) then
local newGroup = promoteCheck(ply)
promote(ply, newGroup)
end
end
hook.Add( "PlayerDeath", "deathCheck", deathCheck )
--Check if they are in an excluded group.
function excludeCheck(ply)
local excluded = false
for k, v in ipairs(excludeGroups) do
if ply:IsUserGroup(v) then
excluded = true
end
end
return excluded
end
--Check what group they fall in.
function promoteCheck(ply)
local hours = math.floor((ply:GetUTime() + CurTime() - ply:GetUTimeStart())/60/60)
local newGroup = "user"
for k, v in pairs(promoteGroups) do
if hours >= tonumber(k) then
newGroup = v
end
end
return newGroup
end
--Promote the player to the group.
function promote(ply, newGroup)
if not ply:IsUserGroup(newGroup) then --Make sure we don't promote them tho their current group.
game.ConsoleCommand("ulx adduser " ..string.format("%q", ply:Nick() ).. " " ..string.format("%q", newGroup).. " \n")
end
end
++++++++++++++++++++++++++++++++++
I need that too work with this
I want this to change the color of the bar everytime it promotes ( the colors i want are right next to the name of the groups above )
++++++++++++++++++++++++++
"Out"
{
"teams"
{
"1" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Name" //Name of the team.
"group" "usergroup" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "100" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "500" //(*Optional*) Player's initial health.
"armor" "500" //(*Optional*) Player's initial armor.
"model" "gman" //(*Optional*) Player's model. (None if undefined, Kleiner if invalid) Valid models listed below
"plytable" //(*Optional*) Set values on the Player's table.
{ //Format is key:value
"1" "SprintSpeed:1000" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:500" //Set the player's walk speed (Def. 250)
}
}
}
"gamemodes" //Gamemodes to load on
{
"1" "Sandbox" //To add additional increase number each time
}
}
Valid player Models:
alyx
barney
breen
charple
combine
corpse
eli
female1
female2
female3
gman
kleiner
male1
male2
male3
monk
mossman
odessa
police
prison
super
zombie
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PLease do this for me :D