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 43 results

  1. Hello everyone Today I've finished my new script : GCSS Details about this script : This is a system which allows you to chatting with other players on another server So when you open the panel, you will see on the left : The players on your current server On the right it's the Messages box, You will receive the messages from the players on your server and the players on the second server And in : Manage GCSS Tab which is for admins you will see a place to update admin message & Check new updates of the script Also you've a smiles in the script : Emoji window Note : Minimum MTA:SA Version to run all features is : 1.5.4 . _________________________________________________________________________________________________ Other Features : You can customize your messages color, All players will see the new color on each servers ( Default color is White ). You can press on "Do Not Disturb[ Silent Mode ]" checkBox to mute the alerts of the system and chatBox messages. _________________________________________________________________________________________________ Tutorial about how to use the script : Note : Do not edit the resource name, to avoid issues. 1- Write this code in a blank space in the ACL file for each servers : <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.GCSS_Professional" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="resource.GCSS_Professional.http" access="true" /> </acl> 2- Go to "Settings.lua" file and edit the following : adminGroup_Permissions = 'Admin'; -- ***Edit this group name to your Admins group to give full permissions / leave if it's the same name. ManageGCSS_AccessTable = { 'Console', 'Admin', 'GCSS_Manager' }; -- ***Edit : This is the groups which can access "Manage GCSS" tab. local server_ip = '127.000.0.000:22005'; -- ***Put the server ip & port for each server you want to communicate with. -- Do not edit the codes below. addEvent( 'onServerSendMessage', true ) addEventHandler( 'onServerSendMessage', root, function( message ) local name = getPlayerName( source ) local data = getElementData( source, 'GCSS:MessageColor' ) local message = '[onPort:'..getServerPort( )..'][ '..name..' ] : '..message callRemote( server_ip, 'default', 10, 10000, getResourceName( getThisResource( ) ), 'SendGlobalMessage', callBack, message, data[1], data[2], data[3] ) triggerClientEvent( root, 'onClientReceiveMessage', source, message, data[1], data[2], data[3] ) end ) Note : You need to install the resource on each servers by use the following : On the first server : Write the ip & port of the second server & Run the resource On the second server : Write the ip & port of the first server & Run the resource _________________________________________________________________________________________________ Note : You can found the key to open the script in : "OpenKey.lua" file. _________________________________________________________________________________________________ Some pictures : Main panel & Customize panel & Emoji panel __________ Manage GCSS Tab _________________________________________________________________________________________________ Note : All shared GCSS Scripts are Demo, To Purchase full open source script or get a special edits : Contact the programmer[Me] on E-mail : ka1888868@gmail.com or us.luapro@gmail.com . *Purchase Price : $5 *Current version is : 1.0.0 *Download : Press on me :). Note : If you have any issues, please write a comment. If you have a new ideas to develop the script, please write a comment on the topic Do not forget to rate the script by percentage% in a comment Thanks.
  2. Hello have local chat in freeroam server I am new at this I try to make it look in one dimension. For example, if I am in dimension 5, only those in dimension 5 can see it Help please chat_range=100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"u","down","chatbox","Local") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","Local") end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function onChat(player,_,...) local px,py,pz=getElementPosition(player) local dm = getElementDimension(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getPlayerNametagColor(player) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(Local) "..nick..": "..msg,v,r,g,b,true) end -- outputServerLog("(Local) "..nick..": "..msg,true) end end addCommandHandler("Local",onChat)
  3. Eu tenho uma hud modificada em meu servidor, mas tem momentos que a original aparece atrás da nova, tipo quando abro alguma coisa na tela como algum painel e etc, eu tenho um cinema, se eu abro ele a hud vem tmb, mas mesmo removendo cinema do servidor ela vem em outros scripts, as vezes o chat some também com isso, e tipo digamos que eu dei restart no painel de login, eu vou bugar se eu clicar em não logar e jogar como guest e o chat vai sumir. Resumindo ele some ou a hud antiga volta, e não achei nada que ativasse a antiga denovo, tanto que usei o prórpio tópico de ajuda daqui e fiz um script de showhud... mas é apenas para login, oq n me resolve pq quando faço login é normal. Obrigado a quem souber me ajudar!
  4. Pessoal é o seguinte o meu sistema de "ajudante" não está funcionando corretamente e eu não sei como corrigir isso Eu não quero que o player que perguntou no chat tenha que escrever a frase inteira igual como está escrito no script, e sim somente uma palavra por exemplo " Raidcall " e Já aparece o ajudante, quando eu coloco somente a palavra raidcall o player teria que escrever somente raidcall para funcionar e não poderia escrever nada junto por exemplo "Qual o raidcall do servidor ?" Mensagens = { ["qual o raidcall do servidor"] = true, ["qual o raidcall"] = true } addEventHandler("onPlayerChat", root) function(msg, msgType) if Mensagens[msg] then exports["notices"]:addNotification(source,"[BOT]Igor diz : Você Pode Entrar Para Alguma Gang/Corp Em Nosso Raidcall",'info'); -- Ignorem isso é de um sistema de notificação outputChatBox("#ff0000[BOT]#bebebeIgor "..getPlayerName(source).." #bebebeNosso Raidcall é #ff0000 ", root,255,255,255,true) end end Obrigado =)
  5. 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!
  6. 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.
  7. Eu escrevo no chat do jogo mais não aparece o que eu escrevo,Não consigo dar /assalto entre outos tambêm
  8. ..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
  9. 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..
  10. 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
  11. Olha oque está acontecendo , apareceu isso depois dessa atualização do mta
  12. 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?
  13. 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*
  14. 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.
  15. Всем привет, есть вопрос. В моём ресурсе после загрузки файлов, люди получают фоновую картинку и Окно GUI. Фоновая картинка грузится таким образом: welcome_gui = guiCreateStaticImage(0, 0, screenW, screenH, "welcome.jpg", false) Далее появляется gui window где форма входа. При этом картинка на заднем фоне перекрывает чат, где выводятся сообщения об ошибках при вводе данных. Как сделать картинку на заднем плане от чата? Спасибо, а то его совсем не видно за ней.
  16. 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
  17. 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
  18. 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)