20 son el mismo ._.
#8

coloca estas lineas dentro de OnPlayerConnect (preferentemente la 1є)

pawn Код:
//dentro de OnPlayerConnect:
if(IsPlayerNPC(playerid)){
    new pip[16];
    GetPlayerIp(playerid, pip, 16);
    if(strcmp(pip, "127.0.0.1"))return Kick(playerid);
}
else CheckPlayerIPs(id);

//Al final de tu GM/FS
CheckPlayerIPs(id)
{
    new IP[2][16], ips;
    GetPlayerIp(playerid, IP[0], 16);
    for(new i; i<GetMaxPlayers(); i++){
        if(IsPlayerConnected(i)){
            GetPlayerIp(i, IP[1], 16);
            if(!strcmp(IP[0], IP[1]))ips++;
        }
    }
    if(ips > 2)Kick(id);
}
Este codigo evitara que en tu servidor tengas mas de 2 jugadores con la misma ip y que se conecte un npc desde cualquier ip (solo podran conectarse desde tu host).
Reply


Messages In This Thread
20 son el mismo ._. - by Rafa122 - 26.09.2011, 13:29
Respuesta: 20 son el mismo ._. - by Parka - 26.09.2011, 13:39
Respuesta: 20 son el mismo ._. - by Nachbur - 26.09.2011, 13:41
Respuesta: 20 son el mismo ._. - by Rafa122 - 26.09.2011, 13:49
Respuesta: 20 son el mismo ._. - by Parka - 26.09.2011, 14:04
Respuesta: 20 son el mismo ._. - by M1tux3r - 26.09.2011, 14:42
Respuesta: 20 son el mismo ._. - by leaNN! - 26.09.2011, 14:49
Respuesta: 20 son el mismo ._. - by TheChaoz - 26.09.2011, 14:57
Re: Respuesta: 20 son el mismo ._. - by Sergio_team - 26.09.2011, 15:53
Respuesta: 20 son el mismo ._. - by SuperMarioRol - 26.09.2011, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)