Jump to content

VlageZ

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by VlageZ

  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 
        return bv,bestD  
    end 
     
    function attach ( thePlayer, command, who )
        local nearstElement = FindNearestElement(thePlayer,"player",15)
        attachElements ( nearstElement, thePlayer, 020 )
    end 
    addCommandHandler ( "cuff", attach )
     
    function dettach ( thePlayer, command, who )
        local unarrest = getPlayerFromName(who)
        if isElement(unarrest) then 
            detachElements ( unarrest, thePlayer )
            outputChatBox("تم فك الكلبشه",thePlayer,255,0,0)
        else 
            outputChatBox("اللاعب غير مكلبش",thePlayer,255,0,0)
        end    
    end
    addCommandHandler ( "uncuff", dettach )
  3. --يوم ادخل البيك اب ما يعرض لي الفنكشن
    function
     drawdx()
        jobjoinwindow = dxDrawImage(1072209208408":account/login-panel/backf10.png"000tocolor(255255255255), false)
        d1 = dxDrawRectangle(108329818727tocolor(010176), false)
        d2 = dxDrawRectangle(108326618727tocolor(137255137191), false)
        guiSetVisible(jobjoinwindow,false)
        guiSetVisible(d1,false)
        guiSetVisible(d2,false)
        centerWindow(jobjoinwindow)
        closejoinwindow = dxDrawText("1"10872991270325tocolor(255255255255), 1.30"default-bold""left""center"falsefalsetruefalsefalse)
        joinjobbutton =  dxDrawText("2"10872671270293tocolor(255255255255), 1.30"default-bold""left""center"falsefalsetruefalsefalse)
    end
    addEventHandler"onPickupHit", jobpick, drawdx )
  4. 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?

     

  5. 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!

  6. 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!

×
×
  • Create New...