Jump to content

ajuda com mensagem


Recommended Posts

como faz pra quando o staff ativar a proteção, apareça uma mensagem so para ele dizendo que ele ativou a proteção

function togglestaffMode(thePlayer)
	if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff")) then
    if getElementData(thePlayer,"invincible") then
        setElementData(thePlayer,"invincible",false)

    else
        setElementData(thePlayer,"invincible",true)


        end
    end
end
addCommandHandler("pro",togglestaffMode)

 

Link to comment
function togglestaffMode(thePlayer)
	if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff")) then
    	if getElementData(thePlayer,"invincible") then
        	setElementData(thePlayer,"invincible",false)
        	outputChatBox("Sua mensagem quando o staff sair de modo deus", thePlayer, 255, 255, 255, true)
    	else
        	setElementData(thePlayer,"invincible",true)
  			outputChatBox("Sua mensagem quando o staff entrar no modo deus", thePlayer, 255, 255, 255, true)
        end
    end
end
addCommandHandler("pro", togglestaffMode)


Teste assim meu amigo.
 

Usei somente a função outputChatBox

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...