#Dr.BnG Posted September 16, 2016 Share Posted September 16, 2016 سويت مود عااجل وعدلي عليه منهمر خلاه يسوي صوت كل اما اكتب بالعاجل + تطلع رسالة بالشات لكن اذا كتبتب العاجل يكرر الصوت 10000 مرة وما يوقف + الشات يكررر الاكلام وش الحل؟؟ Link to comment
ABoHussin Posted September 16, 2016 Share Posted September 16, 2016 اطرح كودك اعتقد المشكلة من التايمر ... Link to comment
#Dr.BnG Posted September 16, 2016 Author Share Posted September 16, 2016 معك سكايب؟ 1 Link to comment
#Dr.BnG Posted September 16, 2016 Author Share Posted September 16, 2016 اقبلني سريع سكايب Link to comment
#|_oskar_|# Posted September 16, 2016 Share Posted September 16, 2016 ليه فاتح الموضوع بما انك بتخلي الناس تساعدك سكايب ؟ Link to comment
#Dr.BnG Posted September 16, 2016 Author Share Posted September 16, 2016 لا مشان ارسله بس الكود لاني ما اعرف اكتب اكواد هنا + لو تعرف الحل قولوا هنا Link to comment
#Dr.BnG Posted September 16, 2016 Author Share Posted September 16, 2016 لسا ما تمت الافدارة علاوي ما عرف يسويها Link to comment
#|_oskar_|# Posted September 16, 2016 Share Posted September 16, 2016 مشكلة الصوت انك ضايفه داخل حدث onClientRender عشان كذا لما تكتب رساله يظهر الصوت بدون توقف ف الاحسن انك تضيف الصوت داخل حدث استقبال الترايقر بملف الكلنت Link to comment
!#NssoR_) Posted September 16, 2016 Share Posted September 16, 2016 وتفتحلك نافذه وتحط فيها اكوادك وتضغط زر insert into post وتعرض اكوادك ,, Link to comment
#Dr.BnG Posted September 16, 2016 Author Share Posted September 16, 2016 اوسكار تقدر تسويها لي؟ كفو ي نصور teat only Link to comment
N3xT Posted September 16, 2016 Share Posted September 16, 2016 2 hours ago, #Dr.BnG said: اوسكار تقدر تسويها لي؟ 1 Link to comment
#|_oskar_|# Posted September 17, 2016 Share Posted September 17, 2016 Just now, #Dr.BnG said: اوسكار تقدر تسويها لي؟ كفو ي نصور حط اكوادك عشان نقدر نساعدك + انا قلت اعتقاد فقط يعني مااعرف شئ عن كودك فالاحسن انك تطرح اكوادك Link to comment
#Dr.BnG Posted September 17, 2016 Author Share Posted September 17, 2016 نيكست طفش مني ههههههههههههههههههههههههههههه Cilent local sX, sY = guiGetScreenSize () addEventHandler("onClientRender", root, function () if ( getElementData ( resourceRoot, "Have_" ) == true ) then local Lines = getChatboxLayout ()["chat_lines"] if ( Lines <= 10 ) then Lines = Lines + 1 elseif ( Lines >= 20 ) then Lines = Lines - 1 else Lines = Lines end if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then setElementData ( resourceRoot, "Have_", false ) else dxDrawText("[", 37 - 1, 214 - 1, 51 - 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37 + 1, 214 - 1, 51 + 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37 - 1, 214 + 1, 51 - 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37 + 1, 214 + 1, 51 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37, 214, 51, 226, tocolor(254, 191, 92, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 - 1, 214 - 1, 96 - 1, 228 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 + 1, 214 - 1, 96 + 1, 228 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 - 1, 214 + 1, 96 - 1, 228 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 + 1, 214 + 1, 96 + 1, 228 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47, 214, 96, 228, tocolor(249, 118, 78, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 - 1, 214 - 1, 103 - 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 + 1, 214 - 1, 103 + 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 - 1, 214 + 1, 103 - 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 + 1, 214 + 1, 103 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89, 214, 103, 226, tocolor(254, 191, 92, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 - 1, 214 - 1, 129 - 1, 230 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 + 1, 214 - 1, 129 + 1, 230 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 - 1, 214 + 1, 129 - 1, 230 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 + 1, 214 + 1, 129 + 1, 230 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106, 214, 129, 230, tocolor(254, 254, 254, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 - 1, 230 - 1, 79 - 1, 236 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 + 1, 230 - 1, 79 + 1, 236 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 - 1, 230 + 1, 79 - 1, 236 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 + 1, 230 + 1, 79 + 1, 236 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18, 230, 79, 236, tocolor(192, 189, 189, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18, 230, 79, 236, tocolor(192, 189, 189, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) --dxDrawText ( "#999999 - [ #00FFFFConsoLe#999999 ] : [ ".. getElementData ( resourceRoot, "By_" ) .." #999999] #FFFFFF: " .. getElementData ( resourceRoot, "Msg_" ).. "", sX * 0.02, sY * 0.03 * Lines , sX, sY, tocolor ( 0,100,255,255,1 ), 1, "default-bold", "left", "top", false, false, false, true, false ) if ( getElementData ( resourceRoot, "Have_" ) == true ) then playSound("chat.mp3",false) outputChatBox ( "@@@@@@",250, 0, 0, false ) end end end end ) bindKey("i", "down", "chatbox","AM") server local Groups = { "AdminMsg", "AdminMsj" } function isPlayerAdmin(player) for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then return true end end end addCommandHandler("AM", function ( player, cmd, ... ) if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( isPlayerAdmin ( player ) ) then local msg = {...} local message = table.concat(msg, " ") setElementData ( resourceRoot, "Have_", true ) setElementData ( resourceRoot, "Msg_", message ) if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then setElementData ( resourceRoot, "By_", getElementData ( player, "Name" )) else setElementData ( resourceRoot, "By_", getPlayerName ( player )) end else outputChatBox("* You Are Not Admin !", player, 255, 0, 0, true) end else outputChatBox("* Please Login !", player, 255, 0, 0, true) end end) ذي اكوادي احد يعدل يخليها ما تكرر صوت اما اكتب + ما تكرر رسالة الشات Link to comment
#|_oskar_|# Posted September 17, 2016 Share Posted September 17, 2016 فعلا زي ماتوقعت كلنت addEvent("ss",true) addEventHandler("ss",root,function () playSound("chat.mp3",false) outputChatBox ( "@@@@@@",250, 0, 0, false ) end) سيرفر triggerClientEvent (root,"ss",root) شيل الصوت والرساله من داخل حدث الرندر Link to comment
#Dr.BnG Posted September 29, 2016 Author Share Posted September 29, 2016 كيف ما فهمتك Link to comment
F[5]aMh Posted September 29, 2016 Share Posted September 29, 2016 (edited) 31 minutes ago, #Dr.BnG said: كيف ما فهمتك ان شاء الله احد يساعدك انا حاليا قاعد اركز فـ اكوادك انشاءالله يطلع حل Edited September 29, 2016 by F[5]aMh Link to comment
iPrestege Posted September 30, 2016 Share Posted September 30, 2016 شيل الكود من سطر 48 لـ 54 وضيف ترايقر في السيرفر اللي حطة لك فوق وضيف الكود الثاني بالكلنت خارج الرندر Link to comment
#Dr.BnG Posted September 30, 2016 Author Share Posted September 30, 2016 خلاص احد يغلق الموضوع ما بعرف اسويها ؛ ) Link to comment
Mhmd.z Posted September 30, 2016 Share Posted September 30, 2016 (edited) (اول ما الاعب يغير العاجل سوي كذه بملف سيرفر(ضيف سطر تحت سطر 17 بملف سيرفر triggerClientEvent(root, "sound", root) بعدها سوي بملف كلنت كذه addEvent("sound", true) addEventHandler("sound", function() playSound("Sound.mp3") end ) Edited September 30, 2016 by Mhmd.z Link to comment
iMr ~ MnHmAr Posted September 30, 2016 Share Posted September 30, 2016 Just now, #Dr.BnG said: خلاص احد يغلق الموضوع ما بعرف اسويها ؛ ) اخوي اوسكار اداك الطريقه انت مراح تسويه لانك تعتمد ع الجاهز حاول تعتمد ع نفسك 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