Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- if CLIENT then
- concommand.Add( "purgestart", function()
- if not (LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin()) then return end
- hook.Add("HUDPaint", "purge", function()
- draw.SimpleText("Purge Is Active", "CloseCaption_Bold", ScrW()-130, ScrH()/14, Color(255,255,255,200), TEXT_ALIGN_CENTER)
- end)
- LocalPlayer():EmitSound("sound/paft/start.wav")
- end)
- concommand.Add( "purgeend", function()
- if not (LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin()) then return end
- hook.Add("HUDPaint", "purge", function()
- draw.SimpleText("Purge has now ended", "CloseCaption_Bold", ScrW()-130, ScrH()/14, Color(255,255,255,200), TEXT_ALIGN_CENTER)
- end)
- LocalPlayer():EmitSound("sound/paft/end.wav")
- timer.Simple(10,function()
- hook.Remove("HUDPaint", "purge")
- end)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement