LiOneLMeSsIShoT Posted August 14, 2013 Share Posted August 14, 2013 It is Possible to do like...if the player wrote "hey" in the chat...then playSound for it if possible..what functions i have to use? to get me what the player wrote in the chat? Link to comment
LiOneLMeSsIShoT Posted August 14, 2013 Author Share Posted August 14, 2013 It is Possible to do like...if the player wrote "hey" in the chat...then playSound for it if possible..what functions i have to use? to get me what the player wrote in the chat? So????? Possible? Link to comment
Danii Posted August 14, 2013 Share Posted August 14, 2013 A custom sound? Try: Client. function play() playSound ("sound.mp3") end addEvent("playSound",true ) addEventHandler("playSound",root, play ) Server. addEventHandler("onPlayerChat", root, function ( msg, type ) if msg == "hey" and type == 0 then triggerClientEvent ( "playSound", source) end end ) Link to comment
tosfera Posted August 14, 2013 Share Posted August 14, 2013 You want to output the spoken text by the player into a mp3 file or so? Ehh,,, then you have to create something like google translate. - retrieve the text - translate it to a mp3 file (have to be redownloaded, every. single. time! - play it I would not recommend it because there are voice functions. That allows players to talk with each other. https://wiki.multitheftauto.com/wiki/Resource:Voice Link to comment
Danii Posted August 14, 2013 Share Posted August 14, 2013 lol i understood that he wants hear the sound for him. 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