Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. --[[
  2. /////////////////////////////////////
  3. // © 2017 Michael Conway, //
  4. // Michael Conway - MC //
  5. // All rights reserved //
  6. /////////////////////////////////////
  7. // This material may not be //
  8. // reproduced, displayed, //
  9. // modified or distributed //
  10. // without the express prior //
  11. // written permission of the //
  12. // the copyright holder //
  13. // or of its author //
  14. // MConway@ELHostingServices.com //
  15. /////////////////////////////////////
  16. --]]
  17.  
  18. --[ MC_Ranks v 1.0.0 ]--
  19.  
  20. if CLIENT then
  21.  
  22. hook.Add( "RenderScreenspaceEffects", "DisplayInsignia", function()
  23. for k, v in pairs(player.GetAll()) do
  24. if (LocalPlayer():GetPos()istance(v:GetPos()) < 500 and v:GetRenderMode() ~= RENDERMODE_TRANSALPHA and v:GetNoDraw() == false) then
  25. local pos = Vector(v:GetPos().x, v:GetPos().y, v:GetPos().z + 83)
  26.  
  27. if (string.find(v:Nick(), "Pvt")) then
  28. local material = Material( "icons/altosrp/1.png")
  29. local size1 = 5
  30. local size2 = 5
  31. cam.Start3D(EyePos(), EyeAngles())
  32. render.SetMaterial( material )
  33. render.DrawSprite( pos, size1, size2 )
  34. cam.End3D()
  35. end
  36. end
  37. end
  38. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement