castaño Posted October 16, 2013 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.
0xCiBeR Posted October 17, 2013 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 DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Bc# Posted October 18, 2013 Posted October 18, 2013 ¿De donde obtienes "msgType"? Bc Media Clan XPG Foro mtasa://104.223.20.159:21003
Alexs Posted October 18, 2013 Posted October 18, 2013 (edited) Debes tener iniciado algún recurso que cause ese problema. Edited October 18, 2013 by Guest Developer @ MYVAL
castaño Posted October 18, 2013 Author Posted October 18, 2013 ya solucione el problema gracias por participar
Recommended Posts