07.01.2013, 02:08
When i login in the Rcon, i get kicked ''lose connection''
How to fix that
How to fix that
} } 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; } |
if(PlayerInfo[playerid][pAdmin] < 9999) Kick(playerid);