Moderators Cuervo_fi Posted January 10, 2013 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. Discord: cuervo_fi#9549
Castillo Posted January 10, 2013 Posted January 10, 2013 El chat es parte del MTA, tambien el "/me". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators Cuervo_fi Posted January 10, 2013 Author 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 Discord: cuervo_fi#9549
Castillo Posted January 10, 2013 Posted January 10, 2013 Si, pone otro con el "msgtype" = 1. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators Cuervo_fi Posted January 10, 2013 Author Moderators Posted January 10, 2013 haha ok, no me fije, gracias. Discord: cuervo_fi#9549
Recommended Posts