DR.D4RK Posted February 8, 2013 Share Posted February 8, 2013 آلسلام عليكم ورحمة الله وبركاته كيف حآلكم شباب آبي منكم خدمة آو طريقة أكتب نص بنفس اللي بالصورة يعني ماركر عليه نص أو نص زي كذا يكون ثابت آخليه على ماركر أن شاءلله الفكرة وضحت وياليت اللي ينزل الاكواد يشرحها بالعربي اذا ماعربت Link to comment
Booo Posted February 8, 2013 Share Posted February 8, 2013 وعليكم السلام ورحمة الله وبركاته الكود ل : FreeAxel function renderIng( ) local x, y, z = getCameraMatrix( ) local dimension = getElementDimension( localPlayer ) for key, marker in ipairs ( getElementsByType( "marker", resourceRoot ) ) do if getElementDimension( marker ) == dimension then local px, py, pz = getElementPosition( marker ) local distance = getDistanceBetweenPoints3D( px, py, pz, x, y, z ) if distance <= 20 then local text = getElementData( marker, "message" ) if text and ( distance < 2 or isLineOfSightClear( x, y, z, px, py, pz + 1.7, true, true, true, true, false, false, true, localPlayer ) ) then local sx, sy = getScreenFromWorldPosition( px, py, pz + 1.7 ) if sx and sy then local w = dxGetTextWidth( tostring( text ) ) local h = ( text and 2 or 1 ) * dxGetFontHeight( ) dxDrawRectangle( sx - w / 2 - 5, sy - h / 2 - 5, w + 10, h + 10, tocolor( 0, 0, 0, 200 ) ) dxDrawText( tostring( text ), sx, sy, sx, sy, tocolor( 255, 255, 255, 255 ), 1, "default", "center", "center" ) end end end end end end addEventHandler( "onClientRender", getRootElement( ),renderIng) السكربت https://community.multitheftauto.com/ind ... ls&id=4931 i2 = createMarker (1748.8349609375, -1861.9697265625, 12.576866149902, "cylinder" ,1) setElementData(i2,"message","اكتب الكلام هنا") Link to comment
|Mr|-Talal07-| Posted February 8, 2013 Share Posted February 8, 2013 و ذا المود حلوو https://community.multitheftauto.com/ind ... ls&id=3090 easy3DText create3DText Link to comment
DR.D4RK Posted February 9, 2013 Author Share Posted February 9, 2013 يعطيكم العافية ظبط معي كود فري اكسل بس كيف اغير شكل الخط؟ Link to comment
DR.D4RK Posted February 9, 2013 Author Share Posted February 9, 2013 سؤالي واضح انا عارف انواع الخطوط سؤآلي كيف ؟ setElementData ؟ Link to comment
iPrestege Posted February 9, 2013 Share Posted February 9, 2013 1- font: Either a custom DX font element or the name of a built-in DX font: "default": Tahoma "default-bold": Tahoma Bold "clear": Verdana "arial": Arial "sans": Microsoft Sans Serif "pricedown": Pricedown (GTA's theme text) "bankgothic": Bank Gothic Medium "diploma": Diploma Regular "beckett": Beckett Regular الخط هنا : dxDrawText( tostring( text ), sx, sy, sx, sy, tocolor( 255, 255, 255, 255 ), 1, "الخط[=", "center", "center" ) 2- local text = getElementData( marker, "message" ) Link to comment
DR.D4RK Posted February 9, 2013 Author Share Posted February 9, 2013 توي أنتبه له كان موجود يعطيك العافيه تمت الإفادة 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