22.08.2010, 20:25
Try this, it worked for me:
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
new pIp[30], name[24];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pIp, sizeof(pIp));
if(strcmp(ip, pIp, true) == 0 && IsPlayerConnected(i))
{
GetPlayerName(i, name, 24);
printf("Rcon Login Attempt by %s(%s) using password: %s", name, ip, password);
}
}
}
return 1;
}