0 Üye ve 1 Ziyaretçi konuyu incelemekte.
local sure = niladdCommandHandler("say",function() sure = 60 gerisayim = setTimer(function() sure = sure - 1 outputChatBox(sure) if sure <= 0 then killTimer(gerisayim) sure = false end end,1000,0)end)
local timer = nillocal saniye = 60local oyuncular = {} -- komutu yazanları bu tabloda toblaaddCommandHandler("gerisayim", function(oyuncu,komut,...) if not oyuncular[oyuncu] then oyuncular[oyuncu] = true end -- eğer tabloda yoksa komutu yazan, ekle! if not timer then -- eğer daha önce timer başlamamışsa, timer = setTimer(function() saniye = saniye-1 for tablodakiOyuncu,v in pairs(oyuncular) do outputChatBox("geri sayim: "..saniye,tablodakiOyuncu) end if saniye <= 0 then oyuncular,saniye,timer = {},60,nil -- tabloyu temizle,saniye temizle,timer temizle end end,1000,saniye) endend)