Auto cloak in noclip mode

I’ve been trying to make a script but it doesn’t work, help could be nice:

  • Thanks.

Are you using ulx? If so:



function ulx.noclip( calling_ply, target_plys )
	if not target_plys[ 1 ]:IsValid() then
		Msg( "You are god, you are not constrained by walls built by mere mortals.
" )
		return
	end

	local affected_plys = {}
	for i=1, #target_plys do
		local v = target_plys[ i ]

		if v.NoNoclip then
			ULib.tsayError( calling_ply, v:Nick() .. " can't be noclipped right now.", true )
		else
			if v:GetMoveType() == MOVETYPE_WALK then
				v:SetMoveType( MOVETYPE_NOCLIP )
                                ULib.invisible( v, true, 255 )
				table.insert( affected_plys, v )
			elseif v:GetMoveType() == MOVETYPE_NOCLIP then
				v:SetMoveType( MOVETYPE_WALK )
                                ULib.invisible( v, false, 255 )
				table.insert( affected_plys, v )
			else -- Ignore if they're an observer
				ULib.tsayError( calling_ply, v:Nick() .. " can't be noclipped right now.", true )
			end
		end
	end
end
local noclip = ulx.command( CATEGORY_NAME, "ulx noclip", ulx.noclip, "!noclip" )
noclip:addParam{ type=ULib.cmds.PlayersArg, ULib.cmds.optional }
noclip:defaultAccess( ULib.ACCESS_ADMIN )
noclip:help( "Toggles noclip on target(s)." )

This should work.

and I suggest you get a better understanding of what “for k, v in ipairs(player.GetAll())” really means.




local function NoclipCloak( ply )

	if !ply:GetMoveType() == MOVETYPE_NOCLIP then
		ply:SetColor(Color(0, 0, 0, 0))
	else
		ply:SetColor(Color(255,255,255,255))
	end
return true
end
hook.Add("PlayerNoClip", "NoclipCloak", NoclipCloak)


Also, you wouldn’t believe how many times I wrote nipple instead of noclip.

Do i have to place it under lua/autorun?

Think you are better off simply editing ULX noclip command
Go to addons/ulx/lua/ulx/modules/sh/util.lua

Ctrl + F > Noclip

Make it look like this

http://arcaneex.nu/screens/Scarness020.png

Just wondering, why is it an image instead of


 ?

Well you should answer for what purpose this is so we can specify the spoon feeding

Using a program that uploads it to my webhost using FTP and auto copies the link to my clipboard so I use it sometimes instead that’s all.

Your steam web API key is on this server, I would work on your setup.

I don’t really mind/care, I see nothing that can be done with the key that can possible affect me in any way really.

Well there’s also all the screenshots you took, in which you are really lucky those programs don’t show the password or show stars, otherwise I would have just gone in and fucked up your webhost and dedicated servers (if I were attempting to troll you and not help you.)

Well even disabling indexing won’t help, so unless you have a better suggestion than to stop using the program all together I’m open to offers