^iiEcoo'x_) Posted March 1, 2017 Share Posted March 1, 2017 Hello Guys , I Want Create Script Voice Room , On Click A Button , Set Player In Room , And On Click The Key [ F5 ] , Out From Room Link to comment
Mr.Loki Posted March 1, 2017 Share Posted March 1, 2017 When you add players to a Room you can setElementData and use the Room name then when a player uses voice onClientPlayerVoiceStart do a check to see if his data for the room's name matches yours if it does not then cancelEvent. addEventHandler ( "onClientPlayerVoiceStart", root, function() if localPlayer ~= source then if getElementData(source, "VoiceRoom") ~= getElementData(localPlayer, "VoiceRoom") then cancelEvent() end end end ) 1 Link to comment
^iiEcoo'x_) Posted March 1, 2017 Author Share Posted March 1, 2017 2 hours ago, Mr.Loki said: When you add players to a Room you can setElementData and use the Room name then when a player uses voice onClientPlayerVoiceStart do a check to see if his data for the room's name matches yours if it does not then cancelEvent. addEventHandler ( "onClientPlayerVoiceStart", root, function() if localPlayer ~= source then if getElementData(source, "VoiceRoom") ~= getElementData(localPlayer, "VoiceRoom") then cancelEvent() end end end ) Thanks , The Best Programmer 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