Advertisement
PlayersZero

Gmod Admin Halos

Jan 28th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. hook.Add("PreDrawHalos", "AdminVision", function()
  2. local ply = LocalPlayer()
  3. local CanSee = CanSee or {}
  4. local IsLive = IsLive or {}
  5.  
  6. local ranksESP = {
  7.     superadmin = true,
  8.     senioradmin = true,
  9.     admin = true,
  10.     trialadmin = true,
  11. }
  12.  
  13. if ranksESP[ply:GetUserGroup()] then
  14. for k, v in ipairs(team.GetPlayers(2)) do
  15.     if v:Alive() then
  16.     table.insert(IsLive, v)
  17.     end
  18. end
  19.     if ply:Team() == 1 or ply:Team() == TEAM_UNASSIGNED then
  20.         table.insert(CanSee, ply)
  21.     else return end
  22.     if CanSee then
  23.         halo.Add(IsLive, Color(30,255,255), 0, 0, 4, true, true)
  24.     end
  25. end
  26. end)
  27. //Esp for admins, made by Zero & Pancake
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement