مالي كثير بالدي اكس
جرب
addEventHandler("onColShapeHit",colshape,
function ( HitElement )
if getElementType ( HitElement ) == "player" then
toggleControl (HitElement,"fire",false)
outputChatBox("انت الان داخل الحماية من الزومبي", s, 0, 255, 0)
addEventHandler("onClientRender",root,Dx)
end
end
)
addEventHandler("onColShapeLeave",colshape,
function ( HitElement )
if getElementType ( HitElement ) == "player" then
toggleControl(s,"fire",true)
removeEventHandler("onClientRender",root,Dx)
end
end
)
function CreateDx( X, Y )
local rX, rY = guiGetScreenSize()
return x, y
end
function Dx( )
local x,y = CreateDx( x,y ) -- هنا احداثيات
dxDrawText("انت في المنطقة المحمية",x,y, 839, 371, tocolor(0,255,0, 255), 3, "default-bold", "left", "top", false, false, true, false, false)
end