Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. team.SetUp( 1, "Bronze", Color( 139, 119, 101) )
  2.  
  3. team.SetUp( 2, "Silver", Color( 176, 196, 222) )
  4.  
  5. team.SetUp( 3, "Gold", Color( 255, 215, 0) )
  6.  
  7. team.SetUp( 4, "Platinum", Color( 95, 158, 160) )
  8.  
  9. team.SetUp( 5, "Diamond", Color( 0, 191, 255) )
  10.  
  11. for k,v in pairs(teams) do
  12.     team.SetUp(v.id, v.name, v.col)
  13. end
  14.  
  15. hook.Add("PlayerSay", "SetTeam", function ( ply, text, team )
  16.     local args = string.Explode( " ", text)
  17.     if args[1]:lower() == "/set" then
  18.         if args[2]:lower() == v:Nick():lower() then
  19.             if (teams[args[3]]) then v:SetTeam(teams[args[3]].id) end
  20.         end
  21.     end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement