Max+ Posted June 18, 2014 Share Posted June 18, 2014 ياخوي ذا مو سكربت ذا نظام ELM انوار السفتي وذي باللعبة مو بالاونلاين خش gtapolicemods.com وبتحصل كل شي يخص الشرطة عن قراند Link to comment
Dr.Xen Posted June 19, 2014 Author Share Posted June 19, 2014 mta ادخل cit واكتب سيرفر وتحصل هذي السيرفر مو انلاين على قولك ... ^^ عجزوا المبرمجين ... Link to comment
Dr.Xen Posted June 19, 2014 Author Share Posted June 19, 2014 طيب خلاص ي شباب ابي منكم تعدلوا هذي الكود sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) if sound then setSoundVolume ( sound, 400 ) setSoundMaxDistance(sound, 400) end end ) ابيها لمن يدخل كول شيب يسمع الصوت .. وشكرآ Link to comment
Max+ Posted June 19, 2014 Share Posted June 19, 2014 (edited) local Col = createColSphere ( x, y, z, 1 ) --- x, y, z change to position local url = "http://www.google.com/sound.mp3" --- url of the song addEventHandler('onClientColShapeHit', Col, function ( uPlayer ) if ( getElementType ( uPlayer ) == localPlayer ) then sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) setSoundVolume ( sound, 0.5 ) setSoundMaxDistance(sound, 10) end end ) addEventHandler( 'onClientColShapeLeave', Col , function ( uPlayer ) if ( getElementType ( uPlayer ) == localPlayer ) then stopSound(sound) end end ) Edited June 19, 2014 by Guest Link to comment
#DRAGON!FIRE Posted June 19, 2014 Share Posted June 19, 2014 local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onColShapeHit', Col, function ( uPlayer ) if ( getElementType ( uPlayer ) == 'player' ) then sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) setSoundVolume ( sound, 0.5 ) setSoundMaxDistance(sound, 10) end end ) onColShapeHit > onClientColShapeHit getElementType > getLocalPlayer _ + لزوم تطفي الاغنية يوم يخرج اللاعب Link to comment
xFace[B]ook Posted June 19, 2014 Share Posted June 19, 2014 (edited) local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onColShapeHit', Col, function ( uPlayer ) if ( getElementType ( uPlayer ) == 'player' ) then sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) setSoundVolume ( sound, 0.5 ) setSoundMaxDistance(sound, 10) end end ) حدث سيرفر مع فنكشنات كلنت + كذا بتخليه اذا دخل الكول شيب بيصير الاغنية 3D يعني الي قريب من الكول شيب بيسمعها هو قصده اذا خش الكول شيب يسمعه لحاله الاعب عالعموم الكود يصير كذا local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onClientColShapeHit', Col, function ( element) if element == getLocalPlayer() then sound = playSound( url,true ) setSoundVolume ( sound, 0.5 ) end end ) --- addEventHandler('onClientColShapeLeave',Col, function (element) if element == getLocalPlayer() then stopSound(sound) end end ) Edited June 19, 2014 by Guest Link to comment
Max+ Posted June 19, 2014 Share Posted June 19, 2014 local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onColShapeHit', Col, function ( uPlayer ) if ( getElementType ( uPlayer ) == 'player' ) then sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) setSoundVolume ( sound, 0.5 ) setSoundMaxDistance(sound, 10) end end ) onColShapeHit > onClientColShapeHit getElementType > getLocalPlayer _ + لزوم تطفي الاغنية يوم يخرج اللاعب اي والله نسيت انه كلينت , + هو ماطلب يوقف الاغنية , لاكن لعيونك بضبطه ذذ تم التعديل # Link to comment
Max+ Posted June 19, 2014 Share Posted June 19, 2014 local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onColShapeHit', Col, function ( uPlayer ) if ( getElementType ( uPlayer ) == 'player' ) then sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) setSoundVolume ( sound, 0.5 ) setSoundMaxDistance(sound, 10) end end ) حدث سيرفر مع فنكشنات كلنت + كذا بتخليه اذا دخل الكول شيب بيصير الاغنية 3D يعني الي قريب من الكول شيب بيسمعها هو قصده اذا خش الكول شيب يسمعه لحاله الاعب عالعموم الكود يصير كذا [b]local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onClientColShapeHit', Col, function ( element) if element == getLocalPlayer() then sound = playSound( url,true ) setSoundVolume ( sound, 0.5 ) end end ) --- addEventHandler('onClientColShapeLeave',Col, function (element) if element == getLocalPlayer() then stopSound(sound) end end )[/b] ادري والله , بس انا نسيت ان فيه كلينت ايفنت ,للكولشيب , + ليه تستخدم getLocalPlayer() , اختصرها , localPlayer , Link to comment
K1NG Posted June 20, 2014 Share Posted June 20, 2014 onColShapeHit > onClientColShapeHitgetElementType > getLocalPlayer _ + لزوم تطفي الاغنية يوم يخرج اللاعب اي والله نسيت انه كلينت , + هو ماطلب يوقف الاغنية , لاكن لعيونك بضبطه ذذ تم التعديل # كودكـ لحد الآن فيه أخطاء حتى بعد التعديل . بالنسبة لصاحب الموضوع إستخدم كود فيس بوك وإنتهى الموضوع - Link to comment
Dr.Xen Posted June 20, 2014 Author Share Posted June 20, 2014 طيب ابيه يشغل بالحرف ويقفل بالحرف Link to comment
K1NG Posted June 20, 2014 Share Posted June 20, 2014 طيب ابيه يشغل بالحرف ويقفل بالحرف مافهمت شي، وضح أكثر!؟ Link to comment
Max+ Posted June 20, 2014 Share Posted June 20, 2014 Events : onColShapeHit Events : onColShapeLeave playSound3D stopSound bindKey Link to comment
Dr.Xen Posted June 20, 2014 Author Share Posted June 20, 2014 شكرأ لكم .. عندي كود ذا addEventHandler ("onClientMarkerHit", اسم الماركر, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "اسم التيم" then guiSetVisible ( اسم اللوحة, not guiGetVisible ( اسم اللوحة ) ) end end ) فين احط احداثيات الماركر ؟ !!! Link to comment
The Killer Posted June 20, 2014 Share Posted June 20, 2014 وينه الماركر اصلا عشان تحط احداثياته Link to comment
Dr.Xen Posted June 20, 2014 Author Share Posted June 20, 2014 مدري بس لقيت الكود انا حافظه بالملف شكله ناقصص Link to comment
Max+ Posted June 20, 2014 Share Posted June 20, 2014 local theMarker = createMarker ( X,Y, Z, "corona", 5, 0, 0, 0, 0 ) -- x, y , z position addEventHandler ("onClientMarkerHit", theMarker, function ( ) if ( isElement( localPlayer) ) and ( getElementType( localPlayer ) == "player" ) and getPlayerTeam(getTeamName( localPlayer ) == 'Name' ) then ---- Change Name to the team name guiSetVisible ( GUIEditorWindow[1], true ) ---- Chabge GUIEditorWindow[1] to window name end end ) 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