Jump to content

cancelarchat


castaño

Recommended Posts

necito bloquear el chat para crear un tag en el admin pero el código que tengo no me funciona, este código:

  
  
if (msgtype == 0) and  isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
   cancelEvent(true) 
   outputChatBox("#ff0000*[Admin] "..RGBToHex(getTeamColor(team))..name..": "..textcolor..text, getRootElement(), 255,255,255, true)     
   outputServerLog(name .. ": " .. text)  
end 
  
  

no me sale error, lo pruebo con msgType == 2 y si me funciona, me bloque el chat entre teams pero para msgType == 0 no me bloque el chat , sale el tag de admin pero también sale el chat por aparte.

Link to comment
  • MTA Team

Asi seria..Igual no postiaste tu script entero..

  
  
if (msgtype == 0) and  isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
   cancelEvent() 
   outputChatBox("#ff0000*[Admin] "..RGBToHex(getTeamColor(team))..name..": "..textcolor..text, getRootElement(), 255,255,255, true)    
   outputServerLog(name .. ": " .. text) 
end 
  
  

Link to comment
  • Recently Browsing   0 members

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