Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. if CLIENT then
  4. concommand.Add( "purgestart", function()
  5. if not (LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin()) then return end
  6. hook.Add("HUDPaint", "purge", function()
  7. draw.SimpleText("Purge Is Active", "CloseCaption_Bold", ScrW()-130, ScrH()/14, Color(255,255,255,200), TEXT_ALIGN_CENTER)
  8. end)
  9. LocalPlayer():EmitSound("sound/paft/start.wav")
  10. end)
  11.  
  12. concommand.Add( "purgeend", function()
  13. if not (LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin()) then return end
  14. hook.Add("HUDPaint", "purge", function()
  15. draw.SimpleText("Purge has now ended", "CloseCaption_Bold", ScrW()-130, ScrH()/14, Color(255,255,255,200), TEXT_ALIGN_CENTER)
  16. end)
  17. LocalPlayer():EmitSound("sound/paft/end.wav")
  18. timer.Simple(10,function()
  19. hook.Remove("HUDPaint", "purge")
  20. end)
  21. end)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement