pawn Код:
public OnRconLoginAttempt(ip[], password[], success) {
if(!success) {
for(new i = 0; i < GetMaxPlayers(); i ++ ) {
new ipx[16];
GetPlayerIp(i, ipx, 16);
if(!strcmp(ipx, ip)) {
new PlayerName[MAX_PLAYER_NAME], string[128];
GetPlayerName(i, PlayerName, sizeof(PlayerName)); // playerid unfefined here
format(string, sizeof(string), "%s has tried to rcon login.", PlayerName);
SendClientMessageToAll(COLOR_RED, string);
break;
}
}
}
}