Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ulx.administrate( calling_ply, should_revoke )
- if not should_revoke then
- calling_ply:GodEnable()
- else
- calling_ply:GodDisable()
- end
- if not should_revoke then
- ULib.invisible( calling_ply, true, 0 )
- else
- ULib.invisible( calling_ply, false, 0 )
- end
- if not should_revoke then
- calling_ply:SetMoveType( MOVETYPE_NOCLIP )
- else
- calling_ply:SetMoveType( MOVETYPE_WALK )
- end
- if not should_revoke then
- ulx.fancyLogAdmin( calling_ply, true, "#A is now administrating" )
- else
- ulx.fancyLogAdmin( calling_ply, true, "#A has stopped administrating" )
- end
- end
- local administrate = ulx.command( "Utility", "ulx administrate", ulx.administrate, { "!admin", "!administrate"}, true )
- administrate:addParam{ type=ULib.cmds.BoolArg, invisible=true }
- administrate:defaultAccess( ULib.ACCESS_SUPERADMIN )
- administrate:help( "Cloak yourself, noclip yourself, and god yourself." )
- administrate:setOpposite( "ulx unadministrate", { _, true }, "!unadministrate", true )
Add Comment
Please, Sign In to add comment