Doongogar Posted September 7, 2021 Share Posted September 7, 2021 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
Other Languages Moderators androksi Posted September 7, 2021 Other Languages Moderators Share Posted September 7, 2021 Olá! Use a função outputChatBox. Link to comment
eqFoxim Posted September 8, 2021 Share Posted September 8, 2021 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now