Jump to content

طلب كود


Recommended Posts

Posted

اها هههههههه

عرفت خلاص

لاكن أظن انو ال

end

تسوي انهاء للشرط

واللي بعدها رح يكون تكملة الحدث او اللي خارج الشرطية

ولا انا غلطان :roll:

Posted
اها هههههههه

عرفت خلاص

لاكن أظن انو ال

end

تسوي انهاء للشرط

واللي بعدها رح يكون تكملة الحدث او اللي خارج الشرطية

ولا انا غلطان :roll:

لا انا مش اقصد كده ،،

اقصد ان كيف تسوي تحقق من نفس المتغير او القيمة

يعني تتحقق من متغير loos انه يساوي loos

يعني كانك ماسويت شيء ،

وانا اقصد انك تخلي تحقق isTimer

وتسوي عكس الشرط هو وضع التايمر

وتشيل التحقق الي ماله داعي حقك حق التحقق من نفس القيمة :fadein:

Posted

ما زالت نفس النتيجة

اخر كود استخدمته هو

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 
) 

صورة توضيحية

p_19mujn1.png

Posted

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 
) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...