Guest User

!decals

a guest
Dec 1st, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. function ulx.decals( calling_ply, reason )
  2.         for k, v in pairs(player.GetAll()) do
  3.                 v:ConCommand("r_cleardecals")
  4.         end
  5.    
  6.         ulx.fancyLogAdmin( calling_ply, "#A cleared all decals because #s", command, target_plys, reason )
  7.        
  8.         return true
  9. end
  10. local decals= ulx.command( "Utility", "ulx decals", ulx.decals, "!decals" )
  11. decals:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
  12. decals:defaultAccess( ULib.ACCESS_ADMIN )
  13. decals:help( "Clears all decals." )
Advertisement
Add Comment
Please, Sign In to add comment