Do_De<3 Posted March 13, 2014 Posted March 13, 2014 السسلآم عليكمم اخبآركمم قآيز بغيت كودد صوت المايك يكون في مكان معين ابغى بس الاكواد لاحد يسويهه <3 لازم نتعلم $: وشكرآ
Do_De<3 Posted March 13, 2014 Author Posted March 13, 2014 ما فهمت ؟ يعني كيف؟ يكون مكان معينن فيهه المايكك وصوت المايك يعني الي يتكلمم مايسمعه الي برآ الماركر بسس الي داخلهآ
Do_De<3 Posted March 13, 2014 Author Posted March 13, 2014 ابي المايكك محد يسولف فيهه الا في الماركر + مايسمعه الا الي بداخله
Do_De<3 Posted March 14, 2014 Author Posted March 14, 2014 يآخي ماتفهم : / اقول لكك المايكك حرف z ابيهه يكون عليهه ميوت اول مايخش السيرفر واذا خش ماركر يفتح لهه المايكك وصوت المايك يكون محد يسمعه الا الي معهآ في المآركر
Do_De<3 Posted March 14, 2014 Author Posted March 14, 2014 احمم فيهه مليون ملف : ) تبيني احطهآ كلهآ ؟
فاّرس Posted March 14, 2014 Posted March 14, 2014 isElementWithinMarker ممكن تسوي تحقق اول ما يشتغل المايك انه داخل الماركر , ممكن تضبط وممكن لا
xFace[B]ook Posted March 14, 2014 Posted March 14, 2014 ^ ماتوقع يضبط + صاحب الموضوع دورت على الملف مالقيته ابد
3NAD Posted March 14, 2014 Posted March 14, 2014 لم يتم التجربة -- Server Side local marker = createMarker ( .... ) addEventHandler ( "onMarkerHit", marker, function ( player ) if type ( player ) == "player" then if isPlayerVoiceMuted ( player ) then setPlayerVoiceMuted ( player, false ) end end end, false ) addEventHandler ( "onMarkerLeave", marker, function ( player ) if type ( player ) == "player" then if not isPlayerVoiceMuted ( player ) then setPlayerVoiceMuted ( player, true ) end end end, false ) isPlayerVoiceMuted = function ( player ) if player then if type ( player ) == "player" then return voice:isPlayerVoiceMuted ( player ) end end return false end setPlayerVoiceMuted = function ( player, muted ) if player then if type ( player ) == "player" then return voice:setPlayerVoiceMuted ( player, muted ) end end return false end addEventHandler ( "onPlayerJoin", root, function ( ) setPlayerVoiceMuted ( source, true ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( rss ) for i, v in ipairs ( getElementsByType ( "player" ) ) do setPlayerVoiceMuted ( v, true ) end voice = exports.voice type = getElementType end ) voice شغل مود
Do_De<3 Posted March 14, 2014 Author Posted March 14, 2014 عنآدد هذآ الكودد يكونن الي داخل الماركر يسمع الصصوت ؟! لان مابي الكل يسمع الصصوت ابي بس اي داخلهه
3NAD Posted March 14, 2014 Posted March 14, 2014 عندك طريقة اللي هي لمن يدخل الماركر يصير بتيم خاص حق المايك ولمن يطلع من الماركر يشيله من التيم وماراح يسمعونه الا اللي في التيم
3NAD Posted March 14, 2014 Posted March 14, 2014 createTeam -- اصنع التيم setPlayerTeam -- بعدين دخله و طلعه بهالكود
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