TD[M]ER Posted November 21, 2012 Share Posted November 21, 2012 السسلام عليكم ورحمةة الله وبركاتهه اخواني انا حاولت اسوي كود فيه احداثيات ماركر ولمن يدخل اللاعب الماركر ذاا يصير الوقت عند اللاعب نفسهه 4:0 مثلا وتشتغل عندهـ نغممةة اسلحةة هذا الكود function marker () local theMarker = createMarker ( -2324.98828 + 2, 1838.19922 + 2, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound3D("i.wav",true) setTime ( 4, 0 ) end addEventHandler("onClientMarkerHit", getRootElement(), marker) بس مو شغال Link to comment
abu5lf Posted November 21, 2012 Share Posted November 21, 2012 شل كود انشاء الماركر من الفنكشن + انت ماحطيت احداثيات حقت الصوت Link to comment
AhmadQTR Posted November 21, 2012 Share Posted November 21, 2012 (edited) جرب هذا --Client function createMarker (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( x +2, y +2, z "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound3D("i.wav",true) setTime ( 4, 0 ) end addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) Edited November 21, 2012 by Guest Link to comment
abu5lf Posted November 21, 2012 Share Posted November 21, 2012 جرب هذا--Client function createMarker () local theMarker = createMarker ( -2324.98828 + 2, 1838.19922 + 2, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound3D("i.wav",true) setTime ( 4, 0 ) end addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) خطأ. Link to comment
TD[M]ER Posted November 21, 2012 Author Share Posted November 21, 2012 انا ابي لمن يدخل الماركر يصير الصوت عندهـ يعني الماركر كله من الصوت والوقت ذا Link to comment
TD[M]ER Posted November 21, 2012 Author Share Posted November 21, 2012 !!!! يعني مستحيل اني احط احداثيات الاماكن كلها .... في الجزيرة Link to comment
AhmadQTR Posted November 21, 2012 Share Posted November 21, 2012 جرب هذا--Client function createMarker (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( x +2, y +2, z "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound3D("i.wav",true) setTime ( 4, 0 ) end addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) سويتله edit جربه Link to comment
TD[M]ER Posted November 21, 2012 Author Share Posted November 21, 2012 جرب هذا --Client function createMarker (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ([color=#FF0000] x +2, y +2, z[/color] "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound3D("i.wav",true) setTime ( 4, 0 ) end addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) سويتله edit جربه كذا function createMarker (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( -2324.98828 +2, 1838.19922 +2, 11.14753 "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound3D("i.wav",true) setTime ( 4, 0 ) end addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) ؟؟؟ Link to comment
./BlackBird# Posted November 21, 2012 Share Posted November 21, 2012 marker = createMarker(..) addEventHanlder("onClientMarkerHit",marker, function() sound = playSound3D(..) setTime(..) end) Link to comment
AhmadQTR Posted November 21, 2012 Share Posted November 21, 2012 marker = createMarker(..) addEventHanlder("onClientMarkerHit",marker, function() sound = playSound3D(..) setTime(..) end) It's Handler not Hanlder -.- Link to comment
3NAD Posted November 21, 2012 Share Posted November 21, 2012 createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) playSound3D ( "i.wav", -2326, 1839, 11.14753, true ) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( ) setTime ( 4, 0 ) end ) Link to comment
./BlackBird# Posted November 21, 2012 Share Posted November 21, 2012 marker = createMarker(..) addEventHanlder("onClientMarkerHit",marker, function() sound = playSound3D(..) setTime(..) end) It's Handler not Hanlder -.- ادري بس انا كتبت مستعجل و ما شفت الرد Link to comment
TD[M]ER Posted November 21, 2012 Author Share Posted November 21, 2012 createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) playSound3D ( "i.wav", -2326, 1839, 11.14753, true ) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( ) setTime ( 4, 0 ) end ) يعني ذا الكود يخلي لمن الشخص يدخل الماركر يسمع الصوت طول ماهو في الماركر ؟؟ ولا احداثيات ... انا ابي لمن يدخل اللاعب يجيه الصوت ولمن يطلع يروح الصوت ولمن يدخل يصير الوقت عنده 4:0 اتمنى اللي فادوني يفهموني =] Link to comment
Mr.T9 Posted November 21, 2012 Share Posted November 21, 2012 مافيه وقت كذا 4:0 فيه كذا 4:00 Link to comment
./BlackBird# Posted November 21, 2012 Share Posted November 21, 2012 marker = createMarker( ... ) addEventHandler('onClientMarkerHit',marker, function() sound = playSound( .. ) setTime(4,00) end) addEventHandler('onClientMarkerLeave',marker, function() stopSound(sound) end) Link to comment
abu5lf Posted November 21, 2012 Share Posted November 21, 2012 شل كود انشاء الماركر من الفنكشن+ انت ماحطيت احداثيات حقت الصوت الاعتماد على النفس خير وسيله للنجاح Link to comment
TD[M]ER Posted November 21, 2012 Author Share Posted November 21, 2012 شل كود انشاء الماركر من الفنكشن+ انت ماحطيت احداثيات حقت الصوت الاعتماد على النفس خير وسيله للنجاح انا فاهمك اخوي طلعت الماركر من الوظيفهه بس اخوي انا مابي الصوت عند احداثيات محدده ابي من يدخل الماركر ويمشي فيها وهو يسمع الصوت ويصير الوقت عندهـ هو فقطط 4:0 يعني مو بس عند بدايه الماركر ولا عند احداثي محدد =] Link to comment
TD[M]ER Posted November 21, 2012 Author Share Posted November 21, 2012 createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound("i.wav") setSoundVolume(sound, 0.5) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( ) setTime ( 4, 0 ) end ) ???????؟؟؟؟؟ Link to comment
iPrestege Posted November 21, 2012 Share Posted November 21, 2012 createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) local sound = playSound("i.wav") setSoundVolume(sound, 0.5) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( ) setTime ( 4, 0 ) end ) ???????؟؟؟؟؟ Stop Sound ? Link to comment
./BlackBird# Posted November 22, 2012 Share Posted November 22, 2012 marker = createMarker( ... ) addEventHandler('onClientMarkerHit',marker, function() sound = playSound( .. ) setTime(4,00) end) addEventHandler('onClientMarkerLeave',marker, function() stopSound(sound) end) Link to comment
TD[M]ER Posted November 22, 2012 Author Share Posted November 22, 2012 marker = createMarker( 2133.59,-1149.29, 23.3, "cylinder", 3, 255, 0, 0, 127 ) addEventHandler('onClientMarkerHit',marker, function() sound = playSound( i.wav ) setTime(4,00) end) addEventHandler('onClientMarkerLeave',marker, function() stopSound(sound) end) ؟؟ Link to comment
TD[M]ER Posted November 22, 2012 Author Share Posted November 22, 2012 مو شغال الماركر موجود لكن الـ وقت مايتغير + مافي نغمةة meta.xml "Island!" author="TD[M]ER" version="v.1" /> "6ARAT.map" dimension="0"> Link to comment
./BlackBird# Posted November 22, 2012 Share Posted November 22, 2012 مو شغالالماركر موجود لكن الـ وقت مايتغير + مافي نغمةة meta.xml "Island!" author="TD[M]ER" version="v.1" /> "6ARAT.map" dimension="0"> ما تشتغل wav اتوقع صيغه 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