Jump to content

VlageZ

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

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

VlageZ's Achievements

Newbie

Newbie (4/54)

0

Reputation

  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, 0, 2, 0 ) 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(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) closejoinwindow = dxDrawText("1", 1087, 299, 1270, 325, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "center", false, false, true, false, false) joinjobbutton = dxDrawText("2", 1087, 267, 1270, 293, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "center", false, false, true, false, false) end addEventHandler( "onPickupHit", jobpick, drawdx )
  4. سلام عليكم . ابي اطفي اصوات السيارات لما تركب فيها يعني مثلا لما تشغل السيارة ما يطلع لها صوت ابي الكود كامل لو سمحتم
  5. سلام عليكم ابي كود الي اطفي فيه اصوات السيارات كود Client
  6. 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?
  7. VlageZ

    Ports problem

    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!
  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 Guys I have a problem , and i want to fix it my server ports is not opened and
×
×
  • Create New...