Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local groupIcon = nil
  2.                    
  3. if LocalPlayer():IsUserGroup( "mod" ) then
  4.     groupIcon = Material("icon16/shield.png")
  5. elseif LocalPlayer():IsUserGroup( "superadmin" ) then
  6.     groupIcon = Material("icon16/shield_add.png")
  7. end
  8.  
  9. if groupIcon != nil then
  10.     surface.SetMaterial( groupIcon )
  11.     surface.SetDrawColor( 255, 255, 255, 255 )
  12.     surface.DrawTexturedRect( w-120, 6, 16, 16 )
  13.     surface.DrawTexturedRect( w-120, 6, 16, 16 )
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement