-
Posts
1,453 -
Joined
-
Last visited
-
Days Won
2
Everything posted by taha201100
-
صار يتوقف الصوت لكن الاغنيه تتكرر ابيه لما يضغط نفس الزر تعيد الاغنيه دون ما ينشىء اغنيه جديدة ويا ريت تقول وش وظيفة for+do انا لسه اتعلم سلام نوم بكرة بشوف ردك وصلح لي انه لسه الصوت يتكرر وشكرا لك دب
-
createObject ( 2232, 216.10000610352, 1923.5, 19.299999237061 ) createObject ( 2232, 207.10000610352, 1923.5, 19.299999237061 ) createObject ( 2232, 197.89999389648, 1923.5, 19.299999237061 ) createObject ( 2232, 217.80000305176, 1851.1999511719, 14.300000190735 ) Marker = createMarker (209.08809,1921.75928,16.64063,"cylinder",1,235,155,26,55) GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(496, 263, 236, 216, "الراديو", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(11, 37, 215, 45, "تشغيل الراديو", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 92, 215, 45, "ايقاف الراديو", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(183, 175, 43, 31, "X", false, GUIEditor.window[1]) addEventHandler("onClientMarkerHit", root, function (ss) if ( source == Marker ) and ( ss == localPlayer ) then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then sa = playSound3D ( "music/1.mp3", 216.10000610352, 1923.5, 19.299999237061 ) da = playSound3D ( "music/1.mp3", 207.10000610352, 1923.5, 19.299999237061 ) ra = playSound3D ( "music/1.mp3", 197.89999389648, 1923.5, 19.299999237061 ) ka = playSound3D ( "music/1.mp3", 217.80000305176, 1851.1999511719, 14.300000190735 ) setSoundMaxDistance(sa, 150) setSoundMaxDistance(da, 150) setSoundMaxDistance(ra, 150) setSoundMaxDistance(ka, 150) for Key, Value in ipairs(getElementsByType("1", resourceRoot)) do stopSound(Value) end elseif ( source == GUIEditor.button[3] ) then showCursor(false) guiSetVisible(GUIEditor.window[1],false) end end ) سوي لي لما يكبس الزر ما تتكرر الاغنيه لكن تعيد من الصفر ويا ريت ما تعقد الاكواد مشان افهمها يلا بالله سريع بروح انام
-
اوسكار لما اضغط الزر ما تتوقف الموسيقى :] لا تعطيني جاهز قولي وش اسوي وش الغلط دب
-
ما تتوقف فزعه يا دبل دب ضض ويا ريت ما تعطيني جاهز هات خليني اجرب لسه اتعلم انا
-
addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then playSound3D ( "music/1.mp3", 216.10000610352, 1923.5, 19.299999237061 ) playSound3D ( "music/1.mp3", 207.10000610352, 1923.5, 19.299999237061 ) playSound3D ( "music/1.mp3", 197.89999389648, 1923.5, 19.299999237061 ) playSound3D ( "music/1.mp3", 217.80000305176, 1851.1999511719, 14.300000190735 ) elseif ( source == GUIEditor.button[2] ) then stopSound ( 1 ) هريستي :]
-
طيب باقي مشكله ايقاف الصوت stop sound ما تتوقف
-
playSound3D ( "music/1.mp3", 216.10000610352, 1923.5, 19.299999237061 ) روجوا انا سويت صوت لكن لازم اكون قريب منه جدا ما ينفع اخلي المسافه ابعد شوية؟
-
يخي انا اقلك في وظيفه للتحقق ولا لا
-
طيب شكرا اخوي بس وش اسم الوظيفة الي اقدر اتحقق لو الاغنيه شغاله مشان يوقفها
-
ERROR: Couldn't find file music/ff.ttf for resource aa Loading of resource 'aa' failed خلاص انسى اخوي ممكن اخر سؤال playSound stopSound اخوي انا لما اركب اغنيه ويضغط زر تشتغل لكن اذا رجع ضغط عليها تتكرر ما في طريقه ما تتكرر اكثر من مره وبالنسبه لأيقاف الموسيقى مو راضي يقفل الموسيقى المود مسحته بس تعرف ليه اخوي؟؟ playSFX وش وظيفتة ذا وفي له مثال من عندك مع شرح خخفيف
-
تأكدت كله مضبوط وذا الميتا جرب انت شوف
-
مو ضابط يتغير function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) 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 sz = createPed(285,199.75499,1916.53015,17.64063) addEventHandler("onClientRender", getRootElement(), function () local ff = dxCreateFont("ff.ttf") dxDrawTextOnElement(sz,"shop",1.2,20,234,116,32,255,3,"ff") -- الواحد ذي لأرتفاع الخط عن رأس البيد ، ال20 مسافة الي يستيطع الاعب رؤوية الكلام منها ، ال 0 0 255 ذا كود الون ، ال1 كبر الخط والي بعدها هو نوع الخط end)
-
لا اقصد اخي عندي خط خارج الويكي استعمله للتصميم اقدر اجيبه+كيف
-
طيب الحين عندي خط عربي كيف اضيفه مشان يشتغل ممكن شرح او شي اخوي غلبتك معي
-
طيب اللغة معكوسه ليه +ينفع اضيف غير هالخطوط؟
-
طيب كيف يمديني اجيب اسم خط عجبني؟ +كلام العربي يطلع معكوس ما في حل؟؟
-
حسون انا ما اعرف للدي اكس ممكن تعطيني اي كود جاهز لانه بجرب عليه شي
-
طيب الكود جاهز اجربه؟؟ سيرفر ولا كلنت
