#8

So first, you need to find your brother out of his ip:
Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	if(!success)
	{
		for(new i; i<MAX_PLAYERS; i++)
		{
                        if(IsPlayerConnected(i))
                        {
			new pip[200];
			GetPlayerIp(i, pip, sizeof(pip));
			if(strcmp(ip, pip, true, 200))
			{
				KickPlayer(i);
			}
                        }
			return 1;
		}
	}
	return 1;
}
Then you need to change KickPlayer to this:
Код:
forward KickPlayer(playerid); 
public KickPlayer(playerid) 
{  
        new pname[MAX_PLAYER_NAME], string[128]; 
        GetPlayerName(playerid, pname, sizeof(pname)); 
        format(string, sizeof(string), "{AFAFAF}%s {FF0000}has tried to login in RCON and got Kicked!", pname); 
        SendClientMessageToAll(COLOR_RED, string); 
        Kick(playerid); 
        return 1; 
}
Reply


Messages In This Thread
HELP - by DeStRoY232 - 22.09.2017, 10:25
Re: HELP - by FuNkYTheGreat - 22.09.2017, 10:39
Re: HELP - by pollo97 - 22.09.2017, 10:40
Re: HELP - by DeStRoY232 - 22.09.2017, 11:14
Re: HELP - by pollo97 - 22.09.2017, 11:51
Re: HELP - by Sew_Sumi - 22.09.2017, 11:59
Re: HELP - by dominik523 - 22.09.2017, 12:20
Re: HELP - by Kampott - 22.09.2017, 12:35
Re: HELP - by DeStRoY232 - 22.09.2017, 12:40
DeStRoY232 - by Sew_Sumi - 23.09.2017, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)