Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/12/20 in Posts

  1. Use um simples setTimer para isso, exemplo: tempo = {} function teste(playerSource) if not isTimer(tempo[playerSource]) then tempo[playerSource] = setTimer(function() end, 1000, 1) outputChatBox("ok", playerSource) else outputChatBox("aguarde para usar o comando novamente", playerSource) end end addCommandHandler("teste", teste)
    1 point
  2. local temporizador = getTickCount() local tempo = 5000 --Selecione aqui o intervalo em milisegundos function EscolherAssassino() if temporizador + tempo <= getTickCount() then local randomPlayer = getRandomPlayer ( ) temporizador = getTickCount() setElementPosition(randomPlayer, -2405.6630859375, -2171.0009765625, 33.2890625) setTimer( function(escolhidoassassino) temporizador = false end, 45000, 1) else outputChatBox ( "#B22222[#B22222ERROR#B22222] O Assassino já foi escolhido! ", source, 100,255,100,true ) end end addEventHandler("onMarkerHit", mrk, EscolherAssassino) Veja se funciona, qualquer dúvida fique a vontade pra perguntar
    0 points
×
×
  • Create New...