Server closed the connection and vip problem
#5

And this is my rcon login attempt whenever i enter the command /rcon login (password) it closes the connection
Код:
public OnRconLoginAttempt(ip[], password[], success) {
	new plip[MAX_PLAYER_IP], playerid;
	foreach(Player, i) {
		GetPlayerIp(i, plip, sizeof(plip));
		if(strcmp(plip, ip) == 0) {
			playerid = i;
		}
	}

	if(success) {
		if(PlayerInfo[playerid][pAdmin] < 99998) Kick(playerid);
	} else {
	    if(RconAttempts[playerid] < 3) RconAttempts[playerid]++;
	    else Kick(playerid);
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)