DaminkO Posted February 16, 2016 Share Posted February 16, 2016 اين الخطأ 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
DaminkO Posted February 16, 2016 Author Share Posted February 16, 2016 ممكن تصلحولي الخطأ ؟ Link to comment
Mr.AdHaM Posted February 16, 2016 Share Posted February 16, 2016 السلام عليكم ورحمه الله وبركاته يا اخي يفضل تشغيله على سيرفر تجريبي وروح ملف Server اللي هو لو فتح يفتح السيرفر المجاني بقائمة المحلي طبعا بهذا الملف بعد بدأ تشغيل المود راح يقلك وين الخطأ انسخ الكلام وابعته هنا وراح احل المشكلة ان شاء الله Link to comment
Ja[B]er[X]Pro Posted February 17, 2016 Share Posted February 17, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now