Rcon (Lose connection)
#1

When i login in the Rcon, i get kicked ''lose connection''
How to fix that
Reply
#2

Show the callback OnRconLoginAttempt.
Reply
#3

Quote:

}
}
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] < 9999 Kick(playerid);
} else {
if(RconAttempts[playerid] < 3) RconAttempts[playerid]++;
else Kick(playerid);
}
return 1;
}

public OnPlayerText(playerid, text[])
{
if(gPlayerLogged{playerid} != 1)
{
SendClientMessageEx(playerid, COLOR_RED, "You are not logged in.");
return 0;
}

Here
Reply
#4

Here's the problem :
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 9999) Kick(playerid);
if the pAdmin of playerid (you) is less than 9999, the player is kicked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)