#1

Hello,

there are someone jacked my server , I mean he is keeping join with my name but dont login so i try to do "Auto KicK" This Auto kick is kick player if he didn't login in 30 Seconds (Auto kick) is this possible to do it with out wrongs?

I using Lux Admin system.
Reply
#2

You should check the name of the player and see if it matches the ip.

Im sure if you search around for it people will already explaned it.

Or just search GetPlayerIp(playerid);
Reply
#3

Something like this?

pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[16];
    GetPlayerIp(playerid, IP, sizeof(IP));
    if(!strcmp(IP, "Your IP"))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "You can join with your ip, if the ip doesnt match it will kick the player");
        return 1;
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Fuck off!");
        Kick(playerid);
    }
    return 1;
}
Reply
#4

Yeah like XIR said.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)