Ahmed_Negm Posted June 27, 2016 Share Posted June 27, 2016 لو سمحتم انا كنت عايز احط صوت راجل يقول مثلآ خطأ لما تكتب باسورد خطأ وصممت الصوت وعملت الأضافة وعملت الترايقر من السلينت للسيرفر واشتغلت جيت علشان اضيف لما مثلآ يعمل حساب وهوا مسجل يقولوا انت بالفعل قمت بالتسجيل ولاكن ها المرة ما اشتغلت وقالي في اف 8 bass error in load media Client local sound = playSound("ss.mp3") ---- هنا الأغنية addEvent ("soundW", true ) addEventHandler ( "soundW", root, ------ وذا كود انا عمله علشان يوطي صوت الأغنية function () setTimer( function() setSoundVolume(sound, 0.9) end, 50, 1) setTimer( function() setSoundVolume(sound, 0.-- s8) --> end, 100, 1) setTimer( function() setSoundVolume(sound, 0.7) end, 150, 1) setTimer( function() setSoundVolume(sound, 0.6) end, 200, 1) setTimer( function() setSoundVolume(sound, 0.5) end, 250, 1) setTimer( function() setSoundVolume(sound, 0.4) end, 300, 1) setTimer( function() setSoundVolume(sound, 0.3) end, 350, 1) setTimer( function() setSoundVolume(sound, 0.2) end, 400, 1) setTimer( function() setSoundVolume(sound, 0.3) end, 2450, 1) setTimer( function() setSoundVolume(sound, 0.4) end, 2500, 1) setTimer( function() setSoundVolume(sound, 0.5) end, 2550, 1) setTimer( function() setSoundVolume(sound, 0.6) end, 2600, 1) setTimer( function() setSoundVolume(sound, 0.7) end, 2650, 1) setTimer( function() setSoundVolume(sound, 0.-- s8) --> end, 2700, 1) setTimer( function() setSoundVolume(sound, 0.9) end, 2750, 1) setTimer( function() setSoundVolume(sound, 1) end, 2800, 1) end ) addEvent ("W1", true ) ----- ودا صوت خطأ في الباصورد او الأسم الي شغال بنجاح addEventHandler ( "W1", root, function () setTimer( function() sound2 = playSound("W1.mp3") end, 50, 1) end ) انما الباقي خاطأ addEvent ("W2", true ) addEventHandler ( "W2", root, function () setTimer( function() sound3 = playSound("W2.mp3") end, 50, 1) end ) addEvent ("W3", true ) addEventHandler ( "W3", root, function () setTimer( function() sound4 = playSound("W3.mp3") end, 50, 1) end ) addEvent ("W4", true ) addEventHandler ( "W4", root, function () setTimer( function() sound5 = playSound("W4.mp3") end, 50, 1) end ) Server addEvent("onLoginWith",true) addEventHandler("onLoginWith",root, function (user,pass) local acc = getAccount(user,pass) local serial = getPlayerSerial(source) if acc then logIn(source,acc,pass) outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) AddPlayer(serial,user,pass) triggerClientEvent(source,"onCl",source) else outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) triggerClientEvent ("soundW", source) triggerClientEvent ("W1", source) end end ) addEvent("onLogin",true) addEventHandler("onLogin",root, function (user,pass) local acc = getAccount(user,pass) if acc then logIn(source,acc,pass) outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) triggerClientEvent(source,"onCl",source) else triggerClientEvent ("soundW", source) triggerClientEvent ("W1", source) outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) end end ) addEvent("onReg", true) addEventHandler("onReg", root, function (user,pass) if not ( isGuestAccount ( getPlayerAccount ( source ) ) ) then triggerClientEvent ("W2", source) triggerClientEvent ("soundW", source) return triggerClientEvent ( source, "onCl", source ) end local account = getAccount ( user ) if account then triggerClientEvent ("soundW", source) triggerClientEvent ("W4", source) else addAccount(user,pass) logIn ( source, getAccount ( user, pass ), pass ) triggerClientEvent(source,"onCl",source) outputChatBox("* تم انشاء الحساب بنجاح",source,0,255,0) outputChatBox("* اسم المستخدم = " .. user,source,0,255,0) outputChatBox("* رقم المرور = " .. pass,source,0,255,0) end end ) Link to comment
' A F . Posted June 27, 2016 Share Posted June 27, 2016 فيه فنكشن حلو جداً مسويه واحد convertTextToSpeech Link to comment
Ahmed_Negm Posted June 27, 2016 Author Share Posted June 27, 2016 انا مش فاهم من الفنكشن دا ايتها حاجا Link to comment
' A F . Posted June 27, 2016 Share Posted June 27, 2016 الفنكشن ذا يحول لك الكلام الى صوت Link to comment
Ahmed_Negm Posted June 27, 2016 Author Share Posted June 27, 2016 اه منا عارف انه بيحول الكلام الاا صوت بس مش عارف ازاي استخدمه Link to comment
Mr.CoR Posted June 27, 2016 Share Posted June 27, 2016 السلام عليكم يا كفو انت من دخلت المنتدى ولا موضوع نزلت عنوانه عدل قلت لك بكل مواضيعك شوف هالموضوع https://forum.multitheftauto.com/viewtopic.php?f=160&t=100292 وعدل عنوانك وتعلم كيف تكتب عنوان !!!! Link to comment
' A F . Posted June 27, 2016 Share Posted June 27, 2016 اه منا عارف انه بيحول الكلام الاا صوت بس مش عارف ازاي استخدمه شوف المثال 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