BIG PROBLEM!! RCON BUG LOGIN!
#10

Quote:
Originally Posted by Cpt.Shady
Посмотреть сообщение
1) I only know rcon password
2) How can protection, just log on to my name?
I'm guessing that you're ingame name is Cpt.Shady, though I could be wrong, but this is just an example:

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!sucess) return 1; //If they failed, just ignore it - they can't do anything wrong.
    new pip[16], pName[24];
    for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
    {
        GetPlayerIp(i, pip, sizeof(pip));
        if(!strcmp(ip, pip, true)) //If a player's IP is the IP that logged in
        {
            GetPlayerName(i, pName, 24);
            if(strcmp(pName, "Cpt.Shady")) //Only you
            {
                SendClientMessage(playerid, 0xFF00FFFF, "You are not Cpt.Shady! Bye.");
                Kick(i);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
BIG PROBLEM!! RCON BUG LOGIN! - by Cpt.Shady - 22.12.2011, 19:43
Re: BIG PROBLEM!! RCON BUG LOGIN! - by coole210 - 22.12.2011, 22:12
Re: BIG PROBLEM!! RCON BUG LOGIN! - by Cpt.Shady - 22.12.2011, 22:22
Re: BIG PROBLEM!! RCON BUG LOGIN! - by SchurmanCQC - 22.12.2011, 22:32
Re: BIG PROBLEM!! RCON BUG LOGIN! - by iTorran - 22.12.2011, 22:37
Re: BIG PROBLEM!! RCON BUG LOGIN! - by Tigerkiller - 22.12.2011, 23:18
Re: BIG PROBLEM!! RCON BUG LOGIN! - by Cpt.Shady - 23.12.2011, 13:30
Re: BIG PROBLEM!! RCON BUG LOGIN! - by Tigerkiller - 23.12.2011, 13:48
Re: BIG PROBLEM!! RCON BUG LOGIN! - by Cpt.Shady - 23.12.2011, 17:51
Re: BIG PROBLEM!! RCON BUG LOGIN! - by Ash. - 23.12.2011, 19:19

Forum Jump:


Users browsing this thread: 3 Guest(s)