Jump to content

Invisivel


Recommended Posts

Queria Remover O ID De Cima Da Cabeça E Não Para Saber Arrumar Se Poder Arrumar E Manda Pra Eu Copiar E Cola No Lugar Desse Ai É '' server_S.lua ''

function toggleInvisibility(thePlayer)
	if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff01")) then
		local enabled = getElementData(thePlayer, "invisible")
		if (enabled == true) then
			setElementAlpha(thePlayer, 255)
			setElementData(thePlayer, "reconx", false)
			outputChatBox (" -> Você desativou a invisibilidade", thePlayer)
			setElementData(thePlayer, "invisible", false)
		elseif (enabled == false or enabled == nil) then
			setElementAlpha(thePlayer, 0)
			setElementData(thePlayer, "reconx", true)
			outputChatBox (" -> Você ativou a invisibilidade", thePlayer)
			setElementData(thePlayer, "invisible", true)
		else
			
		end
		else
		outputChatBox ("Acesso negado", thePlayer)
	end
end
addCommandHandler("invisivel", toggleInvisibility)
addCommandHandler("inv", toggleInvisibility)

.

 

Edited by gwjasonbr
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...