Jump to content

سؤال


Recommended Posts

السلام عليكم و رحمة الله و بركاتة

topbarchat بسالكم الحين انا بستخدم مود

بس بس بسير اي واحد دخل او طلع بجي من تحت انة دخل و طلع

مع العلم اني مطفي مود الدخو

و ما يكرر

بدي اياه يتم يكرر يعني لما يطلع اشي ما بعاود يطلع ما دام ما هو مبين

الحين هو مشفر

في مود غيرة

او اذا اصدار منة ما فية يلي قلت عنة

Link to comment

Function syntax (server):

bool sendClientMessage ( string message, player thePlayer [, int r=0, int g=0, int b=0, bool topBar=true, int time=8] ) 

#

Function syntax (client):

bool sendClientMessage ( string message [, int r=0, int g=0, int b=0, bool topBar=true, int time=8] ) 

#

exports['topbarchat']:sendClientMessage ( 'خرج اللاعب من السيرفر', plr, 0, 252, 255, true ) 

Link to comment
الاكواد موجودة أساسا ف المود ..

هذي الاكواد تضيفها للمود حقك عشان الرساله تطلع بالشريط!

كان ردي ع صاحب الموضوع مو ع تعليقك !

اكواد الدخول والخروج موجودة أساسا داخل مود topbarchat

Link to comment
الاكواد موجودة أساسا ف المود ..

هذي الاكواد تضيفها للمود حقك عشان الرساله تطلع بالشريط!

كان ردي ع صاحب الموضوع مو ع تعليقك !

اكواد الدخول والخروج موجودة أساسا داخل مود topbarchat

اهاا ، آسفينن ع اللقافه

^_^

Link to comment

بدل ما انزل كمان موضوع

كيف اخلي الكلام يجي بنص

انا سويتة يجي بس بجي كلو على الاتجاة نفسة

زي هيك

http://im64.gulfup.com/C4y3Nt.png

انا بدي

زي

topbarchat

يجي الكلام من النص و يروح على الاتجاهين

addEventHandler("onClientPreRender",root,  
  function() 
    dxDrawRectangle(screenX/4+(screenX/16),1*20-20,screenX/2-(screenX/16),20.0,tocolor(0,0,0,150),false) 
    local x, y, z = getElementPosition(localPlayer) 
    dxDrawText("    Local Player Name: #ff6400"..getPlayerName(localPlayer).."#ffffff | Zone: #ffff00"..getZoneName(x, y, z, false).."#ffffff (#ffff00"..getZoneName(x, y, z, true).."#ffffff)",screenX/4+(screenX/16),1*40-40,screenX/2-(screenX/16),20.0,tocolor(255, 255, 255, 255),1.0,"default-bold","left","center",false,false,false, true) 
    if #topChat >= 8 then table.remove(topChat, 1) end 
    for k, v in ipairs(topChat) do 
      dxDrawRectangle(screenX/4+(screenX/16),k*20,screenX/2-(screenX/16),20.0,tocolor(0,0,0,150),false) 
      dxDrawText("    "..v[1],screenX/4+(screenX/5),k*40,screenX/2-(screenX/16),20.0,tocolor(v[2],v[3],v[4],255),1.0,"default-bold","left","center",false,false,false, true) 
    end 
  end 
) 
  
function outputTopChat(message, r, g, b) 
  table.insert(topChat, { message, r, g, b }) 
  local thetime = getRealTime() 
  outputConsole("["..string.format("%.2d:%.2d:%.2d", thetime.hour, thetime.minute, thetime.second).."] "..message:gsub("#%x%x%x%x%x%x", "")) 
  setTimer(function() table.remove(topChat, 1) end, 60000, 1) 
end 
addEvent("outputTopChat", true) 
addEventHandler("outputTopChat", root, outputTopChat) 
  

Link to comment

جربء .

.. انا حاولت اعدل فيه من قبل ماضبط لكن جرب ذا

    addEventHandler("onClientPreRender",root, 
      function() 
        dxDrawRectangle(screenX/4+(screenX/16),1*20-20,screenX/2-(screenX/16),20.2,tocolor(0,0,0,150),false) 
        local x, y, z = getElementPosition(localPlayer) 
        dxDrawText("    Local Player Name: #ff6400"..getPlayerName(localPlayer).."#ffffff | Zone: #ffff00"..getZoneName(x, y, z, false).."#ffffff (#ffff00"..getZoneName(x, y, z, true).."#ffffff)",screenX/4+(screenX/16),1*40-40,screenX/2-(screenX/16),20.0,tocolor(255, 255, 255, 255),1.0,"default-bold","left","center",false,false,false, true) 
        if #topChat >= 8 then table.remove(topChat, 1) end 
        for k, v in ipairs(topChat) do 
          dxDrawRectangle(screenX/4+(screenX/16),k*20,screenX/2-(screenX/16),20.0,tocolor(0,0,0,150),false) 
          dxDrawText("    "..v[1],screenX/4+(screenX/16),k*20,screenX/2-(screenX/16),20.0,tocolor(v[2],v[3],v[4],255),1.0,"default-bold","left","center",false,false,false, true) 
        end 
      end 
    ) 
      
    function outputTopChat(message, r, g, b) 
      table.insert(topChat, { message, r, g, b }) 
      local thetime = getRealTime() 
      outputConsole("["..string.format("%.2d:%.2d:%.2d", thetime.hour, thetime.minute, thetime.second).."] "..message:gsub("#%x%x%x%x%x%x", "")) 
      setTimer(function() table.remove(topChat, 1) end, 60000, 1) 
    end 
    addEvent("outputTopChat", true) 
    addEventHandler("outputTopChat", root, outputTopChat) 
      
Link to comment
addEventHandler("onClientPreRender",root, 
      function() 
        dxDrawRectangle(screenX/4+(screenX/16),1*20-20,screenX/2-(screenX/16),20.0,tocolor(0,0,0,150),false) 
        local x, y, z = getElementPosition(localPlayer) 
        dxDrawText("    Local Player Name: #ff6400"..getPlayerName(localPlayer).."#ffffff | Zone: #ffff00"..getZoneName(x, y, z, false).."#ffffff (#ffff00"..getZoneName(x, y, z, true).."#ffffff)",screenX/4+(screenX/16),1*40-40,screenX/2-(screenX/16),20.0,tocolor(255, 255, 255, 255),1.0,"default-bold","left","center",false,false,false, true) 
        if #topChat >= 8 then table.remove(topChat, 1) end 
        for k, v in ipairs(topChat) do 
          dxDrawRectangle(screenX/4+(screenX/15),k*20,screenX/2-(screenX/17),20.0,tocolor(0,0,0,150),false) 
          dxDrawText("    "..v[1],screenX/4+(screenX/1),k*40,screenX/2-(screenX/1),20.0,tocolor(v[2],v[3],v[4],255),1.0,"default-bold","left","center",false,false,false, true) 
        end 
      end 
    ) 
      
    function outputTopChat(message, r, g, b) 
      table.insert(topChat, { message, r, g, b }) 
      local thetime = getRealTime() 
      outputConsole("["..string.format("%.2d:%.2d:%.2d", thetime.hour, thetime.minute, thetime.second).."] "..message:gsub("#%x%x%x%x%x%x", "")) 
      setTimer(function() table.remove(topChat, 1) end, 60000, 1) 
    end 
    addEvent("outputTopChat", true) 
    addEventHandler("outputTopChat", root, outputTopChat) 
      

Link to comment
addEventHandler("onClientPreRender",root, 
      function() 
        dxDrawRectangle(screenX/4+(screenX/16),1*20-20,screenX/2-(screenX/16),20.0,tocolor(0,0,0,150),false) 
        local x, y, z = getElementPosition(localPlayer) 
        dxDrawText("    Local Player Name: #ff6400"..getPlayerName(localPlayer).."#ffffff | Zone: #ffff00"..getZoneName(x, y, z, false).."#ffffff (#ffff00"..getZoneName(x, y, z, true).."#ffffff)",screenX/4+(screenX/16),1*40-40,screenX/2-(screenX/16),20.0,tocolor(255, 255, 255, 255),1.0,"default-bold","left","center",false,false,false, true) 
        if #topChat >= 8 then table.remove(topChat, 1) end 
        for k, v in ipairs(topChat) do 
          dxDrawRectangle(screenX/4+(screenX/15),k*20,screenX/2-(screenX/17),20.0,tocolor(0,0,0,150),false) 
          dxDrawText("    "..v[1],screenX/4+(screenX/1),k*40,screenX/2-(screenX/1),20.0,tocolor(v[2],v[3],v[4],255),1.0,"default-bold","left","center",false,false,false, true) 
        end 
      end 
    ) 
      
    function outputTopChat(message, r, g, b) 
      table.insert(topChat, { message, r, g, b }) 
      local thetime = getRealTime() 
      outputConsole("["..string.format("%.2d:%.2d:%.2d", thetime.hour, thetime.minute, thetime.second).."] "..message:gsub("#%x%x%x%x%x%x", "")) 
      setTimer(function() table.remove(topChat, 1) end, 60000, 1) 
    end 
    addEvent("outputTopChat", true) 
    addEventHandler("outputTopChat", root, outputTopChat) 
      

هريسةة

ّ!

Link to comment
addEventHandler("onClientPreRender",root, 
      function() 
        dxDrawRectangle(screenX/4+(screenX/16),1*20-20,screenX/2-(screenX/16),20.0,tocolor(0,0,0,150),false) 
        local x, y, z = getElementPosition(localPlayer) 
        dxDrawText("    Local Player Name: #ff6400"..getPlayerName(localPlayer).."#ffffff | Zone: #ffff00"..getZoneName(x, y, z, false).."#ffffff (#ffff00"..getZoneName(x, y, z, true).."#ffffff)",screenX/4+(screenX/16),1*40-40,screenX/2-(screenX/16),20.0,tocolor(255, 255, 255, 255),1.0,"default-bold","left","center",false,false,false, true) 
        if #topChat >= 8 then table.remove(topChat, 1) end 
        for k, v in ipairs(topChat) do 
          dxDrawRectangle(screenX/4+(screenX/15),k*20,screenX/2-(screenX/17),20.0,tocolor(0,0,0,150),false) 
          dxDrawText("    "..v[1],screenX/4+(screenX/1),k*40,screenX/2-(screenX/1),20.0,tocolor(v[2],v[3],v[4],255),1.0,"default-bold","left","center",false,false,false, true) 
        end 
      end 
    ) 
      
    function outputTopChat(message, r, g, b) 
      table.insert(topChat, { message, r, g, b }) 
      local thetime = getRealTime() 
      outputConsole("["..string.format("%.2d:%.2d:%.2d", thetime.hour, thetime.minute, thetime.second).."] "..message:gsub("#%x%x%x%x%x%x", "")) 
      setTimer(function() table.remove(topChat, 1) end, 60000, 1) 
    end 
    addEvent("outputTopChat", true) 
    addEventHandler("outputTopChat", root, outputTopChat) 
      

هريسةة

ّ!

:?::?::?::?: مستخدم [ b ] [ / b ]

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...