22.08.2010, 19:55
I got this code:
As you see in the picture below it doesnt return my name, and the ip returns as 49 when its 127.0.0.1, but the password is right tough.
Here is a screenie of the console after a failed in-game login with the password "Lol":
---------------------------------------
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new pIp[30];
GetPlayerIp(i, pIp, sizeof(pIp));
if(strcmp(ip, pIp, true)==0)
{
new name[24];
GetPlayerName(i, name, 24);
printf("Rcon Login Attempt by %s(%d) using password: %s", name, ip, password);
}
}
}
return 1;
}
Here is a screenie of the console after a failed in-game login with the password "Lol":
---------------------------------------