mostafaalal Posted January 20, 2016 Posted January 20, 2016 السلام عليكم ابي كود أو مود ما ادري وش هو بالظبط بس الزبدة الوظيفة هي انه يقدر اللاعب يكتب كل 5 ثواني لسرفرات الي لاعبينها كثار مثلا تلاقي لما تكتب يقولك تبقى 5 ثواني تكتب بعد ثانيتين يقولك تبقى 3 ثواني في نا قالولي استخدم كود settimer وقال احطه في ملف السرفر حقي دورت ذا الملف الي اسمه server ما لقيته ارجو التوضيح والافادة
#DRAGON!FIRE Posted January 20, 2016 Posted January 20, 2016 اول شي هذا ملف سيرفر مو كود الاكواد تنقسم لـ قسمين .. قسم بجانب كلنت وقسم بجانب سيرفر اللي راح تحتاجه عشان تسوي طلبكـ .. بجانب سيرفر طبعا Event: "onPlayerChat" isTimer getTimerDetails setTimer To Contact Me at Skype : [email protected]
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 مشكور على الاجابة السريعة طيب الحين وين احط ذي الاكواد؟؟ هل يمكن تحويل اي كود الى مود؟
#DRAGON!FIRE Posted January 20, 2016 Posted January 20, 2016 هذي الوظائف اللي تحتاجها .. وتسوي كودك فيها .. حاول وبساعدكـ To Contact Me at Skype : [email protected]
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 . بجانب سيرفر طبعا Event: "onPlayerChat" isTimer getTimerDetails setTimer لم افهم كلامك بالظبط يرجى التوضيح
#DRAGON!FIRE Posted January 20, 2016 Posted January 20, 2016 انصحكـ تزيد خبرتك وبعدين سوي اللي تبيه .. تعلم الاساسيات To Contact Me at Skype : [email protected]
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 اخي لدي خبرة في البرمجة ولكن ليس بهذه اللغة @@
#DRAGON!FIRE Posted January 20, 2016 Posted January 20, 2016 طيب اضغط ع كل وظيفة عطيتك هي .. وشوف شرحها وتعلم .. To Contact Me at Skype : [email protected]
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 ابيه يكرر كل 6 ثواني بستخدم زي كذا setTimer (,60000,0) يتعلق بتفاصيل الشات او ما شابه مثل اسم تعريف التايمر getTimerDetails يمكن حق الربط setTimer
#DRAGON!FIRE Posted January 20, 2016 Posted January 20, 2016 طيب حلو حاول انكـ تصنع الكود .. وبساعدكـ .. راح تشوف امثلة لكل وحدة عطيتك هي . To Contact Me at Skype : [email protected]
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 اخي الامثلة معقدة نوعا ما كل ما فهمته هو setTimer وisTimer اسف عذبتك معي لكن اذا تكرمت افضل ان يكون الشرح منك
N3xT Posted January 20, 2016 Posted January 20, 2016 " onPlayerChat " هذا حدث إرسال رسائل بالشات " getTimerDetails " أستخدمه لمعرفة كم تبقى لتستطيع الكتابة " setTimer " استخدم التايمر لتحديد مده منع الكتابة حاول تسوي الكود .. وبنساعدك
ALw7sH Posted January 20, 2016 Posted January 20, 2016 اذا ماتقدر تبرمج اذا كنت مستعد تدفع شوف لك مبرمج يسويلك الي تبيه بالضبط واذا ماتبي تدفع شوف الكومينيتي www.community.multitheftauto.com
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 طيب ياخي ليش ما تحبون الخير كتبتو تعليق وعذبتو نفسكم وش بقي على انكم تسوو الكود لو ما كسبتو فلوس علمتو شخص وكسبتو دعائه بس والله ما عاد في ناس فيها خير ذي الايام
MR.GRAND Posted January 20, 2016 Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) end end ) My new GCSS Script : Go حصريا : مود الدردشة بين السيرفرات : الذهاب LUA progress = -100% Join us : Multi Theft Auto Arab I'm not the best but, i'm different Skype : kamel1234128 Someone in this world needs to remember my love .
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) if isTimer ( Timer ) then leftT , executeR, Texecute = getTimerDetails(Timer) outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then Timer = setTimer (function() end, 5000, 1) end end ) ياخي انت انت مدري وش بقول قسم بالله انك ذيبان الله يوفقك في كل عمل انشاء الله وتكون من افضل مبرمجين العالم اما كذا الناس او بلا
MR.GRAND Posted January 20, 2016 Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) if isTimer ( Timer ) then leftT , executeR, Texecute = getTimerDetails(Timer) outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then Timer = setTimer (function() end, 5000, 1) end end ) ياخي انت انت مدري وش بقول قسم بالله انك ذيبان الله يوفقك في كل عمل انشاء الله وتكون من افضل مبرمجين العالم اما كذا الناس او بلا حياك الله في أي وقت My new GCSS Script : Go حصريا : مود الدردشة بين السيرفرات : الذهاب LUA progress = -100% Join us : Multi Theft Auto Arab I'm not the best but, i'm different Skype : kamel1234128 Someone in this world needs to remember my love .
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) if isTimer ( Timer ) then leftT , executeR, Texecute = getTimerDetails(Timer) outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then Timer = setTimer (function() end, 5000, 1) end end ) ياخي انت انت مدري وش بقول قسم بالله انك ذيبان الله يوفقك في كل عمل انشاء الله وتكون من افضل مبرمجين العالم اما كذا الناس او بلا حياك الله في أي وقت بس لا هنت احط ذا الكود وين؟
MR.GRAND Posted January 20, 2016 Posted January 20, 2016 سوي ملف Server.lua وحط فيه الكود وسوي ملف ميتا وحطهم بملف مضغوط zip وشغله ^^ My new GCSS Script : Go حصريا : مود الدردشة بين السيرفرات : الذهاب LUA progress = -100% Join us : Multi Theft Auto Arab I'm not the best but, i'm different Skype : kamel1234128 Someone in this world needs to remember my love .
mostafaalal Posted January 20, 2016 Author Posted January 20, 2016 سوي ملف Server.lua وحط فيه الكود وسوي ملف ميتا وحطهم بملف مضغوط zip وشغله ^^ المود شغال 100% يعطيك العافية ما قصرت بس لما تطلع الرسالة يقولي يرجى الانتظار 3.345 ثواني انا ابيها يرجى الانتظار 5 ثواني بعدين 4 ثواني يعني من دون فاصلة بس عدد صحيح
Mr.Ronaldo Posted January 20, 2016 Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. math.floor(leftT / 1000) .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) end end ) Skype: ahmed.ronaldo2122 اعتزال لبعض الوقت
LoOs Posted January 20, 2016 Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) end end ) تتحقق من القيمة نفسها ؟ حط else على الاقل مب تحط اذا الكلمة تساوي نفس الكلمة يعني بوريك مثال للي انت سويته function Any (msg) if msg == msg then -- wtf !!!!! print("did You drink something ?") end end Any("LoOs is cool") غير كذا كيف تحول سترنق لسترنق ؟ Discord: LoOs#1111 _____________________________
MR.GRAND Posted January 20, 2016 Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) end end ) تتحقق من القيمة نفسها ؟ حط else على الاقل مب تحط اذا الكلمة تساوي نفس الكلمة يعني بوريك مثال للي انت سويته function Any (msg) if msg == msg then -- wtf !!!!! print("did You drink something ?") end end Any("LoOs is cool") غير كذا كيف تحول سترنق لسترنق ؟ addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) else return end end ) كذا يعجبك ؟ My new GCSS Script : Go حصريا : مود الدردشة بين السيرفرات : الذهاب LUA progress = -100% Join us : Multi Theft Auto Arab I'm not the best but, i'm different Skype : kamel1234128 Someone in this world needs to remember my love .
LoOs Posted January 20, 2016 Posted January 20, 2016 addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) end end ) تتحقق من القيمة نفسها ؟ حط else على الاقل مب تحط اذا الكلمة تساوي نفس الكلمة يعني بوريك مثال للي انت سويته function Any (msg) if msg == msg then -- wtf !!!!! print("did You drink something ?") end end Any("LoOs is cool") غير كذا كيف تحول سترنق لسترنق ؟ addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. leftT / 1000 .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) else return end end ) كذا يعجبك ؟ مش اقصد كذا ياخطير ، اقصد تشيل التحقق الثاني وتستبدله ل else للتحقق السابق Discord: LoOs#1111 _____________________________
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