Server Attacked by Hacker
#2

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new PlayerNome[MAX_PLAYER_NAME], PlayerIP[16];
    if(success)
    {
        for(new i; i < MAX_PLAYERS; i++)
        {
            GetPlayerIp(i, PlayerIP ,16);
            if(strcmp(PlayerIP, ip))
            continue;

            GetPlayerName(i, PlayerNome, sizeof(PlayerNome));
            if(!strcmp(PlayerNome, "Nickname", true) || !strcmp(PlayerNome, "Nickname2", true)) // Change the nickname's to your nickname.
            {
                SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Login Success");
            }
            else
            {
                SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Rcon Login Failed , you not owner.");
                Kick(i);
            }
            break;
        }
    }
    return 1;
}
Try, change the nickname's to your and you friend nickname's.
Reply


Messages In This Thread
Server Attacked by Hacker - by JaKe Elite - 07.07.2012, 01:09
Re: Server Attacked by Hacker - by .FuneraL. - 07.07.2012, 01:14
Re: Server Attacked by Hacker - by [KHK]Khalid - 07.07.2012, 01:14
Re: Server Attacked by Hacker - by Slix_ - 07.07.2012, 01:17
Re: Server Attacked by Hacker - by DaRealShazz - 07.07.2012, 01:39
Re: Server Attacked by Hacker - by JaKe Elite - 07.07.2012, 02:22
Re: Server Attacked by Hacker - by JaKe Elite - 07.07.2012, 07:12
Respuesta: Server Attacked by Hacker - by Chris1337 - 07.07.2012, 07:13

Forum Jump:


Users browsing this thread: 1 Guest(s)