Other Languages Moderators Cuervo_fi Posted January 10, 2013 Other Languages Moderators Posted January 10, 2013 Hola, quisiera saber si me pueden resolver una duda que tengo.. Necesito saber si el chat del mta es cosa por default o es un recurso, también quisiera saber que recurso contiene el comando '/me' que es para mandar msj por chat.
Other Languages Moderators Cuervo_fi Posted January 10, 2013 Author Other Languages Moderators Posted January 10, 2013 este es para que cuando los usuarios de los teams especificados tengan un tag en el chat principal. quisiera saber si se podria hacer esto mismo pero en el chat '/me' function chatbox(text, msgtype) local root = getRootElement() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then cancelEvent(true) outputChatBox("[Admin] #FFFFFF" .. name .."#FFFFFF:#F2EEC2 " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [Admin] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then cancelEvent(true) outputChatBox(name .. "#FFFFFF:#F2EEC2 " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: " .. name .. ": " .. text) end elseif (msgtype == 2) then end end addEventHandler("onPlayerChat", root, chatbox) function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end
Other Languages Moderators Cuervo_fi Posted January 10, 2013 Author Other Languages Moderators Posted January 10, 2013 haha ok, no me fije, gracias.
Recommended Posts