^iiEcoo'x_) Posted March 1, 2017 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 - Hashemite Kingdom Of Jordan -
Mr.Loki Posted March 1, 2017 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 [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
^iiEcoo'x_) Posted March 1, 2017 Author 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 - Hashemite Kingdom Of Jordan -
Mr.Loki Posted March 1, 2017 Posted March 1, 2017 No problem, happy to help 2 [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
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