Jump to content

VlageZ

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About VlageZ

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. server: Lua theTeam = getPlayerTeam(thePlayer) teamID = tonumber(getElementData(theTeam, "id")) client: Lua local sWidth,sHeight = guiGetScreenSize() function hud( thePlayer ) if (teamID==1) then local police = dxDrawText("Police", sWidth*0.910, sHeight*0.196, sWidth*0.986, sHeight*0.227, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) end end addEventHandler("onClientRender", root, hud) ليش الpolice مايظهر
  2. --ايش المشكله بهذا الكود, اللاعب ما يسوي له اتاش Attach function FindNearestElement(to,elementType,maxDistance) local x,y,z = getElementPosition(to) local bestD = maxDistance + 1 local bv = nil for _,av in pairs(getElementsByType(elementType)) do local vx,vy,vz = getElementPosition(av) local d = getDistanceBetweenPoints3D(x,y,z,vx,vy,vz) if d < bestD then bestD = d bv = av end end
  3. --يوم ادخل البيك اب ما يعرض لي الفنكشن function drawdx() jobjoinwindow = dxDrawImage(1072, 209, 208, 408, ":account/login-panel/backf10.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) d1 = dxDrawRectangle(1083, 298, 187, 27, tocolor(0, 1, 0, 176), false) d2 = dxDrawRectangle(1083, 266, 187, 27, tocolor(137, 255, 137, 191), false) guiSetVisible(jobjoinwindow,false) guiSetVisible(d1,false) guiSetVisible(d2,false) centerWindow(jobjoinwindow) closejoinwind
  4. سلام عليكم . ابي اطفي اصوات السيارات لما تركب فيها يعني مثلا لما تشغل السيارة ما يطلع لها صوت ابي الكود كامل لو سمحتم
  5. سلام عليكم ابي كود الي اطفي فيه اصوات السيارات كود Client
  6.  ما تفتح /news شباب في مشكلة لما اكتب الامر 


    local x,y = guiGetScreenSize()  
    local playerName = getPlayerName ( localPlayer )
    local MOTDText = "Welcome to our server, this is a test MOTD script for MTA's Wiki." 


    function drawStuff()
        dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) 
        dxDrawText ( "HighLife  - News " , x/3.5, y/3.6, x, y, tocolor ( 255, 255, 255, 255 ), 1, "bankgothic" ) 
        dxDrawLine ( x/3.6, y/3.3, x/1.35, y/3.3, tocolor ( 255, 255, 255, 255 ), 2 ) 
        dxDrawLine ( x/3.59, y/3.275, x/1.348, y/3.275, tocolor ( 0, 0, 0, 255 ), 2 ) 
        dxDrawText ( MOTDText, x/3.6, y/3, x, y, tocolor ( 255, 255, 255, 255 ), 1, "clear" ) 
        bClose = guiCreateButton(252, 509, 267, 68, "اغلاق اللوحه", false, GUIEditor.window[1])
    end
    addCommandHandler("News", drawStuff)

    1. unsiXioN

      unsiXioN

      function drawStuff()
          dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) 
          dxDrawText ( "HighLife  - News " , x/3.5, y/3.6, x, y, tocolor ( 255, 255, 255, 255 ), 1, "bankgothic" ) 
          dxDrawLine ( x/3.6, y/3.3, x/1.35, y/3.3, tocolor ( 255, 255, 255, 255 ), 2 ) 
          dxDrawLine ( x/3.59, y/3.275, x/1.348, y/3.275, tocolor ( 0, 0, 0, 255 ), 2 ) 
          dxDrawText ( MOTDText, x/3.6, y/3, x, y, tocolor ( 255, 255, 255, 255 ), 1, "clear" ) 
          bClose = guiCreateButton(252, 509, 267, 68, "اغلاق اللوحه", false, GUIEditor.window[1])
      end
      addCommandHandler("News",
      function ( )
      addEventHandler("onClientRender",drawStuff)
      guiSetVisible(bClose,true)
      end
          

       

  7. I typed this script: text1 = dxDrawText ( "Click to copy", 700, 828, 150,"Click to copy" ) function setClipboard (texts) txt = texts end addEventHandler("onClientGUIClick", tex1, setClipboard, false) when i click to copy to clipboard its dosent work why?
  8. Hello I have A problem with my server ports when i try to open ports i see this Testing ports... Port 22126 UDP is closed. Players can not browse! Port 22003 UDP is closed. Players can not join! Port 22005 TCP is closed. Players can not download! i put the ports in the router page Please Help me faster!
  9. Hello I have A problem with my server ports when i try to open ports i see this Testing ports... Port 22126 UDP is closed. Players can not browse! Port 22003 UDP is closed. Players can not join! Port 22005 TCP is closed. Players can not download! i put the ports in the router page Please Help me faster!
  10. Hello Guys I have a problem , and i want to fix it my server ports is not opened and
×
×
  • Create New...