Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Downloads > [Lineage] Java Mods
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

 
 
Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 10-07-2010, 04:54 PM   #1
Guma
Membro - Veterano
 
Avatar de Guma
 
Registrado em: Sep 2009
Localização: Florianopolis (sc)
Posts: 591
Agradeceu: 72
Agradecido 724 Vezes em 241 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para Guma
Nome Real: i'm Guma

Inventório de Guma

Padrão Anti Dual-Box

[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Index: EnterWorld.java

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
+		if (ProtectionDualBox.check(activeChar))
+			ProtectionDualBox.disc(activeChar);

Package: net.sf.l2j.gameserver.model.customs

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
/* This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package net.sf.l2j.gameserver.model.custom;

import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.clientpackets.Say2;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.serverpackets.CreatureSay;

/**
 * 
 * @author xAddytzu
 */
public class 
ProtectionNetwork
{ public static void disc(final L2PcInstance player) { player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "SYSTEM", "You cannot play with dualbox.")); ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { public void run() { player.closeNetConnection(); } }, 20000); } public static boolean check(L2PcInstance player) { boolean loggedz0r = false; for (L2PcInstance playerz0r : L2World.getInstance().getAllPlayers()) { String client = first(playerz0r); String client1 = second(player); if (client.equalsIgnoreCase(client1)); loggedz0r = true; } return loggedz0r; } private static String first(L2PcInstance player) { return second(player).toString(); } private static String second(L2PcInstance player) { try { return player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress(); } catch (Throwable t){} return null; } }
Creditos : xAddytzu

Guma está offline  
Os Seguintes 7 Usuários disseram Obrigado(a) para Guma por gostarem deste post :
B1Z4R0 (10-07-2010), Dandilo (10-07-2010), Inspector (10-07-2010), leoneto (20-11-2010), Mazokista (11-07-2010), vicfelipe (10-07-2010), WebMaster_FoX (10-07-2010)
Links Patrocinados
 


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 10:52 PM.