Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- team.SetUp( 1, "Bronze", Color( 139, 119, 101) )
- team.SetUp( 2, "Silver", Color( 176, 196, 222) )
- team.SetUp( 3, "Gold", Color( 255, 215, 0) )
- team.SetUp( 4, "Platinum", Color( 95, 158, 160) )
- team.SetUp( 5, "Diamond", Color( 0, 191, 255) )
- for k,v in pairs(teams) do
- team.SetUp(v.id, v.name, v.col)
- end
- hook.Add("PlayerSay", "SetTeam", function ( ply, text, team )
- local args = string.Explode( " ", text)
- if args[1]:lower() == "/set" then
- if args[2]:lower() == v:Nick():lower() then
- if (teams[args[3]]) then v:SetTeam(teams[args[3]].id) end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement