Jump to content

كودد ^_^


Recommended Posts

Posted

السسلآم عليكمم :$

اخبآركمم قآيز :$

بغيت كودد صوت المايك يكون في مكان معين

ابغى بس الاكواد لاحد يسويهه <3

لازم نتعلم $:

وشكرآ :$

Posted
ما فهمت ؟ يعني كيف؟

يكون مكان معينن فيهه المايكك وصوت المايك

يعني الي يتكلمم مايسمعه الي برآ الماركر

بسس الي داخلهآ

Posted

يآخي ماتفهم : /

اقول لكك المايكك حرف z

ابيهه يكون عليهه ميوت اول مايخش السيرفر

واذا خش ماركر يفتح لهه المايكك

وصوت المايك يكون محد يسمعه الا الي معهآ في المآركر :/

Posted

لم يتم التجربة

-- 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 شغل مود

Posted

عنآدد

هذآ الكودد يكونن الي داخل الماركر يسمع الصصوت ؟!

لان مابي الكل يسمع الصصوت

ابي بس اي داخلهه

Posted

عندك طريقة اللي هي لمن يدخل الماركر يصير بتيم خاص حق المايك ولمن يطلع من الماركر يشيله من التيم

وماراح يسمعونه الا اللي في التيم

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...