19.05.2010, 19:42
How can i log this in a text file saved in the script files folder? instead of in the server logs.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
printf("RCON LOGIN FAILED IP %s USING PASSWORD %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
SendClientMessage(i, 0xFFFFFFFF, "You typed the wrong password, DON'T DO IT AGAIN!");
Kick(i);
}
}
}
return 1;
}