Search the Community

Showing results for tags 'chat'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 40 results

  1. Gostaria de saber porque, está aparecendo duas mensagens, após digitar, aparece uma do Freeroam, e outra com a Tag que coloquei, quando dou debuscript 3, aparece que está dando erro na linha 1208 do fr_client.lua, e a linha 442 do gui.lua, gostaria de esclarecer este erro. Fica assim: #Death!^: Este erro aqui! ⟦ Đono ⟧ : #Death!^: Este erro aqui!
  2. Hello everyone, I want to changes in chat. As you know when players write something on the server there is a log chat side. [MTA-NickName] : [message] Siberhecy : Hello everybody! I want to customization it, i need to find default chat script? Where is it? I want to type MTA-NickName as real database nickname.. To do this i need find real/default chat script or other way? Thanks, have a nice forum
  3. Error: [2017-12-28 09:08:30] WARNING: chat/server.lua:44: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] [2017-12-28 09:08:30] WARNING: chat/server.lua:45: Bad argument @ 'getPlayerName' [Expected element at argument 1, got nil] [2017-12-28 09:08:30] WARNING: chat/server.lua:55: Bad argument @ 'addEventHandler' [Expected function at argument 3, got none] Code: local chat_tavolsag = 100 function onChat(player, _, msg) local X, Y, Z = getElementPosition(player) local nev = getPlayerName(player) for _, v in ipairs(getElementsByType("player")) do if messageType == 0 then if isPlayerInRangeOfPoint(v, X, Y, Z, chat_tavolsag) then outputChatBox("".. nev .." mondja: ".. msg .."", v, 255, 255, 255, true) end end end end addEventHandler("onPlayerChat", getRootElement(), onChat(player, _, messsage)) Please help, i want a local chat.
  4. Eu escrevo no chat do jogo mais não aparece o que eu escrevo,Não consigo dar /assalto entre outos tambêm
  5. ..this is not the full code from my nametag: when i press 'T', the chaticon appear on everybody.. how to fix this? i want, when a player, or me press 'T', the ballon show just on the player, or on me, not on everyplayers... sorry for my terrible english .. :c
  6. Hello I have a nametag script. And i have a chat-icon script too. But i want add the chat-icon thing to nametag script, above the player nametag. And do not appear for me, just another players. This is possible? If yes, how? Sorry for my bad english..
  7. Hy, please help me I use "tagflood" script and I want to build another script ("chatfilter") Because it can not be used separately Because Since it appears twice in chatbox message. This is my "tagflood" script: time = {} muted = {} words = {} Repeat = {} function chatbox(text, msgtype) local r,g,b = getPlayerNametagColor(source) local name = getPlayerName(source) local accountname = getAccountName (getPlayerAccount(source)) local UpdateTime = get("UpdateTime")*1000 local TimeOfMute = get("TimeOfMute")*1000 local Chances = get("ChancesOfRepetitions") if (msgtype == 0) then if get("AntiRepeatSystem") == "true" then if isTimer(time[source]) and words[source] == text then local r, e, t = getTimerDetails(time[source]) local sec = r/1000 Repeat[source] = Repeat[source] + 1 outputChatBox("Ne Ismételd Magad! (No Flood)", source,255,0,0,true) cancelEvent() if Repeat[source] >= tonumber(Chances) then if isPlayerMuted(source) then Repeat[source] = 0 return end setPlayerMuted(source, true) Repeat[source] = 0 realTime = TimeOfMute/1000 muted[source] = setTimer(function(source) setPlayerMuted(source, false) muted[source] = nil end,TimeOfMute,1,source) end return end words[source] = text Repeat[source] = 0 time[source] = setTimer(function(source) time[source] = nil words[source] = nil Repeat[source] = 0 end ,UpdateTime,1,source) end if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("TarsTulajdonosGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("TarsTulajdonosTagColor").."["..get("TarsTulajdonosTag").."] #333333|BM| "..RGBToHex(0,255,255)..name..": "..get("TarsTulajdonosTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("TarsTulajdonosTag").."] " .. getPlayerName ( source ).. ": " .. text) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("AdminGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("AdminTagColor").."["..get("AdminTag").."] #333333|BM| "..RGBToHex(0,255,255)..name..": "..get("AdminTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("AdminTag").."] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("ModeratorGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("ModeratorTagColor").."["..get("ModeratorTag").."] #333333|BM| "..RGBToHex(0,255,255)..name..": "..get("ModeratorTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("ModeratorTag").."] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("KisModeratorGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("KisModeratorTagColor").."["..get("KisModeratorTag").."] #333333|BM| "..RGBToHex(0,255,255)..name..": "..get("KisModeratorTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("KisModeratorTag").."] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("TulajdonosGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("TulajdonosTagColor").."["..get("TulajdonosTag").."] #333333|BM| "..RGBToHex(0,255,255)..name..": "..get("TulajdonosTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("TulajdonosTag").."] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("VIP1GroupACLName") ) ) then cancelEvent() outputChatBox(""..get("VIP1TagColor")..""..get("VIP1Tag").." "..RGBToHex(255,255,255)..name..": "..get("VIP1TalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( ""..get("VIP1Tag").." " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("VIP2GroupACLName") ) ) then cancelEvent() outputChatBox(""..get("VIP2TagColor")..""..get("VIP2Tag").." "..RGBToHex(255,255,255)..name..": "..get("VIP2TalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( ""..get("VIP2Tag").." " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("VIP3GroupACLName") ) ) then cancelEvent() outputChatBox(""..get("VIP3TagColor")..""..get("VIP3Tag").." "..RGBToHex(255,255,255)..name..": "..get("VIP3TalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( ""..get("VIP3Tag").." " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("VIPBMGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("VIPBMTagColor")..""..get("VIPBMTag").." #333333|BM| "..RGBToHex(255,255,255)..name..": "..get("VIPBMTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( ""..get("VIPBMTag").." " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("BMGroupACLName") ) ) then cancelEvent() outputChatBox(""..get("BMTagColor")..""..get("BMTag").." "..RGBToHex(255,255,255)..name..": "..get("BMTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( ""..get("BMTag").." " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( get("EveryoneGroupACLName") ) ) then cancelEvent() if isGuestAccount ( getPlayerAccount ( source ) ) then outputChatBox(""..get("GuestTagColor").."["..get("GuestTag").."] "..RGBToHex(r,g,b)..name..": "..get("GuestTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("GuestTag").."] " .. getPlayerName ( source ).. ": " .. text ) else outputChatBox(""..get("LoginTagColor")..""..RGBToHex(r,g,b)..name..": "..get("LoginTalkColor")..""..text, getRootElement(),0,0,0,true) outputServerLog( "["..get("LoginTag").."] " .. getPlayerName ( source ).. ": " .. text ) end end end end addEventHandler("onPlayerChat", getRootElement(), chatbox) function stop ( ) for _,v in ipairs(getElementsByType("player")) do if isTimer(muted[v]) then setPlayerMuted(v, false) startResource ( source ) stopResource ( source ) end end end addEventHandler ( "onResourceStop", resourceRoot, stop ) function saveData ( ) local serial = getPlayerSerial ( source ) if isTimer(muted[source]) then local r, e, t = getTimerDetails(muted[source]) setElementData(resourceRoot,serial,r) end end addEventHandler ( "onPlayerQuit", getRootElement(), saveData ) function getData( ) local serial = getPlayerSerial ( source ) local dataSystem = tonumber(getElementData(resourceRoot,serial)) or false if dataSystem == false then return end if isPlayerMuted(source) then return end if get("AntiRepeatSystem") == "false" then return end if dataSystem < 1 then setElementData(resourceRoot,serial,false) return end local timeData = dataSystem/1000 setPlayerMuted(source, true) muted[source] = setTimer(function(source) setPlayerMuted(source, false) setElementData(resourceRoot,serial,false) muted[source] = nil end,dataSystem,1,source) end addEventHandler ( "onPlayerJoin", getRootElement(), getData ) 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 if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end In this I want to incorporate this swearWords = { ":O", ":~", "piss", "bitch", "ass", "tard", ":O", "nazi", "fack", "fock", "cock", "pussy", "fack", "gay", "lesbian", "whore", ":O", ":O", ":O", ":O", } -- Intercept chat messages addEventHandler("onPlayerChat",getRootElement(), function(msg,type) -- Only affect normal messages if type == 0 then -- Cancel output cancelEvent() -- Clean up the message from any bad words local new = "" local iter = 0 for word in msg:gmatch("%S+") do iter = iter + 1 for i,swr in ipairs(swearWords) do local src = word:lower():gsub("%s","") local src = src:gsub("#%x%x%x%x%x%x","") local src = src:gsub("%c","") local src = src:gsub("%p","") local pat = swr:lower():gsub("%s","") if src:find(pat) then local replaceString = "" for x=1,word:gsub("#%x%x%x%x%x%x",""):len() do replaceString = replaceString.."*" end word = word:gsub(word,replaceString) end end if iter == 1 and word:len() > 2 then word = word:gsub("%a",string.upper,1) end new = new..word.." " end if new ~= "" then msg = new end -- Get appropriate team colors and output the clean message local pTeam = getPlayerTeam(source) if pTeam then local r,g,b = getTeamColor(pTeam) local hr,hg,hb = decToHex(r),decToHex(g),decToHex(b) local color = "#"..hr..hg..hb outputMessage(color..getPlayerName(source),msg) else outputMessage(getPlayerName(source),msg) end end end) -- Output preformatted message to the chatbox function outputMessage(author,message) outputChatBox(author..": #E0D0B0"..message,getRootElement(),255,255,255,true) end -- Convert number from decimal to hexadecimal function decToHex(num) return string.format("%02X",num) end So that it's all together and one chatbox Thanks
  8. Olha oque está acontecendo , apareceu isso depois dessa atualização do mta
  9. my client: function coronaa() triggerServerEvent ("szoveg", root, getLocalPlayer()) end addEventHandler ( "onClientMarkerHit", ajtomegilyenek, coronaa ) and the server: addEvent( "szoveg", true ) addEventHandler( "szoveg", root, function(thePlayer) outputChatBox("Text", thePlayer, r,g,b, true) end) how to fix this?
  10. local function ujteamsay(message, messageType) if messageType == 2 then cancelEvent() outputChatBox("(CSOPORT) "..getPlayerName(source)..": #FFffFF"..message, root, red, green, blue, true ) end end addEventHandler("onPlayerChat", root, ujteamsay) how to fix this? i want just team mates see the message.. *sorry for my very bad English :c*
  11. So, my problem is, that i made a GUI, and when it opens, it opens for all the players online and the setElementFrozen affects every player, etc. The GUI is attached to markers, so when you enter the marker, the GUI pops up. But it pops up for everyone. If you're not in the ACL group, you're not allowed to use the GUI, so it closes, when you press a button and outputs a message that you're not allowed to use it. I have the same problem with outputChatBox. The message appears for everyone. So my question is, that how could is make the GUI appear and affect only the actual user, and the outputChatBox appear only for the player i want? If you need the Scripts, just let me know and I'll instert it here. Thanks for the help.
  12. Всем привет, есть вопрос. В моём ресурсе после загрузки файлов, люди получают фоновую картинку и Окно GUI. Фоновая картинка грузится таким образом: welcome_gui = guiCreateStaticImage(0, 0, screenW, screenH, "welcome.jpg", false) Далее появляется gui window где форма входа. При этом картинка на заднем фоне перекрывает чат, где выводятся сообщения об ошибках при вводе данных. Как сделать картинку на заднем плане от чата? Спасибо, а то его совсем не видно за ней.
  13. CertER

    Chat Problem

    Hi all. So, I have a problem with global chat in game. On my server only members with acl group Admin, Moderator, SModerator and VIP can use global chat. I don't know why but normal players can't use chat. Need Help. Any Ideas? PS. Please of fast answer. Thanks. -CertER
  14. function checkAFKPlayers() for index, source in ipairs(getElementsByType("player")) do if (getPlayerIdleTime(source) > 1000) then setElementDimension ( source, 50) setElementAlpha(source, 50) outputChatBox("#004B00[DDC - Afk] #FFffFFNem mozogtál 2 percig, afk módba léptél! Kikapcsoláshoz mozdulj meg!", root, 255,000,000, true) elseif isElementMoving(source) then setElementAlpha(source, 255) setElementDimension ( source, 0) outputChatBox("#004B00[DDC - Afk] #FFffFFKiléptél az afk módból!", root, 255,000,000, true) end end end setTimer(checkAFKPlayers, 1000, 0) function isElementMoving ( theElement ) if isElement ( theElement ) then local x, y, z = getElementVelocity( theElement ) return x ~= 0 or y ~= 0 or z ~= 0 end return false end how to fix this? i want once outputChatbox
  15. Hi. I'm trying to create script which doing outputChatBox when GUY from name/serial will say smth on chat box. My code: serialhaza = { ["2B2BEE3C8B7C95BA25F714E7867557F2"] = true } function nahaza(thePlayer) local hazik = string.find(getPlayerName(thePlayer), "Haze", 1, true) if hazik or serialhaza[getPlayerSerial(thePlayer)]then outputChatBox("haz ciapaty pedal",thePlayer) end end addEventHandler("onPlayerChat",root,nahaza)