Jump to content

طلب مساعده


DaminkO

Recommended Posts

اين الخطأ

addEventHandler("onClientRender", getRootElement(),  
function() 
  
                local x, y, z = getElementPosition((arrow) (1)) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("بيت أمين", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("بيت أمين", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

Link to comment

السلام عليكم ورحمه الله وبركاته

يا اخي يفضل تشغيله على سيرفر تجريبي وروح ملف Server

اللي هو لو فتح يفتح السيرفر المجاني بقائمة المحلي

طبعا بهذا الملف بعد بدأ تشغيل المود راح يقلك وين الخطأ انسخ الكلام وابعته هنا وراح احل المشكلة ان شاء الله

Link to comment
addEventHandler("onClientRender", getRootElement(), 
function() 
  
                local x, y, z = getElementPosition(arrow,1) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("بيت أمين", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("بيت أمين", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

جرب مدري ان كان صحيح او خطأ

ركبه ان ما اشتغل اكتب باف8 debugscript 3

وسوي ريستارت للمود وانسخ الكلام هنا

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...