Jump to content

x[سؤال]x تسلسل الكلمات


Recommended Posts

شباب الحين انا سويت ذي الكلمات

aTable = {
"سبحان الله وبحمده سبحان الله العظيم",
"لا اله الا الله"
}
for _,v in ipairs (aTable) do
function a (player)
givePlayerMoney(source,99)

end
end
addEventHandler("onPlayerChat",root,a)

السؤال الحين كيف اسوي outputchatbox لكل كلمة

يعني اول شيء يكتب الكلمة سبحان الله وبحمده وبعد كم ثانية يكتب لا اله الا الله

واول مايكتبوهم يسوون destoryElment بالجداول بس كيف ؟

يعني اول واحد يكتب الكلمة يسويله destroyElement

بعدين تطلع الكلمة الثانية بعد كم ثانية ويكرر الحركة كيف ؟

Edited by yasin0
Link to comment

ماضبط

aTable = {
"سبحان الله وبحمده سبحان الله العظيم",
"لا اله الا الله"
}
for _,v in ipairs (aTable) do
setTimer(
function (aMessage, aType)
outputChatBox(v)
if aType == 0 and aMessage == v then end
givePlayerMoney(source,99)
aTable = {}
end
end,1000,0
addEventHandler("onPlayerChat",root,a)

 

Link to comment
27 minutes ago, yasin0 said:

ماضبط


aTable = {
"سبحان الله وبحمده سبحان الله العظيم",
"لا اله الا الله"
}
for _,v in ipairs (aTable) do
setTimer(
function (aMessage, aType)
outputChatBox(v)
if aType == 0 and aMessage == v then end
givePlayerMoney(source,99)
aTable = {}
end
end,1000,0
addEventHandler("onPlayerChat",root,a)

 

انت مو معرفها

وتحت معرفها في a الوظيفه

وناقصتك كم end

Edited by iKSApro
Link to comment
aTable = {
"سبحان الله وبحمده سبحان الله العظيم",
"لا اله الا الله"
}

for _,v in ipairs (aTable) do
  function a (aMessage, aType)
    setTimer ( function ( )
        outputChatBox(v)
        if aType == 0 and aMessage == v then
          givePlayerMoney(source,99)
          aTable = {}
       end
    end , 1000*3 , 0 )
  end
addEventHandler("onPlayerChat",root,a)
end

 

Link to comment
2 hours ago, #_iMr.[E]coo said:

aTable = {
"سبحان الله وبحمده سبحان الله العظيم",
"لا اله الا الله"
}

for _,v in ipairs (aTable) do
  function a (aMessage, aType)
    setTimer ( function ( )
        outputChatBox(v)
        if aType == 0 and aMessage == v then
          givePlayerMoney(source,99)
          aTable = {}
       end
    end , 1000*3 , 0 )
  end
addEventHandler("onPlayerChat",root,a)
end

 

مو المفروض يكون الحدث آخر سطر ذذ ! ؟ O.o

Link to comment

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...