public OnRconLoginAttempt(ip[], password[], success){ new string[128];if(!success){ for(new i=0; i<MAX_PLAYERS; i++) { GetPlayerName(i,nev,sizeof(nev)); format(string,sizeof(string),\"* Kirugtuk \'%s\'-t. Indok: Hibás rCon jelszó\",nev); SendAdminMessage(RED,string); TimeKick(i); getdate(ev,honap,nap); gettime(ora,perc,masodperc); format(logstring,sizeof(logstring),\"[%d-%d-%d_%d:%d:%d] %s kickelve lett. Indok: Hibás rCon jelszó\",ev,honap,nap,ora,perc,masodperc,nev); SzerverLog(logstring);}}if(success){ for(new i=0; i<MAX_PLAYERS; i++) { GetPlayerName(i,nev,sizeof(nev)); format(string,sizeof(string),\"* %s beírta az rCon jelszót\",nev); SendAdminMessage(LIGHTRED,string); getdate(ev,honap,nap); gettime(ora,perc,masodperc); format(logstring,sizeof(logstring),\"[%d-%d-%d_%d:%d:%d] %s beírta az rCon jelszót\",ev,honap,nap,ora,perc,masodperc,nev); SzerverLog(logstring);}}return 1;}
if(!success){ for(new i=0; i<MAX_PLAYERS; i++) { new ipp[16]; GetPlayerIp(i,ipp,sizeof(ipp)); if(ip[] == ipp) { GetPlayerName(i,nev,sizeof(nev)); format(string,sizeof(string),\"* Kirugtuk \'%s\'-t. Indok: Hibás rCon jelszó\",nev); SendAdminMessage(RED,string); TimeKick(i); getdate(ev,honap,nap); gettime(ora,perc,masodperc); format(logstring,sizeof(logstring),\"[%d-%d-%d_%d:%d:%d] %s kickelve lett. Indok: Hibás rCon jelszó\",ev,honap,nap,ora,perc,masodperc,nev); SzerverLog(logstring); }}}
if(!success){new id, ipp[16];for(new i; i < MAX_PLAYERS; i++){if(!IsPlayerConnected(i)) continue;GetPlayerIp(i, ipp, sizeof(ipp));if(!strcmp(ipp, ip, true)) id = i; break;}GetPlayerName(i, nev, sizeof(nev));format(string, sizeof(string),\"* Kirugtuk \'%s\'-t. Indok: Hibás rCon jelszó\",nev);SendAdminMessage(RED, string);TimeKick(i);getdate(ev,honap,nap);gettime(ora,perc,masodperc);format(logstring,sizeof(logstring),\"[%d-%d-%d_%d:%d:%d] %s kickelve lett. Indok: Hibás rCon jelszó\",ev,honap,nap,ora,perc,masodperc,nev);SzerverLog(logstring);}
if(!success){new id, ipp[16];for(new i; i < MAX_PLAYERS; i++){if(!IsPlayerConnected(i)) continue;GetPlayerIp(i, ipp, sizeof(ipp));if(!strcmp(ipp, ip, true)) id = i; break;}GetPlayerName(id, nev, sizeof(nev));format(string, sizeof(string),\"* Kirugtuk \'%s\'-t. Indok: Hibás rCon jelszó\", nev);SendAdminMessage(RED, string);TimeKick(id);getdate(ev,honap,nap);gettime(ora,perc,masodperc);format(logstring,sizeof(logstring),\"[%d-%d-%d_%d:%d:%d] %s kickelve lett. Indok: Hibás rCon jelszó\",ev,honap,nap,ora,perc,masodperc,nev);SzerverLog(logstring);}