Jump to content

Search the Community

Showing results for tags 'ooc'.

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. local sx,sy = guiGetScreenSize () local chatData = getChatboxLayout() local x, y = sx/2-50, sy-180 local oocState = true local maxLines = 9 local oocMessages = {} local font = "default-bold" local _,scale = chatData["chat_scale"] local bg = {chatData["chat_color"]} local lines = chatData["chat_lines"] -- local chatX,chatY = x,y local chatX,chatY = 0.015625*sx,16 + 15*lines + 25 addEventHandler ("onClientRender",getRootElement(), function () if getElementData(localPlayer, "loggedin") then if oocState and getElementData(localPlayer, "enableall") then chatX, chatY = exports.sas_hud:getNode(11, "x"), exports.sas_hud:getNode(11, "y") dxDrawText("OOC Chat (Kikapcsoláshoz /togooc | Takarítás: /co)",chatX+1,chatY+1,0,0,tocolor(0,0,0),1,font) dxDrawText("OOC Chat (Kikapcsoláshoz /togooc | Takarítás: /co)",chatX,chatY,0,0,tocolor(205,205,205),1,font) for k,v in ipairs(oocMessages) do local tx,ty = chatX,chatY + (maxLines+2)*15 - k*15 dxDrawText(v,tx+1,ty+1,0,0,tocolor(0,0,0),1,font) dxDrawText(v,tx,ty,0,0,tocolor(205,205,205),1,font) end end end end ) addEvent ("onOOCMessageSend",true) addEventHandler ("onOOCMessageSend",getRootElement(), function (message) local player = source local int,dim = getElementInterior (player),getElementDimension(player) if int == getElementInterior(localPlayer) and dim == getElementDimension(localPlayer) then local length = #oocMessages if #oocMessages >= maxLines then table.remove (oocMessages,maxLines) end local text = message table.insert (oocMessages,1,text) outputConsole ("[OOC]"..text) end end ) sziasztok azt szeretném megcsinálni hogy ooc-chat-en az adminnak mutatssa a színét/rangját pl ((SzuperAdmin Fory: példa)) és az ooc egybe van az ic-chattal 3 lua van. server.lua ooc.lua client.lua hogy tudnám oda be írni azt hogy ha adminszoliba vagyok, vagy nem vagyok adminszoliba, de színes a ooc ((SzuperAdmin Fory: példa)) a fenti az az ooc.lua
×
×
  • Create New...