public OnRconLoginAttempt(ip[], password[], success)
{
if(success) //Senha correta
{
new str[128],pname[MAX_PLAYER_NAME],id=0;
while(id<MAX_PLAYERS)
{
GetPlayerIp(id,str,128);
if(!strcmp(str,ip)) {GetPlayerName(id,pname,sizeof(pname));break;} //Pega o nome
id++;
}
format(str,128," %s(ID:%d) logou na RCON!",pname,id);
SendClientMessage(playerid,0xFFFF00AA,str);
}
return 1;
}