castaño Posted October 16, 2013 Share Posted October 16, 2013 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 0xCiBeR Posted October 17, 2013 MTA Team Share Posted October 17, 2013 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
Bc# Posted October 18, 2013 Share Posted October 18, 2013 ¿De donde obtienes "msgType"? Link to comment
Alexs Posted October 18, 2013 Share Posted October 18, 2013 (edited) Debes tener iniciado algún recurso que cause ese problema. Edited October 18, 2013 by Guest Link to comment
castaño Posted October 18, 2013 Author Share Posted October 18, 2013 ya solucione el problema gracias por participar Link to comment
Recommended Posts