Postado Outubro 11, 2013 11 anos Tente com esse aqui. function onSay(cid, words, param, channel) local comment = "Uso de comando Ilegal" local lenght = 24 -- tempo do ban em HORAS if getPlayerAccess(cid) < 2 and getPlayerAccountManager(cid) == MANAGER_NONE then doAddPlayerBanishment(cid, lenght * 3600, 23, comment) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode usar isso.") end return true end Editado Outubro 11, 2013 11 anos por joadson (veja o histórico de edições) Te ajudei? Se você achar que eu mereço, me dê uma "rep+" e selecione meu post como "melhor resposta" Skype: JoadsonAion
Postado Outubro 11, 2013 11 anos Minha ultima tentativa : function onSay(cid, words, param, channel) if getPlayerAccess(cid) < 2 and getPlayerAccountManager(cid) == MANAGER_NONE then doAddPlayerBanishment(getPlayerGUID(cid), 3, -1, "Uso de comando ilegal.", 0) doRemoveCreature(cid) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode usar isso.") end return true end 愛"A alma permanece em suas criações" 平(Não dou suporte por mensagem privada.)
Postado Outubro 12, 2013 11 anos Autor ainda não deu certo.. O player toma kick. euweowueouw Sem erro no distro. Mesmo assim obrigado. Vou reputá-lo por ter tentando ajudar ! ALGUEM AI ? hihi =s
Postado Outubro 12, 2013 11 anos Teste esse aqui... function onSay(cid, words, param, channel) function doBanPlayer(cid) if(isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você foi banido por uso de comando ilegal..") doAddPlayerBanishment(getPlayerGUID(cid), BAN_PLAYER, os.time() + 24 * 60 * 60, ACTION_BANISHMENT, "Uso de comando ilegal..") doBroadcastMessage("[BANISHMENT SYSTEM]: " .. getPlayerName(cid) .. " foi banido por 24 horas por usar comando ilegal.", MESSAGE_STATUS_WARNING) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_GREEN) addEvent(doRemoveCreature, 6000, cid) end return true end if getPlayerAccess(cid) < 2 and getPlayerAccountManager(cid) == MANAGER_NONE then doBanPlayer(cid) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode usar isso.") end return true end Te ajudei? Se você achar que eu mereço, me dê uma "rep+" e selecione meu post como "melhor resposta" Skype: JoadsonAion
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.