Postado Agosto 13, 2013 11 anos Bom dia, Bem gostaria de solicitar um script que não kikará o jogador que estiver uma area de treino e que digite /afk. Pensei no seguinte. Um unique ID que não kikaria o jogador, mas ele teria que digitar /afk ao ficar em cima desse uniqueID, caso ele escreva /afk e nao esteja nessa uniqueID o script nao funcionaria e ele tomaria kick do mesmo jeito. Grato quem puder ajudar! Anti-Idle que utilizo caso precisem! local config = { idleWarning = getConfigValue('idleWarningTime'), idleKick = getConfigValue('idleKickTime') } function onThink(cid, interval) if(getTileInfo(getCreaturePosition(cid)).noLogout or getCreatureNoMove(cid) or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then return true end local idleTime = getPlayerIdleTime(cid) + interval doPlayerSetIdleTime(cid, idleTime) if(config.idleKick > 0 and idleTime > config.idleKick) then doRemoveCreature(cid) elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then local message = "There was no variation in your behaviour for " .. math.ceil(config.idleWarning / 60000) .. " minutes" if(config.idleKick > 0) then message = message .. ". Voce sera desconectado em " local diff = math.ceil((config.idleWarning - config.idleKick) / 60000) if(diff > 1) then message = message .. diff .. " minutos" else message = message .. "um minuto" end message = message .. " if there is no change in your actions until then." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end Me ajudem...
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.