LiOneLMeSsIShoT Posted August 14, 2013 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?
LiOneLMeSsIShoT Posted August 14, 2013 Author 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?
Danii Posted August 14, 2013 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 )
tosfera Posted August 14, 2013 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
Danii Posted August 14, 2013 Posted August 14, 2013 lol i understood that he wants hear the sound for him.
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