Guest User

Untitled

a guest
Jul 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local function putoutallfires(ply)
  2.     if not ply:IsAdmin() then
  3.         Notify(ply, 1, 5, "Only admins can do this!")
  4.     else
  5.         for k, v in pairs(ents.FindByClass('ent_fire')) do
  6.             v:Remove()
  7.         end
  8.     end
  9.    
  10.     for k,v in pairs(ents.FindByClass('ent_fire')) do
  11.         NotifyAll(1, 4, "All fires on the map have been extinguished to presurve gameplay.")
  12.     end
  13. end
  14. return ""
  15. end
  16. AddChatCommand( "/putoutfires", putoutallfires )
Add Comment
Please, Sign In to add comment