Adham Posted March 2, 2016 Share Posted March 2, 2016 السلام عليكم انا اليوم شوفت في سرفررات كثير المكتوب كدا المكتوب شوب الاسلحه ناس قلتلي الهوا مود ابي لنك تحميلو وشكرا . وفديو كيف استخادو Link to comment
7up2016 Posted March 2, 2016 Share Posted March 2, 2016 client side local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 0,0,0 -- حط احداثيات المكان local x,y = getScreenFromWorldPosition(x, y, z) local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText) Link to comment
Adham Posted March 2, 2016 Author Share Posted March 2, 2016 local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 2227.2404785156,1839.9521484375,10.8203125 -- حط احداثيات المكان local x,y = getScreenFromWorldPosition(x, y, z+0.-- s8) --> local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText) ايش المشكله؟ Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 2227.2404785156,1839.9521484375,10.8203125 -- حط احداثيات المكان local x,y = getScreenFromWorldPosition(x, y, z+0) local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText) ايش المشكله؟ local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 2227.2404785156,1839.9521484375,10.8203125 -- حط احداثيات المكان local x,y = getScreenFromWorldPosition(x, y, z+0) local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText) Link to comment
HassoN Posted March 2, 2016 Share Posted March 2, 2016 أستعمل dxDrawTextOnElement وفك نفسك Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 أستعملdxDrawTextOnElement وفك نفسك يب مفيد + الخاص بك Link to comment
Adham Posted March 2, 2016 Author Share Posted March 2, 2016 ما ظبت ارجو تجبلي الكود وتعملو علي احدذيات اهي 2469.3813476563,-1646.3508300781,13.780097007751 Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 2469.3813476563,-1646.3508300781,13.780097007751 local x,y = getScreenFromWorldPosition(x, y, z) local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText) Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 server or client? dxDrawText client Link to comment
Adham Posted March 2, 2016 Author Share Posted March 2, 2016 حطيطو client side ما ظبت Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 حطيطو client sideما ظبت اكتب باف8 debugscript 3 وسوي ريستارت للمود وقول لي وش يجيك Link to comment
Adham Posted March 2, 2016 Author Share Posted March 2, 2016 debugscript: Syntax is 'debugscript ' Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 debugscript: Syntax is 'debugscript ' اكتب debugscript 3 لا تنسى رقم 3 Link to comment
Adham Posted March 2, 2016 Author Share Posted March 2, 2016 debugscript: Your debug mode was set to 3 Link to comment
MuhannaDx Posted March 2, 2016 Share Posted March 2, 2016 تاكد ان اسم المود مافيه اخطاء + تاكد ان محطي بالميتا الاسم الصحيح والنوع(كلينت)ء اذا م فيه خطا debugscript 1 واطرحه Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 debugscript: Your debug mode was set to 3 الان سوي ريستار للمود يجيك كلام بالشاشة بلون احمر + اصفر من تحت وش الكلام الذي يجي عن المود؟ Link to comment
MuhannaDx Posted March 2, 2016 Share Posted March 2, 2016 debugscript: Your debug mode was set to 3 يكوتش لا تجيب لنا بالي ينكتب بالاف8 ذا يقلك انك اخترت 3 انت عليك من المعلومات الي تجي تحت بشاشة يقلك الخطا سطر مثلا 5 وكذا Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 لدي سؤال وش يسوي debugscript 1 debugscript 2 ?? Link to comment
#Mr.Rajo~,< Posted March 2, 2016 Share Posted March 2, 2016 لدي سؤالوش يسوي debugscript 1 debugscript 2 ?? 1: only errors 2: errors and warnings 3: errors, warnings and info messages Link to comment
HassoN Posted March 2, 2016 Share Posted March 2, 2016 أفتح جهة كلنت وروح حط ذا الكود اخر شي function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 if (isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end end end ثم حط بالبداية السطر ذا addEventHandler("onClientRender", getRootElement(), function () dxDrawTextOnElement(اسم الماركر حقك,"weapon shop") end) Link to comment
Adham Posted March 2, 2016 Author Share Posted March 2, 2016 ما ظبت جرب سوي علي مود وادهولي وشوفه ايش الخطاء Link to comment
Ja[B]er[X]Pro Posted March 2, 2016 Share Posted March 2, 2016 لدي سؤالوش يسوي debugscript 1 debugscript 2 ?? 1: only errors 2: errors and warnings 3: errors, warnings and info messages Thank you 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