Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("alters/scoresave.lua")
- ulx.setCategory( "Chat" )
- function ulx.cc_pmute( ply, command, argv, args )
- if #argv < 1 then
- ULib.tsay( ply, ulx.LOW_ARGS, true )
- return
- end
- local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
- if not targets then
- ULib.tsay( ply, err, true )
- return
- end
- for _, v in ipairs( targets ) do
- ulx.logUserAct( ply, v, "#A permanently muted #T" )
- v.gimp = 2
- SetSpecificInfo(v, "Muted", "1")
- end
- end
- ulx.concommand( "pmute", ulx.cc_pmute, "<user(s)> - Permanently mutes a player.", ULib.ACCESS_ADMIN, "!pmute", _, ulx.ID_PLAYER_HELP )
- ulx.addToMenu( ulx.ID_MCLIENT, "Permamute", "ulx pmute" )
- function ulx.cc_unpmute( ply, command, argv, args )
- if #argv < 1 then
- ULib.tsay( ply, ulx.LOW_ARGS, true )
- return
- end
- local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
- if not targets then
- ULib.tsay( ply, err, true )
- return
- end
- for _, v in ipairs( targets ) do
- ulx.logUserAct( ply, v, "#A ungimped/unmuted #T" )
- v.gimp = nil
- SetSpecificInfo(v, "Muted", "0")
- end
- end
- ulx.concommand( "ungimp", ulx.cc_unpmute, "<user(s)> - Ungimps a player.", ULib.ACCESS_ADMIN, "!ungimp", _, ulx.ID_PLAYER_HELP )
- ulx.concommand( "unmute", ulx.cc_unpmute, "<user(s)> - Unmutes a player.", ULib.ACCESS_ADMIN, "!unmute", _, ulx.ID_PLAYER_HELP )
- ulx.concommand( "unpmute", ulx.cc_unpmute, "<user(s)> - Removes a permamute status and unmutes a player.", ULib.ACCESS_ADMIN, "!unpmute", _, ulx.ID_PLAYER_HELP )
- ulx.addToMenu( ulx.ID_MCLIENT, "Unpmute", "ulx unpmute" )
- function ulx.cc_pgag( ply, command, argv, args )
- if #argv < 1 then
- ULib.tsay( ply, ulx.LOW_ARGS, true )
- return
- end
- local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
- if not targets then
- ULib.tsay( ply, err, true )
- return
- end
- for _, v in ipairs( targets ) do
- ulx.logUserAct( ply, v, "#A permanently gagged #T")
- umsg.Start( "ulx_gag", v )
- umsg.Bool( true )
- umsg.End()
- SetSpecificInfo(v, "Gagged", "1")
- end
- end
- ulx.concommand( "pgag", ulx.cc_pgag, "<user(s)> - permanently gags user(s) (Disable voice/mic input).", ULib.ACCESS_ADMIN, "!pgag", _, ulx.ID_PLAYER_HELP )
- ulx.addToMenu( ulx.ID_MCLIENT, "Permagag", "ulx pgag" )
- function ulx.cc_unpgag( ply, command, argv, args )
- if #argv < 1 then
- ULib.tsay( ply, ulx.LOW_ARGS, true )
- return
- end
- local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
- if not targets then
- ULib.tsay( ply, err, true )
- return
- end
- for _, v in ipairs( targets ) do
- ulx.logUserAct( ply, v, "#A ungagged #T" )
- umsg.Start( "ulx_gag", v )
- umsg.Bool( false )
- umsg.End()
- SetSpecificInfo(v, "Gagged", "0")
- end
- end
- ulx.concommand( "ungag", ulx.cc_unpgag, "<user(s)> - Ungags user(s).", ULib.ACCESS_ADMIN, "!ungag", _, ulx.ID_PLAYER_HELP )
- ulx.concommand( "unpgag", ulx.cc_unpgag, "<user(s)> - Removes a permagag status and unmutes a player.", ULib.ACCESS_ADMIN, "!unpgag", _, ulx.ID_PLAYER_HELP )
- ulx.addToMenu( ulx.ID_MCLIENT, "Unpgag", "ulx unpgag" )
Advertisement
Add Comment
Please, Sign In to add comment