-
Posts
9 -
Joined
-
Last visited
Posts posted by VlageZ
-
-
--ايش المشكله بهذا الكود, اللاعب ما يسوي له اتاش Attach
function FindNearestElement(to,elementType,maxDistance)local x,y,z = getElementPosition(to)local bestD = maxDistance + 1local bv = nilfor _,av in pairs(getElementsByType(elementType)) dolocal vx,vy,vz = getElementPosition(av)local d = getDistanceBetweenPoints3D(x,y,z,vx,vy,vz)if d < bestD thenbestD = dbv = avendendreturn bv,bestDendfunction attach ( thePlayer, command, who )local nearstElement = FindNearestElement(thePlayer,"player",15)attachElements ( nearstElement, thePlayer, 0, 2, 0 )endaddCommandHandler ( "cuff", attach )function dettach ( thePlayer, command, who )local unarrest = getPlayerFromName(who)if isElement(unarrest) thendetachElements ( unarrest, thePlayer )outputChatBox("تم فك الكلبشه",thePlayer,255,0,0)elseoutputChatBox("اللاعب غير مكلبش",thePlayer,255,0,0)endendaddCommandHandler ( "uncuff", dettach ) -
--يوم ادخل البيك اب ما يعرض لي الفنكشن
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)endaddEventHandler( "onPickupHit", jobpick, drawdx ) -
سلام عليكم . ابي اطفي اصوات السيارات لما تركب فيها يعني مثلا لما تشغل السيارة ما يطلع لها صوت ابي الكود كامل لو سمحتم
-
سلام عليكم
ابي كود الي اطفي فيه اصوات السيارات
كود Client
-
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?
-
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!
-
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!
-
Hello Guys
I have a problem , and i want to fix it
my server ports is not opened and
حل مشكله بكود بسيط
in البرمجة
Posted
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 مايظهر