Postado Julho 9, 2014 10 anos Autor testa esse function onThink(interval, lastExecution) local tabela = { [1]= 5, [2]= 6, [7]= 7, [6]= 8, [5]= 9, [4]= 10, [3]= 5, } local players = getPlayersOnline() for _, pid in ipairs(getPlayersOnline()) do if tabela[getPlayerVocation(pid)] then playerpos = getPlayerPosition(pid) doSendMagicEffect(playerpos, tabela[getPlayerVocation(pid)]) end end return true endve se ta certo a tabela que eu fiz [vocaçao]=efeito, funcionou prefeitamente como eu queria vlw. duvida resolvida.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.