Rcon (Lose connection)
#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


Messages In This Thread
Rcon (Lose connection) - by Antonioh - 07.01.2013, 02:08
Re: Rcon (Lose connection) - by Dragonborn - 07.01.2013, 02:09
Re: Rcon (Lose connection) - by Antonioh - 07.01.2013, 02:11
Re: Rcon (Lose connection) - by Dragonborn - 07.01.2013, 02:18

Forum Jump:


Users browsing this thread: 1 Guest(s)