03.01.2018, 05:41
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
new ipstring[16];
printf("[RCON] Failed login by %s password: %s", ip, password);
foreach(new i : Player)
{
GetPlayerIp(i, ipstring, sizeof(ipstring));
if(!strcmp(ip, ipstring, true))
printf("Failed login by %d password: %s", i, password);
}
}
else
{
printf("User logged in RCON. IP: %s", ip);
}
return 1;
}