Mr.Ronaldo Posted January 20, 2016 Share Posted January 20, 2016 (edited) function Any (msg) if msg == msg then -- wtf !!!!! print("did You drink something ?") end end Any("LoOs is cool" LoOs is cool Edited January 20, 2016 by Guest Link to comment
MR.GRAND Posted January 20, 2016 Share Posted January 20, 2016 اها هههههههه عرفت خلاص لاكن أظن انو ال end تسوي انهاء للشرط واللي بعدها رح يكون تكملة الحدث او اللي خارج الشرطية ولا انا غلطان Link to comment
LoOs Posted January 20, 2016 Share Posted January 20, 2016 اها هههههههه عرفت خلاص لاكن أظن انو ال end تسوي انهاء للشرط واللي بعدها رح يكون تكملة الحدث او اللي خارج الشرطية ولا انا غلطان لا انا مش اقصد كده ،، اقصد ان كيف تسوي تحقق من نفس المتغير او القيمة يعني تتحقق من متغير loos انه يساوي loos يعني كانك ماسويت شيء ، وانا اقصد انك تخلي تحقق isTimer وتسوي عكس الشرط هو وضع التايمر وتشيل التحقق الي ماله داعي حقك حق التحقق من نفس القيمة Link to comment
MR.GRAND Posted January 20, 2016 Share Posted January 20, 2016 خخخخ أجل ذي شطحة سويتها أعتبرها ممسوحة من الكود لاتناظرها ههههههههه Link to comment
mostafaalal Posted January 20, 2016 Author Share Posted January 20, 2016 يا جماعة وش سويتو الحين اخذ اي كود؟ Link to comment
mostafaalal Posted January 20, 2016 Author Share 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) else return end end ) صورة توضيحية Link to comment
Rockyz Posted January 20, 2016 Share 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) else return end end ) 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